Searched refs:pathdfd (Results 1 – 1 of 1) sorted by relevance
/freebsd/tests/sys/file/ |
H A D | path_test.c | 220 int dfd, fd, pathfd, pathdfd; in ATF_TC_BODY() local 224 pathdfd = open(".", O_PATH); in ATF_TC_BODY() 225 ATF_REQUIRE_MSG(pathdfd >= 0, FMT_ERR("open")); in ATF_TC_BODY() 231 dfd = openat(pathdfd, "", O_DIRECTORY | O_EMPTY_PATH); in ATF_TC_BODY() 239 ATF_REQUIRE(cap_rights_limit(pathdfd, &rights) == 0); in ATF_TC_BODY() 240 dfd = openat(pathdfd, "", O_DIRECTORY | O_EMPTY_PATH); in ATF_TC_BODY() 248 ATF_REQUIRE(cap_rights_limit(pathdfd, &rights) == 0); in ATF_TC_BODY() 249 dfd = openat(pathdfd, "", O_DIRECTORY | O_EMPTY_PATH); in ATF_TC_BODY() 282 CHECKED_CLOSE(pathdfd); in ATF_TC_BODY()
|