/* ISC license. */ #include #include int uncoe (int fd) { int flags = fcntl(fd, F_GETFD, 0) ; return flags < 0 ? flags : flags & FD_CLOEXEC ? fcntl(fd, F_SETFD, flags & ~FD_CLOEXEC) : 0 ; }