mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
Undefined ARG_MAX if <linux/limits.h> has defined it.
This commit is contained in:
parent
af7eda0ff6
commit
595cb734b2
@ -1,5 +1,5 @@
|
|||||||
/* Minimum guaranteed maximum values for system limits. Linux/Alpha version.
|
/* Minimum guaranteed maximum values for system limits. Linux/Alpha version.
|
||||||
Copyright (C) 1993-1998,2000,2002,2003,2004 Free Software Foundation, Inc.
|
Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -31,6 +31,9 @@
|
|||||||
#ifndef OPEN_MAX
|
#ifndef OPEN_MAX
|
||||||
# define __undef_OPEN_MAX
|
# define __undef_OPEN_MAX
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef ARG_MAX
|
||||||
|
# define __undef_ARG_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>
|
||||||
@ -50,6 +53,11 @@
|
|||||||
# undef OPEN_MAX
|
# undef OPEN_MAX
|
||||||
# undef __undef_OPEN_MAX
|
# undef __undef_OPEN_MAX
|
||||||
#endif
|
#endif
|
||||||
|
/* Have to remove ARG_MAX? */
|
||||||
|
#ifdef __undef_ARG_MAX
|
||||||
|
# undef ARG_MAX
|
||||||
|
# undef __undef_ARG_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The number of data keys per process. */
|
/* The number of data keys per process. */
|
||||||
#define _POSIX_THREAD_KEYS_MAX 128
|
#define _POSIX_THREAD_KEYS_MAX 128
|
||||||
|
Loading…
Reference in New Issue
Block a user