Lines Matching refs:ff_dirfd
94 int ff_dirfd; member
474 if (fstatat(ff->ff_dirfd, path, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_pdir()
532 if (fstatat(dirf->ff_dirfd, dirf->ff_name, st, in fs_nde()
571 ret->ff_dirfd = dirfd; in open_fid()
767 fd = openat(ff->ff_dirfd, path, 0); in look_for_nfsv4_acl()
1152 fd = openat(file->ff_dirfd, newname, flags | O_CREAT | O_EXCL, perm); in fs_icreate()
1229 if (fstatat(file->ff_dirfd, name, &first, AT_SYMLINK_NOFOLLOW) != 0) in fs_iopen()
1258 fd = openat(file->ff_dirfd, name, O_DIRECTORY); in fs_iopen()
1265 fd = openat(file->ff_dirfd, name, flags); in fs_iopen()
1323 if (mkdirat(ff->ff_dirfd, newname, perm) != 0) in fs_imkdir()
1326 fd = openat(ff->ff_dirfd, newname, in fs_imkdir()
1389 if (fs_ifchdir_thread_local(ff->ff_dirfd) < 0) { in fs_imknod()
1401 if (mknodat(ff->ff_dirfd, newname, mode, dev) != 0) in fs_imknod()
1406 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imknod()
1407 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imknod()
1408 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imknod()
1447 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imkfifo()
1448 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imkfifo()
1449 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imkfifo()
1498 fd = openat(ff->ff_dirfd, ff->ff_name, in fs_imksocket()
1542 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imksocket()
1543 fchmodat(ff->ff_dirfd, newname, perm, AT_SYMLINK_NOFOLLOW) != 0 || in fs_imksocket()
1544 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_imksocket()
1594 if (symlinkat(symtgt, ff->ff_dirfd, newname) != 0) in fs_isymlink()
1598 if (fchownat(ff->ff_dirfd, newname, uid, gid, AT_SYMLINK_NOFOLLOW) != 0 || in fs_isymlink()
1599 fstatat(ff->ff_dirfd, newname, st, AT_SYMLINK_NOFOLLOW) != 0) in fs_isymlink()
1741 if (fstatat(file->ff_dirfd, file->ff_name, &cst, AT_SYMLINK_NOFOLLOW) != 0) in fs_remove()
1753 if (unlinkat(file->ff_dirfd, file->ff_name, in fs_remove()
1772 if (fstatat(file->ff_dirfd, file->ff_name, &st, in fs_stat()
1831 if (fstatat(file->ff_dirfd, succ, &st, AT_SYMLINK_NOFOLLOW) < 0) in fs_walk()
1921 if (fstatat(file->ff_dirfd, next, &st, AT_SYMLINK_NOFOLLOW) < 0) { in fs_walk()
1950 newfile = open_fid(file->ff_dirfd, succ, ai, false); in fs_walk()
2067 if (fchownat(file->ff_dirfd, file->ff_name, l9stat->n_uid, in fs_wstat()
2075 if (fchmodat(file->ff_dirfd, file->ff_name, in fs_wstat()
2110 if (renameat(file->ff_dirfd, file->ff_name, file->ff_dirfd, in fs_wstat()
2137 if (fstatat(file->ff_dirfd, file->ff_name, &st, in fs_statfs()
2151 fd = openat(file->ff_dirfd, file->ff_name, 0); in fs_statfs()
2328 if (fstatat(file->ff_dirfd, file->ff_name, &cst, in fs_rename()
2351 if (fstatat(f2ff->ff_dirfd, f2ff->ff_name, &npst, in fs_rename()
2375 if (renameat(file->ff_dirfd, file->ff_name, file->ff_dirfd, tmp) != 0) { in fs_rename()
2400 linklen = readlinkat(file->ff_dirfd, file->ff_name, buf, sizeof(buf)); in fs_readlink()
2423 if (fstatat(file->ff_dirfd, file->ff_name, &st, AT_SYMLINK_NOFOLLOW)) { in fs_getattr()
2534 if (fstatat(file->ff_dirfd, file->ff_name, &st, AT_SYMLINK_NOFOLLOW)) { in fs_setattr()
2545 if (fchmodat(file->ff_dirfd, file->ff_name, in fs_setattr()
2562 if (fchownat(file->ff_dirfd, file->ff_name, uid, gid, in fs_setattr()
2571 int fd = openat(file->ff_dirfd, file->ff_name, O_RDWR); in fs_setattr()
2610 if (utimensat(file->ff_dirfd, file->ff_name, ts, in fs_setattr()
2783 if (fstatat(dirf->ff_dirfd, dirf->ff_name, &tdst, AT_SYMLINK_NOFOLLOW) != 0 || in fs_link()
2784 fstatat(file->ff_dirfd, file->ff_name, &fst, AT_SYMLINK_NOFOLLOW) != 0) in fs_link()
2795 if (linkat(file->ff_dirfd, file->ff_name, file->ff_dirfd, in fs_link()
2857 if (fstatat(off->ff_dirfd, onb, &fst, AT_SYMLINK_NOFOLLOW) != 0) in fs_renameat()
2863 if (fstatat(off->ff_dirfd, off->ff_name, &odst, AT_SYMLINK_NOFOLLOW) != 0) in fs_renameat()
2870 if (fstatat(nff->ff_dirfd, nff->ff_name, &ndst, AT_SYMLINK_NOFOLLOW) != 0) in fs_renameat()
2890 if (renameat(off->ff_dirfd, onb, nff->ff_dirfd, nnb)) in fs_renameat()
2922 if (fstatat(dirff->ff_dirfd, newname, &fst, AT_SYMLINK_NOFOLLOW) != 0 || in fs_unlinkat()
2923 fstatat(dirff->ff_dirfd, dirff->ff_name, &dirst, AT_SYMLINK_NOFOLLOW) != 0) in fs_unlinkat()
2934 if (unlinkat(dirff->ff_dirfd, newname, AT_REMOVEDIR) != 0) in fs_unlinkat()
2937 if (unlinkat(dirff->ff_dirfd, newname, 0) != 0) in fs_unlinkat()