Lines Matching refs:dirfd
464 static DIR* xopendirat_nomod(int dirfd, const char *path) { in xopendirat_nomod() argument
467 dir = xopendirat(dirfd, path, O_NOFOLLOW|O_NOATIME); in xopendirat_nomod()
471 …log_debug_errno(errno, "Cannot open %sdirectory \"%s\": %m", dirfd == AT_FDCWD ? "" : "sub", path); in xopendirat_nomod()
475 dir = xopendirat(dirfd, path, O_NOFOLLOW); in xopendirat_nomod()
477 …log_debug_errno(errno, "Cannot open %sdirectory \"%s\": %m", dirfd == AT_FDCWD ? "" : "sub", path); in xopendirat_nomod()
591 dirfd(d), de->d_name, in dir_cleanup()
625 q = fd_is_mount_point(dirfd(d), de->d_name, 0); in dir_cleanup()
672 sub_dir = xopendirat_nomod(dirfd(d), de->d_name); in dir_cleanup()
680 if (flock(dirfd(sub_dir), LOCK_EX|LOCK_NB) < 0) { in dir_cleanup()
714 if (unlinkat(dirfd(d), de->d_name, AT_REMOVEDIR) < 0) in dir_cleanup()
760 if (unlinkat(dirfd(d), de->d_name, 0) < 0) in dir_cleanup()
781 if (futimens(dirfd(d), ts) < 0) in dir_cleanup()
2473 …r = statx_fallback(dirfd(d), "", AT_EMPTY_PATH, STATX_MODE|STATX_INO|STATX_ATIME|STATX_MTIME, &sx); in clean_item_instance()
2482 if (fstatat(dirfd(d), "..", &ps, AT_SYMLINK_NOFOLLOW) != 0) in clean_item_instance()