|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 366 (0x16e)
Types: TextFile
Names: »closefds.c«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦3658e588a⟧ »EurOpenD3/mail/mh/mh-6.7.tar.Z«
└─⟦c75e36ecb⟧
└─⟦this⟧ »mh-6.7/sbr/closefds.c«
/* closefds.c - close-up fd:s */
#include "../h/mh.h"
#ifndef BSD42
#include <stdio.h>
#endif not BSD42
void closefds (i)
register int i;
{
#ifndef BSD42
int nbits = _NFILE;
#else BSD42
int nbits = getdtablesize ();
#endif BSD42
for (; i < nbits; i++)
#ifdef OVERHEAD
if (i != fd_def && i != fd_ctx)
#endif OVERHEAD
(void) close (i);
}