Searched defs:np (Results 1 - 25 of 414) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libpp/common/
H A Dppcontext.c39 struct ppcontext* np = (struct ppcontext*)context; local
49 if (!(op = np)) op = (struct ppcontext*)_PP_CONTEXT_BASE_;
55 if (np)
57 free(np);
58 np = 0;
63 if (np) memcpy(_PP_CONTEXT_BASE_, np, sizeof(struct ppcontext));
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dhostname.c21 struct netent *np; local
39 np = getnetbyaddr(ipa.s_addr, AF_INET);
40 if (np != NULL && np->n_name != NULL &&
41 *np->n_name != '\0') {
42 strncpy(hostbuf, np->n_name, sizeof(hostbuf));
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dgetline.c31 getline(char** sp, size_t* np, Sfio_t* f) argument
33 STDIO_INT(f, "getline", ssize_t, (char**, size_t*, Sfio_t*), (sp, np, f))
35 return getdelim(sp, np, '\n', f);
H A D_stdfun.c57 static void* np; local
72 if (!np && !(np = dlopen("/sys/msvcrt.dll", 0)))
74 if (!(vp->vec[1] = (Fun_f)dlsym(np, vp->name)))
/illumos-gate/usr/src/lib/scsi/plugins/ses/LSILOGIC-SASX28-A.0/common/
H A Dlsilogic.c40 lsilogic_parse_node(ses_plugin_t *sp, ses_node_t *np) argument
45 if (ses_node_type(np) != SES_NODE_ENCLOSURE)
48 props = ses_node_props(np);
/illumos-gate/usr/src/cmd/mailx/
H A Dhostname.c65 register struct netmach *np; local
77 for (np = netmach; np->nt_machine != 0; np++)
78 if (strcmp(np->nt_machine, EMPTY) == 0)
80 if (np->nt_machine == 0) {
85 np->nt_machine = host;
86 np++;
87 np->nt_machine = domain;
H A Dtranslate.c41 translate(struct name *np) argument
53 return np;
57 for (n = np; n; n = n->n_flink)
62 for (n = np; n; n = n->n_flink)
71 return np;
81 for (n = np; n; n = n->n_flink) {
108 return np;
/illumos-gate/usr/src/ucblib/libcurses/
H A Ddelwin.c35 WINDOW *wp, *np; local
48 np = wp->_nextp;
50 wp = np;
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_replace.c41 mdname_t *np,
52 assert(sp->setno == MD_MIN2SET(meta_getminor(np->dev)));
55 if (metachkmeta(np, ep) != 0)
57 if ((miscname = metagetmiscname(np, ep)) == NULL)
62 return (meta_raid_replace(sp, np, oldnp, newnp, options, ep));
64 return (meta_mirror_replace(sp, np, oldnp, newnp, options, ep));
66 return (mdmderror(ep, MDE_UNKNOWN_TYPE, meta_getminor(np->dev),
67 np->cname));
77 mdname_t *np,
87 assert(sp->setno == MD_MIN2SET(meta_getminor(np
39 meta_replace_byname( mdsetname_t *sp, mdname_t *np, mdname_t *oldnp, mdname_t *newnp, mdcmdopts_t options, md_error_t *ep ) argument
75 meta_enable_byname( mdsetname_t *sp, mdname_t *np, mdname_t *compnp, mdcmdopts_t options, md_error_t *ep ) argument
[all...]
H A Dmeta_reset.c40 mdname_t *np,
50 assert(sp->setno == MD_MIN2SET(meta_getminor(np->dev)));
52 if ((miscname = metagetmiscname(np, ep)) == NULL)
54 if (meta_isopen(sp, np, ep, options) != 0) {
55 return (mdmderror(ep, MDE_IS_OPEN, meta_getminor(np->dev),
56 np->cname));
60 mir.mnum = meta_getminor(np->dev);
62 if (metaioctl(MD_IOCRESET, &mir, &mir.mde, np->cname) != 0)
69 (void) meta_update_devtree(meta_getminor(np->dev));
116 mdname_t *np,
38 meta_reset( mdsetname_t *sp, mdname_t *np, mdcmdopts_t options, md_error_t *ep ) argument
114 meta_reset_by_name( mdsetname_t *sp, mdname_t *np, mdcmdopts_t options, md_error_t *ep ) argument
[all...]
H A Dmeta_resync.c42 mdname_t *np,
52 assert(sp->setno == MD_MIN2SET(meta_getminor(np->dev)));
55 if (metachkmeta(np, ep) != 0)
57 if ((miscname = metagetmiscname(np, ep)) == NULL)
62 return (meta_raid_resync(sp, np, size, ep));
64 return (meta_mirror_resync(sp, np, size, ep, cmd));
66 return (mdmderror(ep, MDE_UNKNOWN_TYPE, meta_getminor(np->dev),
67 np->cname));
40 meta_resync_byname( mdsetname_t *sp, mdname_t *np, daddr_t size, md_error_t *ep, md_resync_cmd_t cmd ) argument
H A Dmeta_userflags.c41 mdname_t *np,
50 assert(sp->setno == MD_MIN2SET(meta_getminor(np->dev)));
52 if ((mdp = meta_get_unit(sp, np, ep)) == NULL)
66 mdname_t *np,
76 assert(sp->setno == MD_MIN2SET(meta_getminor(np->dev)));
79 if (metachkmeta(np, ep) != 0)
83 if ((miscname = metagetmiscname(np, ep)) == NULL)
89 msu.mnum = meta_getminor(np->dev);
91 if (metaioctl(MD_IOCSET_FLAGS, &msu, &msu.mde, np->cname) != 0)
95 meta_invalidate_name(np);
39 meta_getuserflags( mdsetname_t *sp, mdname_t *np, uint_t *userflags, md_error_t *ep ) argument
64 meta_setuserflags( mdsetname_t *sp, mdname_t *np, uint_t userflags, md_error_t *ep ) argument
[all...]
H A Dmeta_devstamp.c46 mdname_t *np; local
48 if ((np = metaslicename(dnp, MD_SLICE0, ep)) == NULL)
52 if ((fd = open(np->rname, O_RDONLY | O_NDELAY, 0)) < 0)
53 return (mdsyserror(ep, errno, np->cname));
56 if (meta_getvtoc(fd, np->cname, &vtocbuf, &partno, ep) == -1) {
86 mdname_t *np; local
88 if ((np = metaslicename(dnp, MD_SLICE0, ep)) == NULL)
92 if ((fd = open(np->rname, O_RDWR | O_NDELAY, 0)) < 0)
93 return (mdsyserror(ep, errno, np->cname));
95 if (meta_getvtoc(fd, np
[all...]
H A Dmeta_mount.c44 mdname_t *np,
88 if (np->dev == mnp->dev) {
42 meta_get_mountp( mdsetname_t *sp, mdname_t *np, md_error_t *ep ) argument
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN/common/
H A Dsun.c54 sun_node_parse(ses_plugin_t *sp, ses_node_t *np) argument
56 switch (ses_node_type(np)) {
58 return (sun_fill_enclosure_node(sp, np));
62 return (sun_fill_element_node(sp, np));
H A Dsun_element.c38 sun_fill_element_node(ses_plugin_t *sp, ses_node_t *np) argument
40 ses_snap_t *snap = ses_node_snapshot(np);
41 nvlist_t *props = ses_node_props(np);
47 SUN_DIAGPAGE_FRUID, np, &len)) != NULL) {
H A Dsun_pages.c36 sun_fruid_index(ses_plugin_t *sp, ses_node_t *np, void *data, argument
40 nvlist_t *props = ses_node_props(np);
45 if (ses_node_type(np) != SES_NODE_ELEMENT &&
46 ses_node_type(np) != SES_NODE_ENCLOSURE)
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/posix/
H A Dsetenv.c168 register const char *np; local
173 for (np = name; *np && *np != '='; ++np)
175 len = np - name;
/illumos-gate/usr/src/cmd/ypcmd/mknetid/
H A Dgetname.c95 register char *np; local
105 np = name;
106 while (! issep(c) && ! iseol(c) && np - name < namelen) {
107 *np++ = c;
111 if (np - name < namelen) {
112 *np = 0;
/illumos-gate/usr/src/common/mdesc/
H A Dmdesc_init_intern.c111 md_element_t *np; local
113 np = &(mdp->mdep[idx]);
115 switch (MDE_TAG(np)) {
121 if (root_name == MDE_NAME(np)) {
128 idx = MDE_PROP_INDEX(np);
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dflex_dev.c47 char *np = device_name; local
51 return (np);
53 if (dev_ok == 1 && listdev(np) != (char **) NULL) /* device.tab */
54 return (np);
56 if (!strncmp(np, "/dev", 4)) /* /dev path */
57 return (np);
64 if (realpath(np, new_device_name) == NULL) { /* path */
70 if (*np != '/' && dev_ok == 2) {
71 (void) sprintf(new_device_name, "%s/%s", cwd, np);
73 if ((np
[all...]
/illumos-gate/usr/src/tools/stabs/
H A Dsquander.c33 void squander_do_sou(struct tdesc *tdp, struct node *np);
34 void squander_do_enum(struct tdesc *tdp, struct node *np);
35 void squander_do_intrinsic(struct tdesc *tdp, struct node *np);
38 squander_do_intrinsic(struct tdesc *tdp, struct node *np) argument
43 squander_do_sou(struct tdesc *tdp, struct node *np) argument
49 if (np->name == NULL)
59 np->name,
67 printf("%s: sizeof: %lu total: %lu wasted: %lu\n", np->name,
72 squander_do_enum(struct tdesc *tdp, struct node *np) argument
/illumos-gate/usr/src/lib/scsi/plugins/ses/libses/common/
H A Dlibses.c36 libses_parse_node(ses_plugin_t *sp, ses_node_t *np) argument
45 props = ses_node_props(np);
57 if (ses_node_type(np) != SES_NODE_ENCLOSURE)
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_inttab.c57 dt_inthash_t *hp, *np; local
59 for (hp = ip->int_head; hp != NULL; hp = np) {
60 np = hp->inh_next;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Denv.c103 char **p, **np; local
121 np = nenv;
123 *np = uu_msprintf("SMF_RESTARTER=%s", INETD_INSTANCE_FMRI);
124 if (*np == NULL)
127 np++;
128 *np = uu_msprintf("SMF_FMRI=%s", instance->fmri);
129 if (*np == NULL)
132 np++;
133 *np = uu_msprintf("SMF_METHOD=%s", method);
134 if (*np
[all...]

Completed in 100 milliseconds

1234567891011>>