Searched refs:np (Results 26 - 50 of 263) sorted by relevance

1234567891011

/freebsd-9.3-release/sys/kern/
H A Dvfs_export.c94 register struct netcred *np; local
104 * (argp->ex_anon) to a `struct ucred' (np->netc_anon). This
121 np = &nep->ne_defexported;
122 np->netc_exflags = argp->ex_flags;
123 np->netc_anon = crget();
124 np->netc_anon->cr_uid = argp->ex_anon.cr_uid;
125 crsetgroups(np->netc_anon, argp->ex_anon.cr_ngroups,
127 np->netc_anon->cr_prison = &prison0;
128 prison_hold(np->netc_anon->cr_prison);
129 np
428 register struct netcred *np; local
474 struct netcred *np; local
[all...]
H A Dsubr_prof.c86 struct gmonparam np; /* slightly large */ local
91 bcopy(p, &np, sizeof(*p));
92 np.highpc = ROUNDUP(nhighpc, HISTFRACTION * sizeof(HISTCOUNTER));
93 if (np.highpc <= p->highpc)
95 np.textsize = np.highpc - p->lowpc;
96 np.kcountsize = np.textsize / HISTFRACTION;
97 np.hashfraction = HASHFRACTION;
98 np
[all...]
/freebsd-9.3-release/lib/libc/nls/
H A Dmsgcat.c81 np = malloc(sizeof(struct catentry)); \
82 if (np != NULL) { \
83 np->name = strdup(n); \
84 np->path = NULL; \
85 np->lang = (l == NULL) ? NULL : \
87 np->caterrno = e; \
88 SLIST_INSERT_HEAD(&cache, np, list); \
115 struct catentry *np; local
143 SLIST_FOREACH(np, &cache, list) {
144 if ((strcmp(np
329 struct catentry *np; local
367 struct catentry *np; local
[all...]
/freebsd-9.3-release/sys/fs/smbfs/
H A Dsmbfs_io.c81 struct smbnode *np = VTOSMB(vp); local
85 np = VTOSMB(vp);
86 SMBVDEBUG("dirname='%s'\n", np->n_name);
96 de.d_fileno = (offset == 0) ? np->n_ino :
97 (np->n_parent ? VTOSMB(np->n_parent)->n_ino : 2);
113 if (offset != np->n_dirofs || np->n_dirseq == NULL) {
114 SMBVDEBUG("Reopening search %ld:%ld\n", offset, np->n_dirofs);
115 if (np
175 struct smbnode *np = VTOSMB(vp); local
235 struct smbnode *np = VTOSMB(vp); local
294 struct smbnode *np = VTOSMB(vp); local
628 struct smbnode *np = VTOSMB(vp); local
[all...]
/freebsd-9.3-release/sbin/restore/
H A Drestore.c207 struct entry *ep, *np, *ip; local
230 np = lookupname(name);
231 if (np != NULL) {
233 ip = lookupino(np->e_ino);
236 if (ip != np)
247 if (ep == np) {
266 if (((key & (INOFND|NAMEFND)) == (INOFND|NAMEFND)) && ip != np) {
268 removeleaf(np);
269 freeentry(np);
272 myname(np));
514 struct entry *ep, *np; local
778 struct entry *np, *ep; local
840 struct entry *np, *ep; local
[all...]
/freebsd-9.3-release/sys/nfsclient/
H A Dnfs_subs.c394 nfs_dircookie_lock(struct nfsnode *np) argument
396 mtx_lock(&np->n_mtx);
397 while (np->n_flag & NDIRCOOKIELK)
398 (void) msleep(&np->n_flag, &np->n_mtx, PZERO, "nfsdirlk", 0);
399 np->n_flag |= NDIRCOOKIELK;
400 mtx_unlock(&np->n_mtx);
404 nfs_dircookie_unlock(struct nfsnode *np) argument
406 mtx_lock(&np->n_mtx);
407 np
471 struct nfsnode *np = NULL; local
688 struct nfsnode *np; local
780 struct nfsnode *np; local
800 nfs_getcookie(struct nfsnode *np, off_t off, int add) argument
857 struct nfsnode *np = VTONFS(vp); local
[all...]
H A Dnfs_bio.c90 struct nfsnode *np; local
93 np = VTONFS(vp);
106 mtx_lock(&np->n_mtx);
107 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) {
108 mtx_unlock(&np->n_mtx);
112 mtx_unlock(&np->n_mtx);
249 struct nfsnode *np; local
253 np = VTONFS(vp);
256 if (np->n_writecred != NULL)
257 cred = crhold(np
358 struct nfsnode *np = VTONFS(vp); local
424 struct nfsnode *np = VTONFS(vp); local
860 struct nfsnode *np = VTONFS(vp); local
1267 struct nfsnode *np = VTONFS(vp); local
1497 struct nfsnode *np = VTONFS(bp->b_vp); local
1521 struct nfsnode *np; local
1769 struct nfsnode *np = VTONFS(vp); local
[all...]
/freebsd-9.3-release/contrib/amd/amd/
H A Dsrvr_nfs.c126 nfs_private *np = (nfs_private *) fs2->fs_private; local
127 if (np) {
128 np->np_mountd_inval = TRUE;
129 np->np_error = -1;
199 nfs_private *np = (nfs_private *) fs->fs_private; local
209 np->np_mountd = htons((u_short) port);
210 np->np_mountd_inval = FALSE;
211 np->np_error = 0;
218 np->np_error = error ? error : ETIMEDOUT;
288 nfs_private *np local
318 nfs_private *np = (nfs_private *) fs->fs_private; local
373 nfs_private *np = (nfs_private *) fs->fs_private; local
488 nfs_private *np = (nfs_private *) fs->fs_private; local
563 nfs_private *np = (nfs_private *) fs->fs_private; local
680 nfs_private *np; local
[all...]
/freebsd-9.3-release/usr.bin/gprof/
H A Dprintgprof.c48 register nltype *np; local
66 np = sortednlp[ index ];
67 flatprofline( np );
125 flatprofline( np )
126 register nltype *np;
129 if ( zflag == 0 && np -> ncall == 0 && np -> time == 0 &&
130 np -> childtime == 0 ) {
133 actime += np -> time;
136 100 * np
[all...]
/freebsd-9.3-release/usr.sbin/rip6query/
H A Drip6query.c73 struct netinfo6 *np; local
141 np = ripbuf->rip6_nets;
142 bzero(&np->rip6_dest, sizeof(struct in6_addr));
143 np->rip6_tag = 0;
144 np->rip6_plen = 0;
145 np->rip6_metric = HOPCNT_INFINITY6;
162 np = ripbuf->rip6_nets;
163 for (i = 0; i < n; i++, np++) {
164 printf("\t%s/%d [%d]", inet6_n2a(&np->rip6_dest),
165 np
[all...]
/freebsd-9.3-release/sys/boot/i386/libi386/
H A Ddevicename.c91 const char *np; local
108 np = (devspec + strlen(dv->dv_name));
115 err = disk_parsedev((struct disk_devdesc *)idev, np, path);
124 if (*np && (*np != ':')) {
125 unit = strtol(np, &cp, 0); /* get unit number if present */
126 if (cp == np) {
131 cp = np;
143 err = zfs_parsedev((struct zfs_devdesc *)idev, np, path);
/freebsd-9.3-release/contrib/nvi/clib/
H A Denv.c60 register char *np; local
65 for (np = name; *np && *np != '='; ++np)
67 len = np - name;
/freebsd-9.3-release/sys/contrib/ipfilter/netinet/
H A Dip_nat.c347 ipnat_t **np; local
357 np = rdr_rules + hv;
358 while (*np != NULL)
359 np = &(*np)->in_rnext;
361 n->in_prnext = np;
363 *np = n;
379 ipnat_t **np; local
389 np = nat_rules + hv;
390 while (*np !
651 ipnat_t *nat, *nt, *n = NULL, **np = NULL; local
1850 ipnat_t *n, **np = &nat_list; local
1904 ipnat_t *np; local
2172 ipnat_t *np; local
2587 ipnat_t *np; local
3058 ipnat_t *np; local
3760 ipnat_t *np = NULL; local
3925 ipnat_t *np; local
4057 ipnat_t *np; local
4220 ipnat_t *np; local
4665 struct ipnat *np; local
4806 ipnat_t *np; local
[all...]
/freebsd-9.3-release/sys/fs/nfsclient/
H A Dnfs_clbio.c96 struct nfsnode *np; local
99 np = VTONFS(vp);
112 mtx_lock(&np->n_mtx);
113 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) {
114 mtx_unlock(&np->n_mtx);
118 mtx_unlock(&np->n_mtx);
255 struct nfsnode *np; local
259 np = VTONFS(vp);
262 if (np->n_writecred != NULL)
263 cred = crhold(np
363 struct nfsnode *np = VTONFS(vp); local
428 struct nfsnode *np = VTONFS(vp); local
869 struct nfsnode *np = VTONFS(vp); local
1337 struct nfsnode *np = VTONFS(vp); local
1568 struct nfsnode *np = VTONFS(bp->b_vp); local
1593 struct nfsnode *np; local
1848 struct nfsnode *np = VTONFS(vp); local
[all...]
H A Dnfs_clport.c94 struct nfsnode *np = VTONFS(vp); local
96 if (np->n_fhp->nfh_len != nfhp->nfh_len ||
97 NFSBCMP(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len))
115 struct nfsnode *np, *dnp; local
155 np = VTONFS(nvp);
161 if ((nmp->nm_flag & NFSMNT_NFSV4) && np->n_v4 != NULL &&
163 (np->n_v4->n4_namelen != cnp->cn_namelen ||
164 NFSBCMP(cnp->cn_nameptr, NFS4NODENAME(np->n_v4),
166 dnp->n_fhp->nfh_len != np->n_v4->n4_fhlen ||
167 NFSBCMP(dnp->n_fhp->nfh_fh, np
367 struct nfsnode *np; local
652 struct nfsnode *np = VTONFS(vp); local
[all...]
/freebsd-9.3-release/sys/boot/userboot/userboot/
H A Ddevicename.c91 const char *np; local
108 np = (devspec + strlen(dv->dv_name));
115 err = disk_parsedev(idev, np, path);
125 if (*np && (*np != ':')) {
126 unit = strtol(np, &cp, 0); /* get unit number if present */
127 if (cp == np) {
132 cp = np;
/freebsd-9.3-release/sys/fs/nwfs/
H A Dnwfs_io.c73 struct nwnode *np = VTONW(vp); local
79 np = VTONW(vp);
80 NCPVNDEBUG("dirname='%s'\n",np->n_name);
100 dp.d_fileno = (i == 0) ? np->n_fid.f_id : np->n_parent.f_id;
109 error = ncp_search_for_file_or_subdir(nmp, &np->n_seq, &fattr, uio->uio_td, cred);
126 fid.f_parent = np->n_fid.f_id;
152 struct nwnode *np = VTONW(vp); local
171 if (np->n_flag & NMODIFIED) {
175 np
197 struct nwnode *np = VTONW(vp); local
256 struct nwnode *np; local
[all...]
/freebsd-9.3-release/contrib/smbfs/lib/smb/
H A Dnb_name.c80 nb_sockaddr(struct sockaddr *peer, struct nb_name *np, argument
89 nmlen = nb_name_len(np);
95 if (nmlen != nb_name_encode(np, snb->snb_name))
104 nb_name_len(struct nb_name *np) argument
110 if (np->nn_scope == NULL)
113 for (name = np->nn_scope; *name; name++) {
159 nb_name_encode(struct nb_name *np, u_char *dst) argument
166 name = np->nn_name;
179 *(u_short*)cp = NBENCODE(np->nn_type);
183 if (np
[all...]
/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-snmp.c1200 varbind_print(u_char pduid, const u_char *np, u_int length) argument
1210 if ((count = asn1_parse(np, length, &elem)) < 0)
1221 np = (u_char *)elem.data.raw;
1230 if ((count = asn1_parse(np, length, &elem)) < 0)
1237 vbend = np + count;
1241 np = (u_char *)elem.data.raw;
1244 if ((count = asn1_parse(np, length, &elem)) < 0)
1259 np += count;
1266 if ((count = asn1_parse(np, length, &elem)) < 0)
1287 np
1296 snmppdu_print(u_short pduid, const u_char *np, u_int length) argument
1376 trappdu_print(const u_char *np, u_int length) argument
1466 pdu_print(const u_char *np, u_int length, int version) argument
1527 scopedpdu_print(const u_char *np, u_int length, int version) argument
1580 community_print(const u_char *np, u_int length, int version) argument
1609 usm_print(const u_char *np, u_int length) argument
1705 v3msg_print(const u_char *np, u_int length) argument
1842 snmp_print(const u_char *np, u_int length) argument
[all...]
/freebsd-9.3-release/contrib/tcsh/
H A Dsh.hist.c112 struct Hist *hp, *np; local
120 while (histCount > (unsigned)histlen && (np = Histlist.Hnext)) {
121 if (eventno - np->Href >= histlen || histlen == 0)
122 hremove(np), hfree(np);
126 while (histCount > (unsigned)histlen && (np = histTail) != &Histlist) {
127 if (eventno - np->Href >= histlen || histlen == 0)
128 hremove(np), hfree(np);
135 (np
771 insertHistHashTable(struct Hist *np, unsigned hashval) argument
819 removeHistHashTable(struct Hist *np) argument
887 mergeInsertionPoint( struct Hist *np, struct Hist *pTime) argument
919 bubbleHnumHrefDown(struct Hist *np, struct Hist *pp) argument
940 struct Hist *np; local
1170 struct Hist *np, *hp; local
[all...]
/freebsd-9.3-release/contrib/ntp/libntp/
H A Ddecodenetnum.c35 char *np; local
65 np = name;
67 *np++ = *cp++;
68 *np = 0;
/freebsd-9.3-release/sys/boot/uboot/lib/
H A Ddevicename.c91 const char *np; local
110 np = (devspec + strlen(dv->dv_name));
118 err = disk_parsedev((struct disk_devdesc *)idev, np, path);
127 if (*np && (*np != ':')) {
129 unit = strtol(np, &cp, 0);
130 if (cp == np) {
/freebsd-9.3-release/crypto/openssl/util/
H A Dopenssl-format-source111 perl -0 -np \
116 perl -np \
127 perl -np \
131 perl -0 -np \
133 | perl -np \
/freebsd-9.3-release/bin/sh/
H A Dshow.c124 union node *np; local
130 for (np = cmd->ncmd.args ; np ; np = np->narg.next) {
133 sharg(np, fp);
136 for (np = cmd->ncmd.redirect ; np ; np = np
[all...]
/freebsd-9.3-release/libexec/getty/
H A Dsubr.c70 struct gettynums *np; local
150 for (np = gettynums; np->field; np++) {
151 if (cgetnum(buf, (char*)np->field, &n) == -1)
152 np->set = 0;
154 np->set = 1;
155 np->value = n;
172 for (np = gettynums; np
184 struct gettynums *np; local
204 struct gettynums *np; local
[all...]

Completed in 418 milliseconds

1234567891011