Lines Matching refs:fcntl
56 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
58 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
60 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
77 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
79 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
81 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
97 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
99 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
103 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
104 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
105 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
115 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
119 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
120 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_0()
121 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
125 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_0()
126 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_0()
127 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_0()
157 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_1()
161 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_1()
162 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_1()
163 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1()
167 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_1()
168 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_1()
169 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_1()
192 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_2()
196 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_2()
197 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_2()
198 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2()
202 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_2()
203 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_2()
204 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_2()
246 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
248 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
250 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
261 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
263 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
265 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
275 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
277 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
281 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
282 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
283 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
291 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
295 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()
296 CHECK(fcntl(fd, F_SETFD, FD_CLOEXEC) == 0); in ioctl_tests_recv_0()
297 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
301 CHECK(fcntl(fd, F_GETFD) == FD_CLOEXEC); in ioctl_tests_recv_0()
302 CHECK(fcntl(fd, F_SETFD, 0) == 0); in ioctl_tests_recv_0()
303 CHECK(fcntl(fd, F_GETFD) == 0); in ioctl_tests_recv_0()