home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume12 / cnews / part01 / libc / closeall.c next >
Encoding:
C/C++ Source or Header  |  1987-10-19  |  136 b   |  11 lines

  1. #include <sys/param.h>
  2.  
  3. closeall(leavestd)
  4. int leavestd;
  5. {
  6.     register int i;
  7.  
  8.     for (i = (leavestd? 3: 0); i < NOFILE; i++)
  9.         close(i);
  10. }
  11.