home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3648
/
maxfiles.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-07-16
|
416b
|
22 lines
/*
* maxfiles.c $Date: 91/06/30 17:46:52 $
*
* If your system doesn't support sysconf, then you might try
* replacing the function below with one which returns the
* value of FOPEN_MAX, _NFILE, or _MAXFILES from <stdio.h> .
*/
#include <unistd.h>
static char Rcsid[] = "$What: <@(#) maxfiles.c,v 2.1> $";
int maxfiles()
{
long sysconf();
int temp;
temp = (int) sysconf(_SC_OPEN_MAX);
return temp;
}