Lines Matching refs:dirfd
104 let dirfd = fcntl::open(tempdir.path(), in test_fstatat() localVariable
108 let result = stat::fstatat(dirfd.unwrap(), in test_fstatat()
170 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_fchmodat() localVariable
175 fchmodat(Some(dirfd), filename, mode1, FchmodatFlags::FollowSymlink).unwrap(); in test_fchmodat()
262 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_utimensat() localVariable
264 utimensat(Some(dirfd), filename, &TimeSpec::seconds(12345), &TimeSpec::seconds(678), in test_utimensat()
280 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_mkdirat_success_path() localVariable
281 assert!((mkdirat(dirfd, filename, Mode::S_IRWXU)).is_ok()); in test_mkdirat_success_path()
291 let dirfd = fcntl::open(tempdir.path(), fcntl::OFlag::empty(), stat::Mode::empty()).unwrap(); in test_mkdirat_success_mode() localVariable
292 assert!((mkdirat(dirfd, filename, Mode::S_IRWXU)).is_ok()); in test_mkdirat_success_mode()
304 let dirfd = fcntl::open(&tempdir.path().join(not_dir_filename), fcntl::OFlag::O_CREAT, in test_mkdirat_fail() localVariable
306 let result = mkdirat(dirfd, filename, Mode::S_IRWXU).unwrap_err(); in test_mkdirat_fail()