DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦69b8dece5⟧ TextFile

    Length: 360 (0x168)
    Types: TextFile
    Names: »limit.c«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21F/config/limit.c« 

TextFile

/*
 *  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("Nombre maximum de fichiers ouverts par process: %d\n", i);
	while (--i > 2)
		close(i);
	exit(0);
}