|
|
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: 344 (0x158)
Types: TextFile
Names: »limit.c«
└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
└─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/config/limit.c«
/*
* Force a UNIX system to the per process limits
*
* $Header: limit.c,v 3.4 87/06/22 14:25:11 kjmcdonell Beta $
*/
main(argc, argv)
int argc;
char *argv[];
{
int i;
/* open files (file descriptors) */
for (i = 3; open(".", 0) > 0; i++) ;
printf("Maximum open files per process: %d\n", i);
while (--i > 2)
close(i);
exit(0);
}