Lines Matching refs:dirfd
53 int i, dirfd; in ATF_TC_BODY() local
61 dirfd = open(tmpdir, O_RDONLY | O_DIRECTORY); in ATF_TC_BODY()
62 ATF_REQUIRE(dirfd > 0); in ATF_TC_BODY()
73 fd = openat(dirfd, filename, O_WRONLY | O_CREAT, 0600); in ATF_TC_BODY()
79 dirp = fdopendir(dirfd); in ATF_TC_BODY()
80 ATF_REQUIRE_MSG(dirfd >= 0, "fdopendir failed"); in ATF_TC_BODY()
129 int i, dirfd; in ATF_TC_BODY() local
138 dirfd = open(tmpdir, O_RDONLY | O_DIRECTORY); in ATF_TC_BODY()
139 ATF_REQUIRE(dirfd > 0); in ATF_TC_BODY()
150 fd = openat(dirfd, filename, O_WRONLY | O_CREAT, 0600); in ATF_TC_BODY()
156 dirp = fdopendir(dirfd); in ATF_TC_BODY()
157 ATF_REQUIRE_MSG(dirfd >= 0, "fdopendir failed"); in ATF_TC_BODY()