Lines Matching refs:fcntl
75 if ((fd[2] = fcntl(fd[1], F_DUPFD, 1)) == -1) in main()
82 if ((fd[4] = fcntl(fd[1], F_DUPFD, fd2[3])) < 0) in main()
89 if ((fd[8] = fcntl(fd[1], F_DUPFD, fd2[5])) < 0) in main()
96 flags = fcntl(fd[2], F_GETFL, 0); in main()
102 if (fcntl(fd[2], F_SETFL, O_NDELAY) == -1) in main()
105 flags = fcntl(fd[2], F_GETFL, 0); in main()
111 if (fcntl(fd[2], F_SETFL, O_APPEND) == -1) in main()
114 flags = fcntl(fd[2], F_GETFL, 0); in main()
120 if (fcntl(fd[2], F_SETFL, O_NDELAY | O_APPEND) < 0) in main()
123 flags = fcntl(fd[2], F_GETFL, 0); in main()
130 if (fcntl(fd[2], F_SETFL, 0) == -1) in main()
133 flags = fcntl(fd[2], F_GETFL, 0); in main()
142 if ((flags = fcntl(fd[2], F_GETFD, 0)) < 0) in main()
148 if ((flags = fcntl(fd[2], F_SETFD, 1)) == -1) in main()
150 if ((flags = fcntl(fd[2], F_GETFD, 0)) == -1) in main()