diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-08 10:09:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-08 10:09:10 +0000 |
commit | 9001274de9660bb0ef97f8ae13a490c6dbf69a51 (patch) | |
tree | ec53a3aa8511737cd939aa3471f5c172340baa02 | |
parent | de1a717765d50ae5339a9ff0c004eefab9ecf2b1 (diff) | |
download | glibc-9001274de9660bb0ef97f8ae13a490c6dbf69a51.zip glibc-9001274de9660bb0ef97f8ae13a490c6dbf69a51.tar.gz glibc-9001274de9660bb0ef97f8ae13a490c6dbf69a51.tar.bz2 |
Update.
* sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as
256 and don't use OPEN_MAX.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sys/param.h | 12 |
2 files changed, 10 insertions, 5 deletions
@@ -1,5 +1,8 @@ 2000-06-08 Ulrich Drepper <drepper@redhat.com> + * sysdeps/unix/sysv/linux/sys/param.h: Define NOFILE directly as + 256 and don't use OPEN_MAX. + * sysdeps/unix/sysv/linux/pathconf.c: Define LINUX_LINK_MAX and use it instead of LINK_MAX. * sysdeps/unix/sysv/linux/fpathconf.c: Likewise. diff --git a/sysdeps/unix/sysv/linux/sys/param.h b/sysdeps/unix/sysv/linux/sys/param.h index c2a56a2..759933f 100644 --- a/sysdeps/unix/sysv/linux/sys/param.h +++ b/sysdeps/unix/sysv/linux/sys/param.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -17,7 +17,6 @@ Boston, MA 02111-1307, USA. */ #ifndef _SYS_PARAM_H - #define _SYS_PARAM_H 1 #include <limits.h> @@ -28,13 +27,16 @@ #define NBBY CHAR_BIT #ifndef NGROUPS -# define NGROUPS NGROUPS_MAX +# define NGROUPS NGROUPS_MAX #endif #define MAXSYMLINKS 5 #define CANBSIZ MAX_CANON #define NCARGS ARG_MAX -#define MAXPATHLEN PATH_MAX -#define NOFILE OPEN_MAX +#define MAXPATHLEN PATH_MAX +/* The following is not really correct but it is a value we used for a + long time and which seems to be usable. People should not use NOFILE + anyway. */ +#define NOFILE 256 #include <sys/types.h> |