summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-12-20 17:55:13 +0000
committerJim Meyering <jim@meyering.net>2003-12-20 17:55:13 +0000
commitb904a67dc83a3356b65d8008d00e46e501de12cc (patch)
tree8db2e231904d55e31ed62a585e27a118c4b534f8 /m4
parent01fc0cb46166a474bcc41b7303b2956b54314bd6 (diff)
downloadcoreutils-b904a67dc83a3356b65d8008d00e46e501de12cc.tar.xz
(UTILS_SYS_OPEN_MAX): Remove file. No longer used.
Diffstat (limited to 'm4')
-rw-r--r--m4/open-max.m441
1 files changed, 0 insertions, 41 deletions
diff --git a/m4/open-max.m4 b/m4/open-max.m4
deleted file mode 100644
index 557aded95..000000000
--- a/m4/open-max.m4
+++ /dev/null
@@ -1,41 +0,0 @@
-#serial 1
-# Determine approximately how many files may be open simultaneously
-# in one process. This is approximate, since while running this test,
-# the configure script already has a few files open.
-# From Jim Meyering
-
-AC_DEFUN([UTILS_SYS_OPEN_MAX],
-[
- AC_CACHE_CHECK([determine how many files may be open simultaneously],
- utils_cv_sys_open_max,
- [
- AC_RUN_IFELSE([AC_LANG_SOURCE([[
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
- int
- main ()
- {
- FILE *result = fopen ("conftest.omax", "w");
- int i = 1;
- /* Impose an arbitrary limit, in case some system has no
- effective limit on the number of simultaneously open files. */
- while (i < 30000)
- {
- FILE *s = fopen ("conftest.op", "w");
- if (!s)
- break;
- ++i;
- }
- fprintf (result, "%d\n", i);
- exit (fclose (result) == EOF);
- }
- ]])],
- [utils_cv_sys_open_max=`cat conftest.omax`],
- [utils_cv_sys_open_max='internal error in open-max.m4'],
- [utils_cv_sys_open_max='cross compiling run-test in open-max.m4'])])
-
- AC_DEFINE_UNQUOTED([UTILS_OPEN_MAX],
- $utils_cv_sys_open_max,
- [the maximum number of simultaneously open files per process])
-])