Annotation of 43BSD/contrib/mh/sbr/closefds.c, revision 1.1

1.1     ! root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.