Lines Matching refs:fcntl
95 if (fcntl(fd1, F_SETFD, 1) != 0) in main()
113 if (fcntl(fd2, F_GETFD) != 0) in main()
160 if (fcntl(fd2, F_GETFD) == 0) in main()
166 if ((fd2 = fcntl(fd1, F_DUPFD, 10)) < 0) in main()
176 if (fcntl(fd2, F_GETFD) != 0) in main()
192 if ((fd2 = fcntl(fd1, F_DUP2FD, fd1 + 1)) < 0) in main()
208 if (fcntl(fd2, F_GETFD) != 0) in main()
217 if ((fd2 = fcntl(fd1, F_DUP2FD, fd1)) < 0) in main()
234 if (fcntl(fd2, F_GETFD) == 0) in main()
244 if ((fd2 = fcntl(fd1, F_DUP2FD, rlp.rlim_cur + 1)) >= 0) in main()
252 if ((fd2 = fcntl(fd1, F_DUPFD_CLOEXEC, 10)) < 0) in main()
262 if (fcntl(fd2, F_GETFD) != 1) in main()
271 if ((fd2 = fcntl(fd1, F_DUP2FD_CLOEXEC, fd1 + 1)) < 0) in main()
287 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main()
303 if ((fd2 = fcntl(fd1, F_DUP2FD_CLOEXEC, rlp.rlim_cur + 1)) >= 0) in main()
327 if (fcntl(fd2, F_GETFD) != FD_CLOEXEC) in main()
352 if (fcntl(fd2, F_GETFD) != 0) in main()
386 if ((fd2 = fcntl(fd1, F_DUPFD_CLOFORK, 10)) < 0) in main()
396 if (fcntl(fd2, F_GETFD) != FD_CLOFORK) in main()
421 if (fcntl(fd2, F_GETFD) != FD_CLOFORK) in main()
446 if (fcntl(fd2, F_GETFD) != 0) in main()