Searched defs:dirfd (Results 1 - 3 of 3) sorted by relevance

/systemd/src/basic/
H A Dxattr-util.c106 ssize_t fgetxattrat_fake(int dirfd, const char *filename, const char *attribute, void *value, size_t size, int flags) { argument
113 fd = openat(dirfd, filename, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_PATH|(flags & AT_SYMLINK_NOFOLLOW ? O_NOFOLLOW : 0));
158 int fd_getcrtime_at(int dirfd, const char *name, usec_t *usec, int flags) { argument
162 n = fgetxattrat_fake(dirfd, name, "user.crtime_usec", &le, sizeof(le), flags);
H A Dcopy.c302 (void) copy_xattr(dirfd(d), fdt);
312 if (fstatat(dirfd(d), de->d_name, &buf, AT_SYMLINK_NOFOLLOW) < 0) {
321 q = fd_copy_regular(dirfd(d), de->d_name, &buf, fdt, de->d_name);
323 q = fd_copy_directory(dirfd(d), de->d_name, &buf, fdt, de->d_name, original_device, merge);
325 q = fd_copy_symlink(dirfd(d), de->d_name, &buf, fdt, de->d_name);
327 q = fd_copy_fifo(dirfd(d), de->d_name, &buf, fdt, de->d_name);
329 q = fd_copy_node(dirfd(d), de->d_name, &buf, fdt, de->d_name);
370 int copy_directory_fd(int dirfd, const char *to, bool merge) { argument
374 assert(dirfd >= 0);
377 if (fstat(dirfd,
[all...]
/systemd/src/tmpfiles/
H A Dtmpfiles.c314 r_p = name_to_handle_at(dirfd(d), ".", &h.handle, &mount_id_parent, 0);
319 r = name_to_handle_at(dirfd(d), subdir, &h.handle, &mount_id, 0);
342 static DIR* xopendirat_nomod(int dirfd, const char *path) { argument
345 dir = xopendirat(dirfd, path, O_NOFOLLOW|O_NOATIME);
349 log_debug_errno(errno, "Cannot open %sdirectory \"%s\": %m", dirfd == AT_FDCWD ? "" : "sub", path);
353 dir = xopendirat(dirfd, path, O_NOFOLLOW);
355 log_debug_errno(errno, "Cannot open %sdirectory \"%s\": %m", dirfd == AT_FDCWD ? "" : "sub", path);
388 if (fstatat(dirfd(d), dent->d_name, &s, AT_SYMLINK_NOFOLLOW) < 0) {
454 sub_dir = xopendirat_nomod(dirfd(d), dent->d_name);
500 if (unlinkat(dirfd(
[all...]

Completed in 38 milliseconds