Searched refs:pfd (Results 1 – 6 of 6) sorted by relevance
/systemd-251/src/shared/ |
D | install-file.c | 121 _cleanup_close_ int pfd = -1; in install_file() local 126 pfd = openat(source_atfd, source_name, O_PATH|O_CLOEXEC|O_NOFOLLOW); in install_file() 127 if (pfd < 0) in install_file() 130 if (fstat(pfd, &st) < 0) in install_file() 138 regfd = fd_reopen(pfd, O_RDONLY|O_CLOEXEC); in install_file() 163 dfd = fd_reopen(pfd, O_RDONLY|O_DIRECTORY|O_CLOEXEC); in install_file() 191 r = fsync_directory_of_file(pfd); in install_file()
|
D | barrier.c | 215 struct pollfd pfd[2] = { in barrier_read() local 223 r = ppoll_usec(pfd, ELEMENTSOF(pfd), USEC_INFINITY); in barrier_read() 229 if (pfd[1].revents) { in barrier_read() 239 } else if (pfd[0].revents & (POLLHUP | POLLERR | POLLNVAL)) in barrier_read()
|
/systemd-251/src/sysupdate/ |
D | sysupdate-resource.c | 244 _cleanup_(close_pairp) int pfd[2] = { -1, -1 }; in download_manifest() 260 if (pipe2(pfd, O_CLOEXEC) < 0) in download_manifest() 281 pfd[0] = safe_close(pfd[0]); in download_manifest() 283 r = rearrange_stdio(-1, pfd[1], STDERR_FILENO); in download_manifest() 295 pfd[1] = safe_close(pfd[1]); in download_manifest() 302 manifest = fdopen(pfd[0], "r"); in download_manifest() 306 TAKE_FD(pfd[0]); in download_manifest()
|
/systemd-251/src/test/ |
D | test-fs-util.c | 32 _cleanup_close_ int pfd = -1; in TEST() local 294 r = chase_symlinks(p, NULL, 0, NULL, &pfd); in TEST() 299 assert_se(pfd >= 0); in TEST() 301 fd = fd_reopen(pfd, O_RDONLY|O_CLOEXEC); in TEST() 303 safe_close(pfd); in TEST() 315 r = chase_symlinks(q, NULL, CHASE_NOFOLLOW, &result, &pfd); in TEST() 317 assert_se(pfd >= 0); in TEST() 319 assert_se(fstat(pfd, &st) >= 0); in TEST() 322 pfd = safe_close(pfd); in TEST() 329 r = chase_symlinks(q, NULL, CHASE_NOFOLLOW, &result, &pfd); in TEST() [all …]
|
/systemd-251/src/tmpfiles/ |
D | tmpfiles.c | 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() [all …]
|
/systemd-251/src/partition/ |
D | repart.c | 2824 _cleanup_close_ int sfd = -1, pfd = -1, tfd = -1; in do_copy_files() local 2855 …pfd = chase_symlinks_and_open(dn, fs, CHASE_PREFIX_ROOT|CHASE_WARN, O_RDONLY|O_DIRECTORY|O_CLOEXEC… in do_copy_files() 2856 if (pfd < 0) in do_copy_files() 2857 … return log_error_errno(pfd, "Failed to open parent directory of target: %m"); in do_copy_files() 2861 pfd, fn, in do_copy_files() 2892 …pfd = chase_symlinks_and_open(dn, fs, CHASE_PREFIX_ROOT|CHASE_WARN, O_RDONLY|O_DIRECTORY|O_CLOEXEC… in do_copy_files() 2893 if (pfd < 0) in do_copy_files() 2894 … return log_error_errno(pfd, "Failed to open parent directory of target: %m"); in do_copy_files() 2896 tfd = openat(pfd, fn, O_CREAT|O_EXCL|O_WRONLY|O_CLOEXEC, 0700); in do_copy_files()
|