Lines Matching refs:fd
61 const int fd = open(path, O_RDONLY);
62 ATF_REQUIRE_MSG(fd != -1, "Cannot open %s", path);
63 const ssize_t length = read(fd, buffer, buflen - 1);
64 close(fd);
309 const int fd = open("empty.txt", O_RDONLY);
310 ATF_REQUIRE(fd != -1);
311 ATF_REQUIRE(atf_utils_readline(fd) == NULL);
312 close(fd);
324 const int fd = open("test.txt", O_RDONLY);
325 ATF_REQUIRE(fd != -1);
329 line = atf_utils_readline(fd);
333 line = atf_utils_readline(fd);
337 line = atf_utils_readline(fd);
341 close(fd);