Home
last modified time | relevance | path

Searched refs:nd (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/openbsd-src/gnu/usr.sbin/mkhybrid/src/libhfs_iso/
H A Dnode.c30 (HFS_BLOCKSZ - (n).roff[(n).nd.ndNRecs] - 2 * ((n).nd.ndNRecs + 1))
41 np->nd.ndFLink = 0; in n_init()
42 np->nd.ndBLink = 0; in n_init()
43 np->nd.ndType = type; in n_init()
44 np->nd.ndNHeight = height; in n_init()
45 np->nd.ndNRecs = 0; in n_init()
46 np->nd.ndResv2 = 0; in n_init()
116 for (i = 0; i < np->nd.ndNRecs; ++i) in n_compact()
140 np->nd.ndNRecs = nrecs; in n_compact()
152 for (i = np->nd.ndNRecs; i--; ) in n_search()
[all …]
H A Dbtree.c61 d_fetchl(&ptr, (long *) &np->nd.ndFLink); in bt_getnode()
62 d_fetchl(&ptr, (long *) &np->nd.ndBLink); in bt_getnode()
63 d_fetchb(&ptr, (char *) &np->nd.ndType); in bt_getnode()
64 d_fetchb(&ptr, (char *) &np->nd.ndNHeight); in bt_getnode()
65 d_fetchw(&ptr, (short *) &np->nd.ndNRecs); in bt_getnode()
66 d_fetchw(&ptr, &np->nd.ndResv2); in bt_getnode()
68 if (np->nd.ndNRecs > HFS_MAXRECS) in bt_getnode()
74 i = np->nd.ndNRecs + 1; in bt_getnode()
110 d_storel(&ptr, np->nd.ndFLink); in bt_putnode()
111 d_storel(&ptr, np->nd.ndBLink); in bt_putnode()
[all …]
/openbsd-src/sys/kern/
H A Dvfs_syscalls.c114 struct nameidata nd; in sys_mount() local
132 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspath, p); in sys_mount()
133 if ((error = namei(&nd)) != 0) in sys_mount()
135 vp = nd.ni_vp; in sys_mount()
250 error = VFS_MOUNT(mp, fspath, args, &nd, p); in sys_mount()
367 struct nameidata nd; in sys_unmount() local
372 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, in sys_unmount()
374 if ((error = namei(&nd)) != 0) in sys_unmount()
376 vp = nd.ni_vp; in sys_unmount()
560 struct nameidata nd; in sys_quotactl() local
612 struct nameidata nd; sys_statfs() local
779 struct nameidata nd; sys_chdir() local
805 struct nameidata nd; sys_chroot() local
862 struct nameidata nd; sys___realpath() local
952 struct nameidata nd; sys_unveil() local
1079 struct nameidata nd; doopenat() local
1218 struct nameidata nd; sys___tmpfd() local
1301 struct nameidata nd; sys_getfh() local
1569 struct nameidata nd; domknodat() local
1701 struct nameidata nd; dolinkat() local
1783 struct nameidata nd; dosymlinkat() local
1843 struct nameidata nd; dounlinkat() local
1973 struct nameidata nd; dofaccessat() local
2060 struct nameidata nd; dofstatat() local
2136 struct nameidata nd; dopathconfat() local
2190 struct nameidata nd; doreadlinkat() local
2249 struct nameidata nd; dochflagsat() local
2350 struct nameidata nd; dofchmodat() local
2453 struct nameidata nd; dofchownat() local
2508 struct nameidata nd; sys_lchown() local
2677 struct nameidata nd; doutimensat() local
2866 struct nameidata nd; sys_truncate() local
3079 struct nameidata nd; domkdirat() local
3214 struct nameidata nd; sys_revoke() local
[all...]
H A Dkern_acct.c108 struct nameidata nd; in sys_acct() local
120 NDINIT(&nd, 0, 0, UIO_USERSPACE, SCARG(uap, path), p); in sys_acct()
121 if ((error = vn_open(&nd, FWRITE|O_APPEND, 0)) != 0) in sys_acct()
123 VOP_UNLOCK(nd.ni_vp); in sys_acct()
124 if (nd.ni_vp->v_type != VREG) { in sys_acct()
125 vn_close(nd.ni_vp, FWRITE, p->p_ucred, p); in sys_acct()
149 acctp = nd.ni_vp; in sys_acct()
152 (void)vn_close(nd.ni_vp, FWRITE, p->p_ucred, p); in sys_acct()
/openbsd-src/sys/nfs/
H A Dnfs_serv.c448 struct nameidata nd; in nfsrv_lookup() local
483 NDINIT(&nd, LOOKUP, LOCKLEAF | SAVESTART, UIO_SYSSPACE, NULL, procp); in nfsrv_lookup()
484 nd.ni_cnd.cn_cred = cred; in nfsrv_lookup()
485 error = nfs_namei(&nd, fhp, len, slp, nam, &info.nmi_md, &info.nmi_dpos, &dirp, procp); in nfsrv_lookup()
499 vrele(nd.ni_startdir); in nfsrv_lookup()
500 pool_put(&namei_pool, nd.ni_cnd.cn_pnbuf); in nfsrv_lookup()
501 vp = nd.ni_vp; in nfsrv_lookup()
1025 struct nameidata nd; in nfsrv_create()
1062 NDINIT(&nd, CREATE, LOCKPARENT | LOCKLEAF | SAVESTART, UIO_SYSSPACE, in nfsrv_create()
1064 nd in nfsrv_create()
1020 struct nameidata nd; nfsrv_create() local
1310 struct nameidata nd; nfsrv_mknod() local
1485 struct nameidata nd; nfsrv_remove() local
1793 struct nameidata nd; nfsrv_link() local
1910 struct nameidata nd; nfsrv_symlink() local
2073 struct nameidata nd; nfsrv_mkdir() local
2208 struct nameidata nd; nfsrv_rmdir() local
[all...]
H A Dnfs_srvcache.c127 nfsrv_getcache(struct nfsrv_descript *nd, struct nfssvc_sock *slp, in nfsrv_getcache() argument
140 if (!nd->nd_nam2) in nfsrv_getcache()
143 rp = nfsrv_lookupcache(nd); in nfsrv_getcache()
157 nfs_rephead(0, nd, slp, rp->rc_status, repp, &mb); in nfsrv_getcache()
196 rp->rc_xid = nd->nd_retxid; in nfsrv_getcache()
197 saddr = mtod(nd->nd_nam, struct sockaddr_in *); in nfsrv_getcache()
205 rp->rc_nam = m_copym(nd->nd_nam, 0, M_COPYALL, M_WAIT); in nfsrv_getcache()
208 rp->rc_proc = nd->nd_procnum; in nfsrv_getcache()
209 hash = NFSRCHASH(nd->nd_retxid); in nfsrv_getcache()
221 nfsrv_updatecache(struct nfsrv_descript *nd, in argument
274 nfsrv_lookupcache(struct nfsrv_descript * nd) nfsrv_lookupcache() argument
[all...]
H A Dnfs_syscalls.c330 struct nfsrv_descript *nd = NULL; in nfssvc_nfsd() local
361 error = nfsrv_dorec(slp, nfsd, &nd); in nfssvc_nfsd()
370 if (nd != NULL) { in nfssvc_nfsd()
371 pool_put(&nfsrv_descript_pl, nd); in nfssvc_nfsd()
372 nd = NULL; in nfssvc_nfsd()
387 if (nd) { in nfssvc_nfsd()
388 if (nd->nd_nam2) in nfssvc_nfsd()
389 nd->nd_nam = nd->nd_nam2; in nfssvc_nfsd()
391 nd in nfssvc_nfsd()
[all...]
H A Dnfs_socket.c1062 nfs_rephead(int siz, struct nfsrv_descript *nd, struct nfssvc_sock *slp, in nfs_rephead()
1082 *tl++ = txdr_unsigned(nd->nd_retxid); in nfs_rephead()
1123 *tl = txdr_unsigned(nfsrv_errmap(nd, err)); in nfs_rephead()
1447 nfs_getreq(struct nfsrv_descript *nd, struct nfsd *nfsd, int has_header) in nfs_getreq()
1455 info.nmi_mrep = nd->nd_mrep; in nfs_getreq()
1456 info.nmi_md = nd->nd_md; in nfs_getreq()
1457 info.nmi_dpos = nd->nd_dpos; in nfs_getreq()
1463 nd->nd_retxid = fxdr_unsigned(u_int32_t, *tl++); in nfs_getreq()
1473 nd->nd_repstat = 0; in nfs_getreq()
1474 nd in nfs_getreq()
1061 nfs_rephead(int siz,struct nfsrv_descript * nd,struct nfssvc_sock * slp,int err,struct mbuf ** mrq,struct mbuf ** mbp) nfs_rephead() argument
1446 nfs_getreq(struct nfsrv_descript * nd,struct nfsd * nfsd,int has_header) nfs_getreq() argument
1815 struct nfsrv_descript *nd; nfsrv_dorec() local
[all...]
/openbsd-src/regress/usr.bin/diff/
H A Dt9.189 struct nameidata nd;
94 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
96 if (error = namei(&nd))
98 vp = nd.ni_vp;
232 error = VFS_MOUNT(mp, SCARG(uap, path), SCARG(uap, data), &nd, p);
320 struct nameidata nd;
322 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
324 if (error = namei(&nd))
326 vp = nd.ni_vp;
467 struct nameidata nd;
[all …]
H A Dt9.2107 struct nameidata nd;
124 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, fspath, p);
125 if ((error = namei(&nd)) != 0)
127 vp = nd.ni_vp;
273 error = VFS_MOUNT(mp, SCARG(uap, path), SCARG(uap, data), &nd, p);
386 struct nameidata nd;
388 NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
390 if ((error = namei(&nd)) != 0)
392 vp = nd.ni_vp;
554 struct nameidata nd;
[all …]
/openbsd-src/gnu/usr.bin/perl/ext/XS-APItest/t/
H A Dcv_name.t15 is $ret, \$name, 'cv_name with package sub returns 2nd argument';
16 is ($name, 'main::bar', 'retval of cv_name with package sub & 2nd arg');
18 is $ret, \$name, 'cv_name with package sub via glob returns 2nd argument';
19 is ($name, 'main::bar', 'retval of cv_name w/pkg sub via glob & 2nd arg');
21 is $ret, \$name, 'cv_name with typeglob returns 2nd argument';
22 is ($name, 'main::bar', 'retval of cv_name with typeglob & 2nd arg');
24 is $ret, \$name, 'cv_name with string returns 2nd argument';
25 is ($name, 'bar', 'retval of cv_name with string & 2nd arg');
28 is $ret, \$name, 'cv_name with lexical sub returns 2nd argument';
29 is ($name, 'lex2', 'retval of cv_name with lexical sub & 2nd arg');
[all …]
/openbsd-src/bin/ed/
H A Dre.c94 char *nd; in extract_pattern() local
97 for (nd = ibufp; *nd != delimiter && *nd != '\n'; nd++) in extract_pattern()
98 switch (*nd) { in extract_pattern()
102 if ((nd = parse_char_class(++nd)) == NULL) { in extract_pattern()
108 if (*++nd == '\n') { in extract_pattern()
114 len = nd - ibufp; in extract_pattern()
118 ibufp = nd; in extract_pattern()
/openbsd-src/usr.sbin/ypserv/common/
H A Dypdb.c112 DBT nk, nd; in ypdb_fetch() local
118 status = (db->get)(db, &nk, &nd, 0); in ypdb_fetch()
123 retval.dptr = nd.data; in ypdb_fetch()
124 retval.dsize = nd.size; in ypdb_fetch()
140 DBT nk, nd; in ypdb_firstkey() local
142 status = (db->seq)(db, &nk, &nd, R_FIRST); in ypdb_firstkey()
164 DBT nk, nd; in ypdb_nextkey() local
166 status = (db->seq)(db, &nk, &nd, R_NEXT); in ypdb_nextkey()
187 DBT nk, nd; in ypdb_setkey() local
191 status = (db->seq)(db, &nk, &nd, R_CURSOR); in ypdb_setkey()
[all …]
/openbsd-src/gnu/gcc/gcc/config/arc/
H A Dlib1funcs.asm52 beq.nd .Ldone
90 beq.nd .Ldone
136 j.nd blink
175 bnc.nd .Lloop2
178 bz.nd .Lloop2
181 bc.nd .Lloop2
188 bz.nd .Ldivmodend
191 bc.nd .Lshiftdown
214 bl.nd ___udivmodsi4
215 j.nd r7
[all …]
/openbsd-src/gnu/usr.bin/gcc/gcc/config/arc/
H A Dlib1funcs.asm52 beq.nd .Ldone
90 beq.nd .Ldone
132 j.nd blink
171 bnc.nd .Lloop2
174 bz.nd .Lloop2
177 bc.nd .Lloop2
184 bz.nd .Ldivmodend
187 bc.nd .Lshiftdown
210 bl.nd ___udivmodsi4
211 j.nd r7
[all …]
/openbsd-src/regress/usr.bin/make/
H A Dmk245 .SUFFIXES: .1st .2nd .3rd
8 .1st.2nd:
12 .2nd:
13 cp $*.2nd $@
15 .2nd.3rd:
16 cp $*.2nd $@
/openbsd-src/sys/arch/amd64/amd64/
H A Dmem.c269 int nd, error = 0; in mem_ioctl()
287 nd = imin(mo->mo_arg[0], mem_range_softc.mr_ndesc); in mem_ioctl()
288 if (nd > 0) { in mem_ioctl()
289 md = mallocarray(nd, sizeof(struct mem_range_desc), in mem_ioctl()
291 error = mem_range_attr_get(md, &nd); in mem_ioctl()
294 nd * sizeof(struct mem_range_desc)); in mem_ioctl()
295 free(md, M_MEMDESC, nd * sizeof(struct mem_range_desc)); in mem_ioctl()
297 nd = mem_range_softc.mr_ndesc; in mem_ioctl()
299 mo->mo_arg[0] = nd; in mem_ioctl()
268 int nd, error = 0; mem_ioctl() local
/openbsd-src/regress/usr.bin/mandoc/mdoc/Fo/
H A Dnoarg.out_ascii8 …_i_n_t rraanndd() _l_o_n_g rraannddoomm() _u___i_n_t_3_2___t aarrcc4…
9 type arguments: aabbss(_i_n_t _i) no type and void function arguments: rraanndd()
10 rraannddoomm() aarrcc44rraannddoomm() no arguments at all: end of test document
/openbsd-src/sys/arch/i386/i386/
H A Dmem.c277 int nd, error = 0; in mem_ioctl()
296 nd = imin(mo->mo_arg[0], mem_range_softc.mr_ndesc); in mem_ioctl()
297 if (nd > 0) { in mem_ioctl()
298 md = mallocarray(nd, sizeof(struct mem_range_desc), in mem_ioctl()
300 error = mem_range_attr_get(md, &nd); in mem_ioctl()
303 nd * sizeof(struct mem_range_desc)); in mem_ioctl()
304 free(md, M_MEMDESC, nd * sizeof(struct mem_range_desc)); in mem_ioctl()
306 nd = mem_range_softc.mr_ndesc; in mem_ioctl()
308 mo->mo_arg[0] = nd; in mem_ioctl()
276 int nd, error = 0; mem_ioctl() local
/openbsd-src/sys/dev/ofw/
H A Dofw_misc.c569 nvmem_register_child(int node, struct nvmem_device *nd) in nvmem_register_child() argument
586 nc->nc_nd = nd; in nvmem_register_child()
595 nvmem_register(struct nvmem_device *nd) in nvmem_register() argument
599 nd->nd_phandle = OF_getpropint(nd->nd_node, "phandle", 0); in nvmem_register()
600 if (nd->nd_phandle) in nvmem_register()
601 LIST_INSERT_HEAD(&nvmem_devices, nd, nd_list); in nvmem_register()
603 for (node = OF_child(nd->nd_node); node; node = OF_peer(node)) in nvmem_register()
604 nvmem_register_child(node, nd); in nvmem_register()
610 struct nvmem_device *nd; in nvmem_read() local
615 LIST_FOREACH(nd, &nvmem_devices, nd_list) { in nvmem_read()
[all …]
/openbsd-src/etc/
H A Dgettytab25 :nd#1:cd#1:uc:sp#110:
27 :ep:nd#1:cd#2:ff#1:td#1:sp#134:ht:nl:
29 :ep:nd#1:cd#2:td#1:fd#1:sp#150:ht:nl:lm=\E\72\6\6\17login\72 :
31 :nd#1:cd#1:sp#300:ht:
33 :nd#1:cd#1:sp#600:ht:
102 :nd@:cd@:rw:tc=300-baud:
105 :fd@:nd@:cd@:rw:tc=1200-baud:
114 :fd@:nd@:cd@:rw:sp#9600:
/openbsd-src/lib/libc/gdtoa/
H A Dstrtod.c94 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; local
205 for(nd = nf = 0; (c = *s) >= '0' && c <= '9'; nd++, s++)
206 if (nd < 9)
208 else if (nd < 16)
210 nd0 = nd;
223 if (!nd) {
240 if (nd++ < 9)
242 else if (nd <= DBL_DIG + 1)
244 if (nd++ < 9)
246 else if (nd <= DBL_DIG + 1)
[all …]
/openbsd-src/sbin/unwind/libunbound/services/
H A Dview.c175 struct config_strlist* nd; in views_apply_cfg() local
180 for(nd = cv->local_zones_nodefault; nd; in views_apply_cfg()
181 nd = nd->next) { in views_apply_cfg()
183 nd_str = strdup(nd->str); in views_apply_cfg()
/openbsd-src/usr.sbin/unbound/services/
H A Dview.c175 struct config_strlist* nd; in views_apply_cfg() local
180 for(nd = cv->local_zones_nodefault; nd; in views_apply_cfg()
181 nd = nd->next) { in views_apply_cfg()
183 nd_str = strdup(nd->str); in views_apply_cfg()
/openbsd-src/sys/dev/
H A Dvnd.c420 struct nameidata nd; in vndioctl() local
454 NDINIT(&nd, 0, 0, UIO_SYSSPACE, name, p); in vndioctl()
455 nd.ni_unveil = UNVEIL_READ | UNVEIL_WRITE; in vndioctl()
457 error = vn_open(&nd, FREAD|FWRITE, 0); in vndioctl()
459 NDINIT(&nd, 0, 0, UIO_SYSSPACE, name, p); in vndioctl()
460 nd.ni_unveil = UNVEIL_READ | UNVEIL_WRITE; in vndioctl()
462 error = vn_open(&nd, FREAD, 0); in vndioctl()
468 error = VOP_GETATTR(nd.ni_vp, &vattr, p->p_ucred, p); in vndioctl()
472 VOP_UNLOCK(nd.ni_vp); in vndioctl()
473 vn_close(nd.ni_vp, rw, p->p_ucred, p); in vndioctl()
[all …]

12345678910>>...12