/macosx-10.9.5/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_lookup.c | 115 boolean_t lookup_continue_ok(struct nameidata *ndp); 116 int lookup_traverse_mountpoints(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, int vbusyflags, vfs_context_t ctx); 117 int lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx); 120 int lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx); 121 int lookup_handle_found_vnode(struct nameidata *ndp, struct componentname *cnp, int rdonly, 124 int lookup_handle_emptyname(struct nameidata *ndp, struct componentname *cnp, int wantparent); 165 namei(struct nameidata *ndp) argument 169 struct vnode *usedvp = ndp->ni_dvp; /* store pointer to vp in case we must loop due to 171 u_long cnpflags = ndp->ni_cnd.cn_flags; /* store in case we have to restore after loop */ 173 struct componentname *cnp = &ndp 451 namei_compound_available(vnode_t dp, struct nameidata *ndp) argument 528 lookup_handle_rsrc_fork(vnode_t dp, struct nameidata *ndp, struct componentname *cnp, int wantparent, vfs_context_t ctx) argument 616 lookup_handle_found_vnode(struct nameidata *ndp, struct componentname *cnp, int rdonly, int vbusyflags, int *keep_going, int nc_generation, int wantparent, int atroot, vfs_context_t ctx) argument 801 lookup_handle_emptyname(struct nameidata *ndp, struct componentname *cnp, int wantparent) argument 906 lookup(struct nameidata *ndp) argument 1287 lookup_validate_creation_path(struct nameidata *ndp) argument 1309 lookup_traverse_mountpoints(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, int vbusyflags, vfs_context_t ctx) argument 1428 lookup_handle_symlink(struct nameidata *ndp, vnode_t *new_dp, vfs_context_t ctx) argument 1648 nameidone(struct nameidata *ndp) argument 1862 lookup_compound_vnop_post_hook(int error, vnode_t dvp, vnode_t vp, struct nameidata *ndp, int did_create) argument [all...] |
H A D | vfs_vnops.c | 164 vn_open(struct nameidata *ndp, int fmode, int cmode) argument 166 return(vn_open_modflags(ndp, &fmode, cmode)); 170 vn_open_modflags(struct nameidata *ndp, int *fmodep, int cmode) argument 177 return(vn_open_auth(ndp, fmodep, &va)); 212 vn_open_auth_do_create(struct nameidata *ndp, struct vnode_attr *vap, int fmode, boolean_t *did_create, boolean_t *did_open, vfs_context_t ctx) argument 215 vnode_t dvp = ndp->ni_dvp; 220 batched = vnode_compound_open_available(ndp->ni_dvp); 228 if (ndp->ni_cnd.cn_flags & CN_WANTSRSRCFORK) { 229 if ((error = vn_authorize_create(dvp, &ndp->ni_cnd, vap, ctx, NULL)) != 0) 231 if ((error = vnode_makenamedstream(dvp, &ndp 357 vn_open_auth(struct nameidata *ndp, int *fmodep, struct vnode_attr *vap) argument [all...] |
H A D | vfs_cache.c | 1042 cache_lookup_path(struct nameidata *ndp, struct componentname *cnp, vnode_t dp, argument 1062 ndp->ni_flag &= ~(NAMEI_TRAILINGSLASH); 1094 ndp->ni_pathlen -= cnp->cn_namelen; 1095 ndp->ni_next = cp; 1106 ndp->ni_pathlen--; 1109 ndp->ni_flag |= NAMEI_TRAILINGSLASH; 1110 *ndp->ni_next = '\0'; 1113 ndp->ni_next = cp; 1130 if ((ndp->ni_pathlen == sizeof(_PATH_RSRCFORKSPEC)) && 1141 ndp [all...] |
H A D | kpi_vfs.c | 1563 struct nameidata *ndp = cnp->cn_ndp; local 1565 if (ndp == NULL) { 1584 /* From lookup(): || *ndp->ni_next == '/') No need for this, we know we're NULL-terminated here */ 1588 if (ndp->ni_flag & NAMEI_TRAILINGSLASH) { 1596 ndp->ni_flag |= NAMEI_CONTLOOKUP; 2794 VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *statusp, struct vnode_attr *vap, vfs_context_t ctx) argument 2801 struct componentname *cnp = &ndp->ni_cnd; 2858 lookup_compound_vnop_post_hook(_err, dvp, *vpp, ndp, did_create); 3606 VNOP_COMPOUND_REMOVE(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument 3615 a.a_cnp = &ndp 4118 vn_mkdir(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument 4181 VNOP_COMPOUND_MKDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument 4224 vn_rmdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument 4290 VNOP_COMPOUND_RMDIR(struct vnode *dvp, struct vnode **vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx) argument 4960 vn_remove(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx) argument [all...] |
H A D | vfs_syscalls.c | 144 static int change_dir(struct nameidata *ndp, vfs_context_t ctx); 2960 change_dir(struct nameidata *ndp, vfs_context_t ctx) argument 2965 if ((error = namei(ndp))) 2967 nameidone(ndp); 2968 vp = ndp->ni_vp; 3010 open1(vfs_context_t ctx, struct nameidata *ndp, int uflags, argument 3059 if ((error = vn_open_auth(ndp, &flags, vap))) { 3088 vp = ndp->ni_vp; 4004 unlink1(vfs_context_t ctx, struct nameidata *ndp, int unlink_flags) argument 4024 ndp 4728 stat2(vfs_context_t ctx, struct nameidata *ndp, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64) argument [all...] |
H A D | vfs_subr.c | 216 static int vn_create_reg(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, 5098 vn_create_reg(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx) argument 5103 return VNOP_COMPOUND_OPEN(dvp, vpp, ndp, VNOP_COMPOUND_OPEN_DO_CREATE, fmode, statusp, vap, ctx); 5105 return VNOP_CREATE(dvp, vpp, &ndp->ni_cnd, vap, ctx); 5151 vn_create(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, uint32_t flags, int fmode, uint32_t *statusp, vfs_context_t ctx) argument 5159 cnp = &ndp->ni_cnd; 5161 batched = namei_compound_available(dvp, ndp) ? TRUE : FALSE; 5189 error = vn_create_reg(dvp, vpp, ndp, vap, flags, fmode, statusp, ctx); 5192 error = vn_mkdir(dvp, vpp, ndp, vap, ctx); 5399 panic("NULL ndp"); 8404 vnode_trigger_resolve(vnode_t vp, struct nameidata *ndp, vfs_context_t ctx) argument [all...] |
/macosx-10.9.5/xnu-2422.115.4/bsd/sys/ |
H A D | namei.h | 176 #define USEDVP 0x00400000 /* start the lookup at ndp.ni_dvp */ 196 #define NDINIT(ndp, op, pop, flags, segflg, namep, ctx) { \ 197 (ndp)->ni_cnd.cn_nameiop = op; \ 198 (ndp)->ni_op = pop; \ 199 (ndp)->ni_cnd.cn_flags = flags; \ 201 (ndp)->ni_segflg = ((IS_64BIT_PROCESS(vfs_context_proc(ctx))) ? UIO_USERSPACE64 : UIO_USERSPACE32); \ 204 (ndp)->ni_segflg = segflg; \ 206 (ndp)->ni_dirp = namep; \ 207 (ndp)->ni_cnd.cn_context = ctx; \ 208 (ndp) [all...] |
H A D | vnode_internal.h | 385 int vn_open(struct nameidata *ndp, int fmode, int cmode); 386 int vn_open_modflags(struct nameidata *ndp, int *fmode, int cmode); 387 int vn_open_auth(struct nameidata *ndp, int *fmode, struct vnode_attr *); 389 errno_t vn_remove(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, struct vnode_attr *vap, vfs_context_t ctx); 425 int vn_mkdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx); 426 int vn_rmdir(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, struct vnode_attr *vap, vfs_context_t ctx);
|
H A D | file_internal.h | 238 int open1(vfs_context_t ctx, struct nameidata *ndp, int uflags,
|
H A D | vnode_if.h | 322 extern int VNOP_COMPOUND_OPEN(vnode_t dvp, vnode_t *vpp, struct nameidata *ndp, int32_t flags, int32_t fmode, uint32_t *status, struct vnode_attr *vap, vfs_context_t ctx);
|
/macosx-10.9.5/xnu-2422.115.4/bsd/vm/ |
H A D | dp_backing_file.c | 262 struct nameidata nd, *ndp; local 292 ndp = &nd; 300 NDINIT(ndp, LOOKUP, OP_LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1, 304 if ((error = namei(ndp))) 306 nameidone(ndp); 307 vp = ndp->ni_vp; 465 struct nameidata nd, *ndp; local 477 ndp = &nd; 485 NDINIT(ndp, LOOKUP, OP_LOOKUP, FOLLOW | LOCKLEAF | AUDITVNPATH1, 489 if ((error = namei(ndp))) [all...] |
/macosx-10.9.5/dtrace-118.1/libctf/ |
H A D | ctf_decl.c | 74 ctf_decl_node_t *cdp, *ndp; local 79 cdp != NULL; cdp = ndp) { 80 ndp = ctf_list_next(cdp);
|
/macosx-10.9.5/xnu-2422.115.4/bsd/hfs/ |
H A D | hfs_btreeio.c | 644 BTNodeDescriptor *ndp; local 794 ndp = (BTNodeDescriptor *)buffer; 796 ndp->fLink = 1; 797 ndp->kind = kBTHeaderNode; 798 ndp->numRecords = 3; 863 ndp = (BTNodeDescriptor *)buffer; 865 ndp->fLink = node_num + 1; 866 ndp->kind = kBTMapNode; 867 ndp->numRecords = 1;
|
H A D | hfs_hotfiles.c | 1867 BTNodeDescriptor *ndp; local 1894 ndp = (BTNodeDescriptor *)buffer; 1895 ndp->kind = kBTHeaderNode; 1896 ndp->numRecords = SWAP_BE16 (3);
|
/macosx-10.9.5/libpcap-42/libpcap/ |
H A D | pcap-snit.c | 120 register struct nit_ifdrops *ndp; local 174 ndp = (struct nit_ifdrops *)cp; 175 p->md.stat.ps_drop = ndp->nh_drops; 176 cp += sizeof *ndp;
|
/macosx-10.9.5/dtrace-118.1/libdtrace/ |
H A D | dt_decl.c | 97 dt_decl_t *ndp; local 99 for (; ddp != NULL; ddp = ndp) { 100 ndp = ddp->dd_next; 375 dt_decl_t *ndp = ddp; local 383 while (ndp->dd_next != NULL && ndp->dd_next->dd_kind == CTF_K_ARRAY) 384 ndp = ndp->dd_next; /* skip to bottom-most array declaration */ 386 if (ndp != ddp) { 392 ddp->dd_next = ndp [all...] |
H A D | dt_open.c | 1509 dt_ident_t *idp, *ndp; local 1528 for (idp = dtp->dt_externs; idp != NULL; idp = ndp) { 1529 ndp = idp->di_next;
|
/macosx-10.9.5/hfs-226.1.1/newfs_hfs/ |
H A D | makehfs.c | 1021 BTNodeDescriptor *ndp; local 1038 ndp = (BTNodeDescriptor *)buffer; 1039 ndp->kind = kBTHeaderNode; 1040 ndp->numRecords = SWAP_BE16 (3); 1088 ndp->fLink = SWAP_BE32 (SWAP_BE32 (bthp->lastLeafNode) + 1); 1133 ndp = (BTNodeDescriptor*)node2; 1134 ndp->kind = kBTLeafNode; 1135 ndp->numRecords = SWAP_BE16(numOverflowExtents); 1136 ndp->height = 1; 1166 BTNodeDescriptor *ndp; local 1456 BTNodeDescriptor *ndp; local 1554 BTNodeDescriptor *ndp; local [all...] |
/macosx-10.9.5/configd-596.15/ |
H A D | get-mobility-info | 414 if [ -x /usr/sbin/ndp ]; then 416 echo "# ndp -n -a" >> network-statistics 418 /usr/sbin/ndp -n -a >> network-statistics 2>&1 421 echo "# ndp -n -p" >> network-statistics 423 /usr/sbin/ndp -n -p >> network-statistics 2>&1 426 echo "# ndp -n -r" >> network-statistics 428 /usr/sbin/ndp -n -r >> network-statistics 2>&1 434 echo "# ndp -i ${if}" >> network-statistics 436 /usr/sbin/ndp -i ${if} >> network-statistics 2>&1
|
/macosx-10.9.5/xnu-2422.115.4/bsd/kern/ |
H A D | mach_loader.c | 1790 struct nameidata *ndp = &data->__nid; local 1809 NDINIT(ndp, LOOKUP, OP_OPEN, FOLLOW | LOCKLEAF, UIO_SYSSPACE, CAST_USER_ADDR_T(path), ctx); 1811 if ((error = namei(ndp)) != 0) { 1819 nameidone(ndp); 1820 vp = ndp->ni_vp;
|
/macosx-10.9.5/hfs-226.1.1/fsck_hfs/dfalib/ |
H A D | SUtils.c | 2016 BTNodeDescriptor *ndp; local 2031 ndp = (BTNodeDescriptor*) buffer; // point to node descriptor 2033 ndp->kind = kBTHeaderNode; // this node contains the B-tree header 2034 ndp->numRecords = 3; // there are 3 records (header, map, and user) 2043 ndp->fLink = 2; // link points to initial map node 2047 ndp->fLink = 1; // link points to initial map node
|
/macosx-10.9.5/groff-38/groff/src/roff/troff/ |
H A D | env.cpp | 2088 node **ndp = &line; local 2089 while (*ndp != bp->nd) 2090 ndp = &(*ndp)->next; 2092 *ndp = post;
|
/macosx-10.9.5/network_cmds-433/ip6fw.tproj/ |
H A D | ip6fw.c | 223 int ndp = IPV6_FW_GETNDSTP(chain); local 343 for (i = 0; i < ndp; i++) {
|
/macosx-10.9.5/xnu-2422.115.4/bsd/nfs/ |
H A D | nfs_serv.c | 1368 struct nfsrv_descript **ndp, 1395 if (*ndp) { 1396 nd = *ndp; 1397 *ndp = NULL; 1647 *ndp = nd; 1367 nfsrv_writegather( struct nfsrv_descript **ndp, struct nfsrv_sock *slp, vfs_context_t ctx, mbuf_t *mrepp) argument
|
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSCore/ |
H A D | mDNS.c | 13683 mDNSlocal const mDNSEthAddr *GetLinkLayerAddressOption(const IPv6NDP *const ndp, const mDNSu8 *const end, mDNSu8 op) 13685 const mDNSu8 *options = (mDNSu8 *)(ndp+1); 13697 const IPv6NDP *const ndp, const mDNSu8 *const end, const mDNSInterfaceID InterfaceID) 13706 if (ndp->type == NDP_Sol) 13708 //const mDNSEthAddr *const sha = GetLinkLayerAddressOption(ndp, end, NDP_SrcLL); 13712 rr->AddressProxy.type == mDNSAddrType_IPv6 && mDNSSameIPv6Address(rr->AddressProxy.ip.v6, ndp->target)) 13724 intf->ifname, msg, sha, spa, &ndp->target, &rr->WakeUp.HMAC, &rr->WakeUp.IMAC, ARDisplayString(m, rr)); 13735 SendNDP(m, NDP_Adv, NDP_Solicited, rr, &ndp->target, mDNSNULL, spa, sha); 13737 SendNDP(m, NDP_Adv, 0, rr, &ndp->target, mDNSNULL, &AllHosts_v6, &AllHosts_v6_Eth); 13743 debugf("NDP from self for %.16a", &ndp 13696 mDNSCoreReceiveRawND(mDNS *const m, const mDNSEthAddr *const sha, const mDNSv6Addr *spa, const IPv6NDP *const ndp, const mDNSu8 *const end, const mDNSInterfaceID InterfaceID) argument [all...] |