Lines Matching refs:at_fd
88 int fsync_path_at(int at_fd, const char *path) { in fsync_path_at() argument
93 if (at_fd == AT_FDCWD) { in fsync_path_at()
100 fd = at_fd; in fsync_path_at()
102 opened_fd = openat(at_fd, path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in fsync_path_at()
112 int fsync_parent_at(int at_fd, const char *path) { in fsync_parent_at() argument
116 if (at_fd != AT_FDCWD) in fsync_parent_at()
117 return fsync_directory_of_file(at_fd); in fsync_parent_at()
126 opened_fd = openat(at_fd, path, O_PATH|O_CLOEXEC|O_NOFOLLOW); in fsync_parent_at()
133 int fsync_path_and_parent_at(int at_fd, const char *path) { in fsync_path_and_parent_at() argument
137 if (at_fd != AT_FDCWD) in fsync_path_and_parent_at()
138 return fsync_full(at_fd); in fsync_path_and_parent_at()
142 opened_fd = openat(at_fd, path, O_RDONLY|O_NOFOLLOW|O_NONBLOCK|O_CLOEXEC); in fsync_path_and_parent_at()
149 int syncfs_path(int at_fd, const char *path) { in syncfs_path() argument
153 if (at_fd != AT_FDCWD) in syncfs_path()
154 return RET_NERRNO(syncfs(at_fd)); in syncfs_path()
158 fd = openat(at_fd, path, O_RDONLY|O_CLOEXEC|O_NONBLOCK); in syncfs_path()