/* * set close on exec (on Uglix) */ #include #include void fclsexec(fp) FILE *fp; { (void) fcntl(fileno(fp), F_SETFD, 1); }