|
Packit |
6c4009 |
/* Minimum guaranteed maximum values for system limits. Linux/IA-64 version.
|
|
Packit |
6c4009 |
Copyright (C) 1993-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* The kernel header pollutes the namespace with the NR_OPEN symbol
|
|
Packit |
6c4009 |
and defines LINK_MAX although filesystems have different maxima. A
|
|
Packit |
6c4009 |
similar thing is true for OPEN_MAX: the limit can be changed at
|
|
Packit |
6c4009 |
runtime and therefore the macro must not be defined. Remove this
|
|
Packit |
6c4009 |
after including the header if necessary. */
|
|
Packit |
6c4009 |
#ifndef NR_OPEN
|
|
Packit |
6c4009 |
# define __undef_NR_OPEN
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef LINK_MAX
|
|
Packit |
6c4009 |
# define __undef_LINK_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef OPEN_MAX
|
|
Packit |
6c4009 |
# define __undef_OPEN_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#ifndef ARG_MAX
|
|
Packit |
6c4009 |
# define __undef_ARG_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* The kernel sources contain a file with all the needed information. */
|
|
Packit |
6c4009 |
#include <linux/limits.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Have to remove NR_OPEN? */
|
|
Packit |
6c4009 |
#ifdef __undef_NR_OPEN
|
|
Packit |
6c4009 |
# undef NR_OPEN
|
|
Packit |
6c4009 |
# undef __undef_NR_OPEN
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
/* Have to remove LINK_MAX? */
|
|
Packit |
6c4009 |
#ifdef __undef_LINK_MAX
|
|
Packit |
6c4009 |
# undef LINK_MAX
|
|
Packit |
6c4009 |
# undef __undef_LINK_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
/* Have to remove OPEN_MAX? */
|
|
Packit |
6c4009 |
#ifdef __undef_OPEN_MAX
|
|
Packit |
6c4009 |
# undef OPEN_MAX
|
|
Packit |
6c4009 |
# undef __undef_OPEN_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
/* Have to remove ARG_MAX? */
|
|
Packit |
6c4009 |
#ifdef __undef_ARG_MAX
|
|
Packit |
6c4009 |
# undef ARG_MAX
|
|
Packit |
6c4009 |
# undef __undef_ARG_MAX
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* The number of data keys per process. */
|
|
Packit |
6c4009 |
#define _POSIX_THREAD_KEYS_MAX 128
|
|
Packit |
6c4009 |
/* This is the value this implementation supports. */
|
|
Packit |
6c4009 |
#define PTHREAD_KEYS_MAX 1024
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Controlling the iterations of destructors for thread-specific data. */
|
|
Packit |
6c4009 |
#define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
|
|
Packit |
6c4009 |
/* Number of iterations this implementation does. */
|
|
Packit |
6c4009 |
#define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* The number of threads per process. */
|
|
Packit |
6c4009 |
#define _POSIX_THREAD_THREADS_MAX 64
|
|
Packit |
6c4009 |
/* We have no predefined limit on the number of threads. */
|
|
Packit |
6c4009 |
#undef PTHREAD_THREADS_MAX
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum amount by which a process can descrease its asynchronous I/O
|
|
Packit |
6c4009 |
priority level. */
|
|
Packit |
6c4009 |
#define AIO_PRIO_DELTA_MAX 20
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Minimum size for a thread. We are free to choose a reasonable value. */
|
|
Packit |
6c4009 |
#define PTHREAD_STACK_MIN 196608
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum number of timer expiration overruns. */
|
|
Packit |
6c4009 |
#define DELAYTIMER_MAX 2147483647
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum tty name length. */
|
|
Packit |
6c4009 |
#define TTY_NAME_MAX 32
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum login name length. This is arbitrary. */
|
|
Packit |
6c4009 |
#define LOGIN_NAME_MAX 256
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum host name length. */
|
|
Packit |
6c4009 |
#define HOST_NAME_MAX 64
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum message queue priority level. */
|
|
Packit |
6c4009 |
#define MQ_PRIO_MAX 32768
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Maximum value the semaphore can have. */
|
|
Packit |
6c4009 |
#define SEM_VALUE_MAX (2147483647)
|