Home
last modified time | relevance | path

Searched refs:VDIR (Results 1 – 25 of 47) sorted by relevance

12

/openbsd/src/regress/sys/kern/pledge/sendrecvfd/
DMakefile5 vnodetype= VREG VDIR VBLK VCHR VLNK VSOCK VFIFO
8 test-nopledge-VDIR \
29 FAIL_TARGETS= test-sendfd-VDIR \
30 test-recvfd-VDIR \
33 test-nosendfd-VDIR \
41 test-norecvfd-VDIR \
/openbsd/src/sys/tmpfs/
Dtmpfs_vnops.c172 KASSERT(dnode->tn_type == VDIR); in tmpfs_lookup()
243 if (!lastcn && tnode->tn_type != VDIR && tnode->tn_type != VLNK) { in tmpfs_lookup()
417 case VDIR: in tmpfs_access()
697 if (vp->v_type == VDIR) { in tmpfs_remove()
831 KASSERT(vap->va_type == VDIR); in tmpfs_mkdir()
966 if (vp->v_type != VDIR) { in tmpfs_readdir()
1292 KASSERT(fdvp->v_type == VDIR); in tmpfs_rename()
1293 KASSERT(tdvp->v_type == VDIR); in tmpfs_rename()
1394 KASSERT(fdvp->v_type == VDIR); in tmpfs_sane_rename()
1395 KASSERT(tdvp->v_type == VDIR); in tmpfs_sane_rename()
[all …]
Dtmpfs_subr.c156 case VDIR: in tmpfs_alloc_node()
247 case VDIR: in tmpfs_free_node()
334 case VDIR: in tmpfs_vnode_get()
381 if (vap->va_type == VDIR) { in tmpfs_alloc_file()
506 if (node->tn_type == VDIR) { in tmpfs_dir_attach()
550 if (node->tn_type == VDIR) { in tmpfs_dir_detach()
626 return (node->tn_type != VDIR && node->tn_links > 1) ? NULL : de; in tmpfs_dir_cached()
799 case VDIR: in tmpfs_dir_getdents()
997 if (vp->v_type != VDIR && (mode & S_ISTXT)) in tmpfs_chmod()
1066 case VDIR: in tmpfs_chsize()
Dtmpfs_vfsops.c168 error = tmpfs_alloc_node(tmp, VDIR, args->ta_root_uid, in tmpfs_mount()
233 if (node->tn_type != VDIR) { in tmpfs_unmount()
Dtmpfs.h333 KASSERT((node)->tn_type == VDIR); \
/openbsd/src/sys/kern/
Dvfs_vnops.c152 if ((fmode & O_DIRECTORY) && vp->v_type != VDIR) { in vn_open()
162 if (vp->v_type == VDIR) { in vn_open()
216 case VDIR: in vn_writechk()
364 if (vp->v_type == VDIR) { in vn_read()
463 case VDIR: in vn_stat()
517 case VDIR: in vn_ioctl()
Dvfs_cache.c114 ncp->nc_vp->v_type == VDIR && in cache_zap()
392 if (vp != dvp && vp->v_type == VDIR && in cache_enter()
436 KASSERT(vp->v_type == VDIR || TAILQ_EMPTY(&vp->v_cache_dst)); in cache_purge()
Dvfs_lookup.c230 if (fp->f_type != DTYPE_VNODE || dp->v_type != VDIR) { in namei()
426 if (dp->v_type != VDIR) { in vfs_lookup()
639 while (dp->v_type == VDIR && (mp = dp->v_mountedhere) && in vfs_lookup()
669 if ((dp->v_type != VDIR) && (cnp->cn_flags & REQUIREDIR)) { in vfs_lookup()
Dvfs_syscalls.c185 if (vp->v_type != VDIR) { in sys_mount()
737 if (fp->f_type != DTYPE_VNODE || vp->v_type != VDIR) { in sys_fchdir()
842 if (vp->v_type != VDIR) in change_dir()
1171 else if (vp->v_type == VDIR) in doopenat()
1389 if ((flags & O_DIRECTORY) && vp->v_type != VDIR) { in sys_fhopen()
1398 if (vp->v_type == VDIR) { in sys_fhopen()
1714 if (vp->v_type == VDIR) { in dolinkat()
1856 if (vp->v_type != VDIR) { in dounlinkat()
2838 if (vp->v_type == VDIR) in dotruncate()
2987 if (fvp->v_type == VDIR) in dorenameat()
[all …]
Dkern_unveil.c434 directory_add = ndp->ni_vp != NULL && ndp->ni_vp->v_type == VDIR; in unveil_add()
441 KASSERT(vp->v_type == VDIR); in unveil_add()
680 if (ni->ni_vp != NULL && ni->ni_vp->v_type == VDIR) { in unveil_check_final()
/openbsd/src/sys/miscfs/fuse/
Dfuse_vnops.c256 if (vp->v_type == VDIR) in fusefs_open()
314 if (ap->a_vp->v_type == VDIR) in fusefs_close()
381 case VDIR: in fusefs_access()
533 case VDIR: in fusefs_setattr()
581 if (cred->cr_uid != 0 && vp->v_type != VDIR && in fusefs_setattr()
892 (vp->v_type == VDIR), p); in fusefs_inactive()
963 (vp->v_type == VDIR), ap->a_p); in fusefs_reclaim()
1316 if (fvp->v_type == VDIR) { in fusefs_rename()
1610 if (vp->v_type == VDIR) in fusefs_fsync()
/openbsd/src/lib/libkvm/
Dkvm_udf.c100 if (vp->v_type & VDIR) { in _kvm_stat_udf()
/openbsd/src/sys/nfs/
Dnfs_vnops.c300 case VDIR: in nfs_access()
341 if (vp->v_type == VDIR) { in nfs_access()
424 if (vp->v_type != VREG && vp->v_type != VDIR && vp->v_type != VLNK) { in nfs_open()
457 if (vp->v_type == VDIR) in nfs_open()
468 if (vp->v_type == VDIR) in nfs_open()
624 case VDIR: in nfs_setattr()
827 if (dvp->v_type != VDIR) in nfs_lookup()
1677 if (vp->v_type == VDIR) in nfs_remove()
1804 tvp->v_type != VDIR && !nfs_sillyrename(tdvp, tvp, tcnp)) { in nfs_rename()
1817 if (fvp->v_type == VDIR) { in nfs_rename()
[all …]
Dnfs_serv.c184 if (vp->v_type == VDIR) in nfsrv3_access()
192 if (vp->v_type == VDIR) in nfsrv3_access()
388 if (vp->v_type == VDIR) { in nfsrv_setattr()
693 error = (vp->v_type == VDIR) ? EISDIR : EACCES; in nfsrv_read()
915 error = (vp->v_type == VDIR) ? EISDIR : EACCES; in nfsrv_write()
1550 if (vp->v_type == VDIR && in nfsrv_remove()
1705 if (fvp->v_type == VDIR && tvp->v_type != VDIR) { in nfsrv_rename()
1708 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) { in nfsrv_rename()
1712 if (tvp->v_type == VDIR && tvp->v_mountedhere) { in nfsrv_rename()
1717 if (fvp->v_type == VDIR && fvp->v_mountedhere) { in nfsrv_rename()
[all …]
Dnfs_node.c178 if (ap->a_vp->v_type != VDIR) { in nfs_inactive()
/openbsd/src/regress/usr.bin/diff/
Dt9.1163 if (vp->v_type != VDIR) {
607 if (vp->v_type != VDIR)
699 if (vp->v_type != VDIR)
922 if (vp->v_type != VDIR ||
1055 if (vp->v_type != VDIR ||
1610 if (vp->v_type == VDIR)
1648 if (vp->v_type == VDIR)
1718 if (fvp->v_type == VDIR && tvp->v_type != VDIR) {
1721 } else if (fvp->v_type != VDIR && tvp->v_type == VDIR) {
1802 vattr.va_type = VDIR;
[all …]
Dt9.2196 if (vp->v_type != VDIR) {
733 if (vp->v_type != VDIR)
835 if (vp->v_type != VDIR)
930 else if (vp->v_type == VDIR)
1057 if (vp->v_type == VDIR) {
1340 if (vp->v_type == VDIR) {
2207 if (vp->v_type == VDIR)
2248 if (vp->v_type == VDIR)
2319 if (fvp->v_type == VDIR)
2333 if (fvp->v_type == VDIR && tvp->v_type != VDIR) {
[all …]
/openbsd/src/sys/ufs/ext2fs/
Dext2fs_readwrite.c99 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ext2_ind_read()
276 case VDIR: in ext2fs_write()
Dext2fs_vnops.c276 case VDIR: in ext2fs_setattr()
339 if (vp->v_type != VDIR && (mode & S_ISTXT)) in ext2fs_chmod()
401 if (vp->v_type == VDIR || in ext2fs_remove()
541 if (fvp->v_type == VDIR) { in ext2fs_rename()
904 tvp->v_type = VDIR; /* Rest init'd in getnewvnode(). */ in ext2fs_mkdir()
/openbsd/src/sys/ufs/ufs/
Dufs_vnops.c248 case VDIR: in ufs_access()
274 if ((mode & VEXEC) && vp->v_type != VDIR && in ufs_access()
393 case VDIR: in ufs_setattr()
466 if (vp->v_type != VDIR && (mode & S_ISTXT)) in ufs_chmod()
589 if (vp->v_type == VDIR || (DIP(ip, flags) & (IMMUTABLE | APPEND)) || in ufs_remove()
735 if (fvp->v_type == VDIR) { in ufs_rename()
1131 tvp->v_type = VDIR; /* Rest init'd in getnewvnode(). */ in ufs_mkdir()
/openbsd/src/sys/ufs/ffs/
Dffs_vnops.c207 } else if (vp->v_type != VREG && vp->v_type != VDIR) in ffs_read()
313 case VDIR: in ffs_write()
Dffs_inode.c145 ovp->v_type != VDIR && in ffs_truncate()
224 if (ovp->v_type != VDIR) in ffs_truncate()
Dffs_subr.c266 case VDIR: in ffs_vinit()
/openbsd/src/sys/isofs/udf/
Dudf_vnops.c227 case VDIR: in udf_access()
352 if (vp->v_type & VDIR) { in udf_getattr()
366 if ((vp->v_type & VDIR) && xfentry->logblks_rec != 0) in udf_getattr()
372 if ((vp->v_type & VDIR) && fentry->logblks_rec != 0) in udf_getattr()
/openbsd/src/sys/msdosfs/
Dmsdosfs_vnops.c413 case VDIR: in msdosfs_setattr()
450 if (vp->v_type != VDIR) { in msdosfs_setattr()
479 if (vp->v_type != VDIR) { in msdosfs_setattr()
600 case VDIR: in msdosfs_write()
801 if (ap->a_vp->v_type == VDIR) in msdosfs_remove()

12