Lines Matching refs:fd
53 int i, fd[2];
57 * when the 'fd' is not a valid descriptor.
72 ATF_REQUIRE(pipe(fd) == 0);
76 ATF_REQUIRE(fsync(fd[0]) == -1);
81 ATF_REQUIRE(fsync(fd[1]) == -1);
84 ATF_REQUIRE(close(fd[0]) == 0);
85 ATF_REQUIRE(close(fd[1]) == 0);
97 int fd, i;
104 fd = open(buf, O_CREAT|O_EXCL|O_RDWR, 0600);
106 fd = mkstemp(buf);
109 ATF_REQUIRE(fd != -1);
110 ATF_REQUIRE(write(fd, "0", 1) == 1);
111 ATF_REQUIRE(fsync(fd) == 0);
114 ATF_REQUIRE(close(fd) == 0);