/* ISC license. */ /* OpenBSD manages to bork the fchmod declaration */ #include #include #include #include int fd_chmod (int fd, unsigned int mode) { int r ; do r = fchmod(fd, (mode_t)mode) ; while ((r == -1) && (errno == EINTR)) ; return r ; }