Home | History | Annotate | Download | only in sendfile

Lines Matching defs:in_fd

30  *	2. Call sendfile(2) with in_fd = -1, and expect EBADF to be returned.
31 * 3. Call sendfile(2) with in_fd = out_fd = -1, and expect EBADF.
64 int in_fd, out_fd;
75 int in_fd;
81 "Test for EBADF, in_fd = -1", NULL, 8, -1, NULL, 0, EBADF}, {
83 "Test for EBADF, in_fd = out_fd = -1", NULL, -1, -1, NULL,
107 TEST(sendfile(testcases[i].out_fd, testcases[i].in_fd,
145 if ((in_fd = creat(in_file, 00700)) < 0) {
150 if (write(in_fd, buf, strlen(buf)) < 0) {
153 close(in_fd);
154 if ((in_fd = open(in_file, O_RDONLY)) < 0) {
174 close(in_fd);