HomeSort by: relevance | last modified time | path
    Searched refs:np (Results 1 - 25 of 248) sorted by relevancy

1 2 3 4 5 6 7 8 910

  /src/usr.bin/mail/
cmd4.c 56 showname(struct name *np)
59 for (/*EMPTY*/; np; np = np->n_flink)
60 (void)printf("np: %p np->n_type: %d np->n_name: '%s' (%p)\n",
61 np, np->n_type, np->n_name, np->n_name)
159 struct name *np; local in function:name_expand
175 struct name *np; local in function:ncalloc
187 struct name *np; local in function:smopts_core
224 struct name *np; local in function:smoptscmd
279 struct name *np; local in function:unsmoptscmd
291 struct name *np; local in function:alloc_Header
305 struct name *np; local in function:free_Header
343 struct name *np; local in function:Header
    [all...]
v7.local.c 91 const char *np; local in function:username
94 if ((np = getenv("USER")) != NULL)
95 return np;
96 if ((np = getname(uid = getuid())) != NULL)
97 return np;
names.c 58 struct name *np; local in function:nalloc
60 np = salloc(sizeof(*np));
61 np->n_flink = NULL;
62 np->n_blink = NULL;
63 np->n_type = ntype;
64 np->n_name = savestr(str);
65 return np;
74 struct name *np; local in function:tailof
76 np = name
136 struct name *begin, *np, *t; local in function:extract
249 struct name *np, *begin; local in function:outof
429 struct name *np; local in function:gexpand
475 struct name *new, *np, *cp; local in function:usermap
588 struct name *np, *t, *new; local in function:elide
    [all...]
  /src/lib/libcurses/
curses.c 139 nschar_t *np, *tnp, *pnp; local in function:_cursesi_copy_nsp
142 np = src_nsp;
143 if (np) {
145 while (np) {
147 tnp->ch = np->ch;
154 tnp->ch = np->ch;
160 np = np->next;
162 np = tnp;
163 if (np) {
184 nschar_t *tnp, *np; local in function:__cursesi_free_nsp
    [all...]
background.c 170 nschar_t *np, *tnp; local in function:wbkgrndset
194 tnp = np = win->bnsp;
198 if (!np) {
199 np = malloc(sizeof(nschar_t));
200 if (!np)
202 np->next = NULL;
203 win->bnsp = np;
205 np->ch = wch->vals[0];
206 tnp = np;
207 np = np->next
288 nschar_t *np; local in function:wgetbkgrnd
    [all...]
cur_hash.c 72 const nschar_t *np; local in function:__hash_line
79 for (np = cp->nsp; np != NULL; np = np->next)
80 h = __hash_more(&np->ch, sizeof(np->ch), h);
in_wch.c 88 nschar_t *np; local in function:win_wch
97 np = lp->nsp;
98 if (np) {
100 wcval->vals[wcval->elements++] = np->ch;
101 np = np-> next;
102 } while (np);
add_wchstr.c 142 nschar_t *np, *tnp; local in function:wadd_wchnstr
182 np = tp->nsp;
226 np = lp->nsp;
227 if (np) {
228 while (np) {
229 tnp = np->next;
230 free(np);
231 np = tnp;
241 np = (nschar_t *)
243 if (!np)
    [all...]
border.c 209 nschar_t *np, *tnp;
312 np = win->alines[i]->line[j].nsp;
313 if (np) {
314 while (np) {
315 tnp = np->next;
316 free(np);
317 np = tnp;
327 np = malloc(sizeof(nschar_t));
328 if (!np)
330 np->ch = left.vals[ k ]
    [all...]
  /src/sys/nfs/
nfs_node.c 118 struct nfsnode *np; local in function:nfs_loadvnode
121 np = pool_get(&nfs_node_pool, PR_WAITOK);
122 memset(np, 0, sizeof *np);
124 np->n_fhp = kmem_alloc(fhsize, KM_SLEEP);
126 np->n_fhp = &np->n_fh;
130 vp->v_data = np;
131 memcpy(np->n_fhp, fhp, fhsize);
132 np->n_fhsize = fhsize
185 struct nfsnode *np; local in function:nfs_inactive
225 struct nfsnode *np = VTONFS(vp); local in function:nfs_reclaim
    [all...]
nfs_clntsubs.c 160 struct nfsnode *np; local in function:nfs_loadattrcache
199 np = VTONFS(vp);
206 mutex_init(&np->n_commitlock, MUTEX_DEFAULT, IPL_NONE);
211 np->n_mtime = mtime;
215 vap = np->n_vattr;
220 if (np->n_accstamp != -1 &&
223 np->n_accstamp = -1;
274 if (vap->va_size != np->n_size) {
275 if ((np->n_flag & NMODIFIED) && vap->va_size < np->n_size)
319 struct nfsnode *np = VTONFS(vp); local in function:nfs_getattrcache
357 struct nfsnode *np = VTONFS(vp); local in function:nfs_delayedtruncate
    [all...]
nfs_subs.c 580 nfsm_reqh(struct nfsnode *np, u_long procid, int hsiz, char **bposp)
1158 #define _NFSDC_MTX(np) (NFSTOV(np)->v_interlock)
1159 #define NFSDC_LOCK(np) mutex_enter(_NFSDC_MTX(np))
1160 #define NFSDC_UNLOCK(np) mutex_exit(_NFSDC_MTX(np))
1161 #define NFSDC_ASSERT_LOCKED(np) KASSERT(mutex_owned(_NFSDC_MTX(np)))
1166 struct nfsnode *np = VTONFS(vp) local in function:nfs_initdircache
1187 struct nfsnode *np = VTONFS(vp); local in function:nfs_initdirxlatecookie
1264 struct nfsnode *np = VTONFS(vp); local in function:nfs_searchdircache
1327 struct nfsnode *np = VTONFS(vp); local in function:nfs_enterdircache
1433 struct nfsnode *np = VTONFS(vp); local in function:nfs_invaldircache
1757 struct nfsnode *np; local in function:nfs_clearcommit_selector
1782 struct nfsnode *np; local in function:nfs_clearcommit
1824 struct nfsnode *np = VTONFS(vp); local in function:nfs_merge_commit_ranges
1851 struct nfsnode *np = VTONFS(vp); local in function:nfs_in_committed_range
1865 struct nfsnode *np = VTONFS(vp); local in function:nfs_in_tobecommitted_range
1879 struct nfsnode *np = VTONFS(vp); local in function:nfs_add_committed_range
1904 struct nfsnode *np = VTONFS(vp); local in function:nfs_del_committed_range
1939 struct nfsnode *np = VTONFS(vp); local in function:nfs_add_tobecommitted_range
1964 struct nfsnode *np = VTONFS(vp); local in function:nfs_del_tobecommitted_range
    [all...]
  /src/sys/net/npf/
npf_nat.c 182 npf_natpolicy_t *np; local in function:npf_natpolicy_create
186 np = kmem_zalloc(sizeof(npf_natpolicy_t), KM_SLEEP);
187 atomic_store_relaxed(&np->n_refcnt, 1);
188 np->n_npfctx = npf;
191 np->n_type = dnvlist_get_number(nat, "type", 0);
192 np->n_flags = dnvlist_get_number(nat, "flags", 0) & ~NPF_NAT_PRIVMASK;
193 np->n_id = dnvlist_get_number(nat, "nat-policy", 0);
196 if (((np->n_type == NPF_NATIN) ^ (np->n_type == NPF_NATOUT)) == 0) {
199 mutex_init(&np->n_lock, MUTEX_DEFAULT, IPL_SOFTNET)
418 npf_natpolicy_t *np; local in function:npf_nat_inspect
586 const npf_natpolicy_t *np = nt->nt_natpolicy; local in function:npf_dnat_translate
650 npf_natpolicy_t *np = src_nt->nt_natpolicy; local in function:npf_nat_share_policy
682 const npf_natpolicy_t *np; local in function:npf_nat_lookup
720 npf_natpolicy_t *np; local in function:npf_do_nat
868 npf_natpolicy_t *np = nt->nt_natpolicy; local in function:npf_nat_destroy
903 npf_natpolicy_t *np = nt->nt_natpolicy; local in function:npf_nat_export
932 npf_natpolicy_t *np; local in function:npf_nat_import
1002 const npf_natpolicy_t *np; local in function:npf_nat_dump
    [all...]
npf_ext_normalize.c 70 npf_normalize_t *np; local in function:npf_normalize_ctor
73 np = kmem_zalloc(sizeof(npf_normalize_t), KM_SLEEP);
76 np->n_random_id = dnvlist_get_bool(params, "random-id", false);
77 np->n_no_df = dnvlist_get_bool(params, "no-df", false);
80 np->n_minttl = dnvlist_get_number(params, "min-ttl", 0);
81 np->n_maxmss = dnvlist_get_number(params, "max-mss", 0);
84 npf_rproc_assign(rp, np);
103 npf_normalize_ip4(npf_cache_t *npc, npf_normalize_t *np)
109 unsigned minttl = np->n_minttl;
111 KASSERT(np->n_random_id || np->n_no_df || minttl)
147 npf_normalize_t *np = params; local in function:npf_normalize
    [all...]
  /src/bin/csh/
hist.c 56 struct Hist *hp, *np; local in function:savehist
77 for (hp = &Histlist; (np = hp->Hnext) != NULL;)
78 if (eventno - np->Href >= histlen || histlen == 0)
79 hp->Hnext = np->Hnext, hfree(np);
81 hp = np;
103 struct Hist *np; local in function:enthist
114 np = xmalloc(sizeof(*np));
115 np->Hnum = np->Href = event
    [all...]
  /src/sys/fs/nfs/client/
nfs_clsubs.c 122 ncl_dircookie_lock(struct nfsnode *np)
124 mtx_lock(&np->n_mtx);
125 while (np->n_flag & NDIRCOOKIELK)
126 (void) msleep(&np->n_flag, &np->n_mtx, PZERO, "nfsdirlk", 0);
127 np->n_flag |= NDIRCOOKIELK;
128 mtx_unlock(&np->n_mtx);
132 ncl_dircookie_unlock(struct nfsnode *np)
134 mtx_lock(&np->n_mtx);
135 np->n_flag &= ~NDIRCOOKIELK
181 struct nfsnode *np; local in function:ncl_getattrcache
320 struct nfsnode *np = VTONFS(vp); local in function:ncl_invaldir
    [all...]
nfs_clnode.c 101 struct nfsnode *np; local in function:ncl_nget
127 np = uma_zalloc(newnfsnode_zone, M_WAITOK | M_ZERO);
131 uma_zfree(newnfsnode_zone, np);
137 vp->v_data = np;
138 np->n_vnode = vp;
145 mtx_init(&np->n_mtx, "NEWNFSnode lock", NULL, MTX_DEF | MTX_DUPOK);
163 MALLOC(np->n_fhp, struct nfsfh *, sizeof (struct nfsfh) + fhsize,
165 bcopy(fhp, np->n_fhp->nfh_fh, fhsize);
166 np->n_fhp->nfh_len = fhsize;
170 FREE((caddr_t)np->n_fhp, M_NFSFH)
206 struct nfsnode *np; local in function:ncl_releasesillyrename
234 struct nfsnode *np; local in function:ncl_inactive
278 struct nfsnode *np = VTONFS(vp); local in function:ncl_reclaim
345 struct nfsnode *np = VTONFS(vp); local in function:ncl_invalcaches
    [all...]
nfs_clbio.c 88 struct nfsnode *np; local in function:ncl_getpages
91 np = VTONFS(vp);
104 mtx_lock(&np->n_mtx);
105 if ((np->n_flag & NNONCACHE) && (vp->v_type == VREG)) {
106 mtx_unlock(&np->n_mtx);
110 mtx_unlock(&np->n_mtx);
233 struct nfsnode *np; local in function:ncl_putpages
237 np = VTONFS(vp);
240 if (np->n_writecred != NULL)
241 cred = crhold(np->n_writecred)
341 struct nfsnode *np = VTONFS(vp); local in function:nfs_bioread_check_cons
406 struct nfsnode *np = VTONFS(vp); local in function:ncl_bioread
847 struct nfsnode *np = VTONFS(vp); local in function:ncl_write
1296 struct nfsnode *np = VTONFS(vp); local in function:ncl_vinvalbuf
1536 struct nfsnode *np = VTONFS(bp->b_vp); local in function:ncl_doio_directwrite
1568 struct nfsnode *np; local in function:ncl_doio
1823 struct nfsnode *np = VTONFS(vp); local in function:ncl_meta_setsize
    [all...]
nfs_clport.c 114 struct nfsnode *np = VTONFS(vp); local in function:newnfs_vncmpf
116 if (np->n_fhp->nfh_len != nfhp->nfh_len ||
117 NFSBCMP(np->n_fhp->nfh_fh, nfhp->nfh_fh, nfhp->nfh_len))
135 struct nfsnode *np, *dnp; local in function:nfscl_nget
175 np = VTONFS(nvp);
181 if ((nmp->nm_flag & NFSMNT_NFSV4) && np->n_v4 != NULL &&
183 (np->n_v4->n4_namelen != cnp->cn_namelen ||
184 NFSBCMP(cnp->cn_nameptr, NFS4NODENAME(np->n_v4),
186 dnp->n_fhp->nfh_len != np->n_v4->n4_fhlen ||
187 NFSBCMP(dnp->n_fhp->nfh_fh, np->n_v4->n4_data
415 struct nfsnode *np; local in function:nfscl_loadattrcache
732 struct nfsnode *np = VTONFS(vp); local in function:nfscl_wcc_data
    [all...]
  /src/sbin/restore/
symtab.c 100 addino(ino_t inum, struct entry *np)
107 np->e_ino = inum;
108 np->e_next = *epp;
109 *epp = np;
111 for (np = np->e_next; np != NULL; np = np->e_next)
112 if (np->e_ino == inum
147 char *np; local in function:lookupname
222 struct entry *np, *ep; local in function:addentry
275 struct entry *np; local in function:freeentry
318 struct entry *np; local in function:moveentry
346 struct entry *np; local in function:removeentry
391 struct strhdr *np, *tp; local in function:savename
424 struct strhdr *tp, *np; local in function:freename
    [all...]
restore.c 210 struct entry *ep, *np, *ip; local in function:nodeupdates
233 np = lookupname(name);
234 if (np != NULL) {
236 ip = lookupino(np->e_ino);
239 if (ip != np)
250 if (ep == np) {
269 if (((key & (INOFND|NAMEFND)) == (INOFND|NAMEFND)) && ip != np) {
271 removeleaf(np);
272 freeentry(np);
275 myname(np));
518 struct entry *ep, *np; local in function:findunreflinks
780 struct entry *np, *ep; local in function:createlinks
842 struct entry *np, *ep; local in function:verifyfile
    [all...]
  /src/usr.bin/ctags/
tree.c 63 NODE *np; local in function:pfnote
68 if (!(np = (NODE *)malloc(sizeof(NODE)))) {
73 if (!(head = np = (NODE *)malloc(sizeof(NODE))))
87 if (!(np->entry = strdup(name)))
89 np->file = curfile;
90 np->lno = ln;
91 np->left = np->right = 0;
92 if (!(np->pat = strdup(lbuf)))
95 head = np;
    [all...]
  /src/sys/external/bsd/ipf/netinet/
ip_nat6.c 216 ipnat_t **np; local in function:ipf_nat6_addrdr
239 np = softn->ipf_nat_rdr_rules + hv;
240 while (*np != NULL)
241 np = &(*np)->in_rnext;
243 n->in_prnext = np;
246 *np = n;
263 ipnat_t **np; local in function:ipf_nat6_addmap
280 np = softn->ipf_nat_map_rules + hv;
281 while (*np != NULL
456 ipnat_t *np; local in function:ipf_nat6_newmap
735 ipnat_t *np; local in function:ipf_nat6_newrdr
2569 ipnat_t *np = NULL; local in function:ipf_nat6_checkout
2767 ipnat_t *np; local in function:ipf_nat6_out
2972 ipnat_t *np; local in function:ipf_nat6_checkin
3169 ipnat_t *np; local in function:ipf_nat6_in
3370 ipnat_t *np; local in function:ipf_nat6_newrewrite
3594 ipnat_t *np; local in function:ipf_nat6_newdivert
    [all...]
  /src/usr.sbin/rip6query/
rip6query.c 75 struct netinfo6 *np; local in function:main
143 np = ripbuf->rip6_nets;
144 bzero(&np->rip6_dest, sizeof(struct in6_addr));
145 np->rip6_tag = 0;
146 np->rip6_plen = 0;
147 np->rip6_metric = HOPCNT_INFINITY6;
167 np = ripbuf->rip6_nets;
168 for (i = 0; i < n; i++, np++) {
169 printf("\t%s/%d [%d]", inet6_n2a(&np->rip6_dest),
170 np->rip6_plen, np->rip6_metric)
    [all...]
  /src/sys/lib/libsa/
ls.c 176 lsentry_t *n, **np; local in function:lsadd
192 for (np = names; *np; np = &(*np)->e_next) {
193 if (strcmp(n->e_name, (*np)->e_name) < 0)
196 n->e_next = *np;
197 *np = n;

Completed in 24 milliseconds

1 2 3 4 5 6 7 8 910