]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Jun 2000 06:48:41 +0000 (06:48 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Jun 2000 06:48:41 +0000 (06:48 +0000)
* sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
unless user defined it.

ChangeLog
sysdeps/unix/sysv/linux/bits/local_lim.h

index 25fdebf0656d00ba65c8f7e63d3e1bd19bfc72f7..c938e5799a3c09826ceb3a879ab1049a26774251 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2000-06-07  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX
+       unless user defined it.
+
        * sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
        if not defined by the user.
 
index 7d6346113742629b9239e9f092c0696509b32efe..e9d81821931f25885ff53b9f84388f49d3c0c0d1 100644 (file)
    Boston, MA 02111-1307, USA.  */
 
 /* The kernel header pollutes the namespace with the NR_OPEN symbol
-   and defines LINK_MAX although filesystems have different maxima.
-   Remove this after including the header if necessary.  */
+   and defines LINK_MAX although filesystems have different maxima.  A
+   similar thing is true for OPEN_MAX: the limit can be changed at
+   runtime and therefore the macro must not be defined.  Remove this
+   after including the header if necessary.  */
 #ifndef NR_OPEN
 # define __undef_NR_OPEN
 #endif
 #ifndef LINK_MAX
 # define __undef_LINK_MAX
 #endif
+#ifndef OPEN_MAX
+# define __undef_OPEN_MAX
+#endif
 
 /* The kernel sources contain a file with all the needed information.  */
 #include <linux/limits.h>
 # undef LINK_MAX
 # undef __undef_LINK_MAX
 #endif
+/* Have to remove OPEN_MAX?  */
+#ifdef __undef_OPEN_MAX
+# undef OPEN_MAX
+# undef __undef_OPEN_MAX
+#endif
 
 /* Maximum amount by which a process can descrease its asynchronous I/O
    priority level.  */