mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 11:20:07 +00:00
Update.
* sysdeps/unix/sysv/linux/bits/local_lim.h: Undefine OPEN_MAX unless user defined it.
This commit is contained in:
parent
104d06900c
commit
bb7901065e
@ -1,5 +1,8 @@
|
|||||||
2000-06-07 Ulrich Drepper <drepper@redhat.com>
|
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
|
* sysdeps/unix/sysv/linux/bits/local_lim.h: Also undefine LINK_MAX
|
||||||
if not defined by the user.
|
if not defined by the user.
|
||||||
|
|
||||||
|
@ -18,14 +18,19 @@
|
|||||||
Boston, MA 02111-1307, USA. */
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
||||||
and defines LINK_MAX although filesystems have different maxima.
|
and defines LINK_MAX although filesystems have different maxima. A
|
||||||
Remove this after including the header if necessary. */
|
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
|
#ifndef NR_OPEN
|
||||||
# define __undef_NR_OPEN
|
# define __undef_NR_OPEN
|
||||||
#endif
|
#endif
|
||||||
#ifndef LINK_MAX
|
#ifndef LINK_MAX
|
||||||
# define __undef_LINK_MAX
|
# define __undef_LINK_MAX
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef OPEN_MAX
|
||||||
|
# define __undef_OPEN_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The kernel sources contain a file with all the needed information. */
|
/* The kernel sources contain a file with all the needed information. */
|
||||||
#include <linux/limits.h>
|
#include <linux/limits.h>
|
||||||
@ -40,6 +45,11 @@
|
|||||||
# undef LINK_MAX
|
# undef LINK_MAX
|
||||||
# undef __undef_LINK_MAX
|
# undef __undef_LINK_MAX
|
||||||
#endif
|
#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
|
/* Maximum amount by which a process can descrease its asynchronous I/O
|
||||||
priority level. */
|
priority level. */
|
||||||
|
Loading…
Reference in New Issue
Block a user