F_GETFD
flags = fcntl(fd, F_GETFD);
int flags = fcntl(pdes[target], F_GETFD);
int flags = fcntl(pdes[target], F_GETFD);
int flags = fcntl(fd, F_GETFD);
if ((oflags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC))
case F_GETFD:
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC);
int flags = fcntl(s, F_GETFD);
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | O_CLOEXEC);
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) != 0);
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) != 0);
ATF_REQUIRE((fcntl(fd[0], F_GETFD) & FD_CLOEXEC) == 0);
ATF_REQUIRE((fcntl(fd[1], F_GETFD) & FD_CLOEXEC) == 0);
while(fcntl(fd, F_GETFD, NULL) != -1);
while(fcntl(fd, F_GETFD, NULL) != -1);
if (fcntl(fd2, F_GETFD) != 0)
if (fcntl(fd2, F_GETFD) == 0)
if (fcntl(fd2, F_GETFD) != 0)
case F_GETFD: