Searched refs:rootfd (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/openat2/ |
H A D | resolve_test.c | 125 int rootfd, hardcoded_fd; in test_openat2_opath_tests() local 129 rootfd = setup_testdir(); in test_openat2_opath_tests() 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); in test_openat2_opath_tests() 461 dfd = dup(rootfd); in test_openat2_opath_tests() 468 failed = (fd < 0 || !fdequal(fd, rootfd, test->out.path)); in test_openat2_opath_tests() 500 close(rootfd); in test_openat2_opath_tests()
|
/kernel/linux/linux-6.6/tools/testing/selftests/openat2/ |
H A D | resolve_test.c | 125 int rootfd, hardcoded_fd; in test_openat2_opath_tests() local 129 rootfd = setup_testdir(); in test_openat2_opath_tests() 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); in test_openat2_opath_tests() 461 dfd = dup(rootfd); in test_openat2_opath_tests() 468 failed = (fd < 0 || !fdequal(fd, rootfd, test->out.path)); in test_openat2_opath_tests() 500 close(rootfd); in test_openat2_opath_tests()
|
Completed in 4 milliseconds