Searched refs:opened_fd (Results 1 – 3 of 3) sorted by relevance
/systemd-251/src/basic/ |
D | sync-util.c | 89 _cleanup_close_ int opened_fd = -1; in fsync_path_at() local 94 opened_fd = open(".", O_RDONLY|O_DIRECTORY|O_CLOEXEC); in fsync_path_at() 95 if (opened_fd < 0) in fsync_path_at() 98 fd = opened_fd; in fsync_path_at() 102 opened_fd = openat(at_fd, path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in fsync_path_at() 103 if (opened_fd < 0) in fsync_path_at() 106 fd = opened_fd; in fsync_path_at() 113 _cleanup_close_ int opened_fd = -1; in fsync_parent_at() local 119 opened_fd = open("..", O_RDONLY|O_DIRECTORY|O_CLOEXEC); in fsync_parent_at() 120 if (opened_fd < 0) in fsync_parent_at() [all …]
|
D | xattr-util.c | 29 _cleanup_close_ int opened_fd = -1; in getxattr_at_malloc() local 64 …opened_fd = openat(fd, path, O_PATH|O_CLOEXEC|(FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? 0 : O_NOFOLLO… in getxattr_at_malloc() 65 if (opened_fd < 0) in getxattr_at_malloc() 68 fd = opened_fd; in getxattr_at_malloc() 215 _cleanup_close_ int opened_fd = -1; in listxattr_at_malloc() local 240 …opened_fd = openat(fd, path, O_PATH|O_CLOEXEC|(FLAGS_SET(flags, AT_SYMLINK_FOLLOW) ? 0 : O_NOFOLLO… in listxattr_at_malloc() 241 if (opened_fd < 0) in listxattr_at_malloc() 244 fd = opened_fd; in listxattr_at_malloc()
|
D | random-util.c | 236 _cleanup_close_ int opened_fd = -1; in random_write_entropy() local 245 opened_fd = open("/dev/urandom", O_WRONLY|O_CLOEXEC|O_NOCTTY); in random_write_entropy() 246 if (opened_fd < 0) in random_write_entropy() 249 fd = opened_fd; in random_write_entropy()
|