Lines Matching refs:pfd
1596 _cleanup_close_ int pfd = -1; in create_directory_or_subvolume() local
1605 pfd = path_open_parent_safe(path); in create_directory_or_subvolume()
1606 if (pfd < 0) in create_directory_or_subvolume()
1607 return pfd; in create_directory_or_subvolume()
1630 r = btrfs_subvol_make_fd(pfd, basename(path)); in create_directory_or_subvolume()
1637 r = mkdirat_label(pfd, basename(path), mode); in create_directory_or_subvolume()
1645 k = is_dir_fd(pfd); in create_directory_or_subvolume()
1660 r = openat(pfd, basename(path), O_NOCTTY|O_CLOEXEC|O_DIRECTORY); in create_directory_or_subvolume()
1818 _cleanup_close_ int pfd = -1, fd = -1; in create_fifo() local
1824 pfd = path_open_parent_safe(path); in create_fifo()
1825 if (pfd < 0) in create_fifo()
1826 return pfd; in create_fifo()
1832 r = mkfifoat(pfd, bn, i->mode); in create_fifo()
1840 if (fstatat(pfd, bn, &st, AT_SYMLINK_NOFOLLOW) < 0) in create_fifo()
1848 r = mkfifoat_atomic(pfd, bn, i->mode); in create_fifo()
1866 fd = openat(pfd, bn, O_NOFOLLOW|O_CLOEXEC|O_PATH); in create_fifo()