1: /* closefds.c - close-up fd:s */
   2: 
   3: #include "../h/mh.h"
   4: #ifndef BSD42
   5: #include <stdio.h>
   6: #endif	not BSD42
   7: 
   8: 
   9: void    closefds (i)
  10: register int    i;
  11: {
  12: #ifndef BSD42
  13:     int     nbits = _NFILE;
  14: #else   BSD42
  15:     int     nbits = getdtablesize ();
  16: #endif	BSD42
  17: 
  18:     for (; i < nbits; i++)
  19: #ifdef  OVERHEAD
  20:     if (i != fd_def && i != fd_ctx)
  21: #endif	OVERHEAD
  22:         (void) close (i);
  23: }

Defined functions

closefds defined in line 9; never used
Last modified: 1985-09-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 742
Valid CSS Valid XHTML 1.0 Strict