/* * set close on exec (on Berklix) */ #include #include void fclsexec(fp) FILE *fp; { (void) ioctl(fileno(fp), FIOCLEX, (char *)NULL); }