home *** CD-ROM | disk | FTP | other *** search
- /*
- * 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;
- }
-
-