Dr Andrew Scott G7VAV

My photo
 
June 2025
Mo Tu We Th Fr Sa Su
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 1 2 3 4 5 6


local_lim.h
001: /* Minimum guaranteed maximum values for system limits.  Linux version.
002:    Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc.
003:    This file is part of the GNU C Library.
004: 
005:    The GNU C Library is free software; you can redistribute it and/or
006:    modify it under the terms of the GNU Lesser General Public License as
007:    published by the Free Software Foundation; either version 2.1 of the
008:    License, or (at your option) any later version.
009: 
010:    The GNU C Library is distributed in the hope that it will be useful,
011:    but WITHOUT ANY WARRANTY; without even the implied warranty of
012:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013:    Lesser General Public License for more details.
014: 
015:    You should have received a copy of the GNU Lesser General Public
016:    License along with the GNU C Library; see the file COPYING.LIB.  If not,
017:    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
018:    Boston, MA 02111-1307, USA.  */
019: 
020: /* The kernel header pollutes the namespace with the NR_OPEN symbol
021:    and defines LINK_MAX although filesystems have different maxima.  A
022:    similar thing is true for OPEN_MAX: the limit can be changed at
023:    runtime and therefore the macro must not be defined.  Remove this
024:    after including the header if necessary.  */
025: #ifndef NR_OPEN
026: # define __undef_NR_OPEN
027: #endif
028: #ifndef LINK_MAX
029: # define __undef_LINK_MAX
030: #endif
031: #ifndef OPEN_MAX
032: # define __undef_OPEN_MAX
033: #endif
034: #ifndef ARG_MAX
035: # define __undef_ARG_MAX
036: #endif
037: 
038: /* The kernel sources contain a file with all the needed information.  */
039: #include <linux/limits.h>
040: 
041: /* Have to remove NR_OPEN?  */
042: #ifdef __undef_NR_OPEN
043: # undef NR_OPEN
044: # undef __undef_NR_OPEN
045: #endif
046: /* Have to remove LINK_MAX?  */
047: #ifdef __undef_LINK_MAX
048: # undef LINK_MAX
049: # undef __undef_LINK_MAX
050: #endif
051: /* Have to remove OPEN_MAX?  */
052: #ifdef __undef_OPEN_MAX
053: # undef OPEN_MAX
054: # undef __undef_OPEN_MAX
055: #endif
056: /* Have to remove ARG_MAX?  */
057: #ifdef __undef_ARG_MAX
058: # undef ARG_MAX
059: # undef __undef_ARG_MAX
060: #endif
061: 
062: /* The number of data keys per process.  */
063: #define _POSIX_THREAD_KEYS_MAX  128
064: /* This is the value this implementation supports.  */
065: #define PTHREAD_KEYS_MAX        1024
066: 
067: /* Controlling the iterations of destructors for thread-specific data.  */
068: #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS     4
069: /* Number of iterations this implementation does.  */
070: #define PTHREAD_DESTRUCTOR_ITERATIONS   _POSIX_THREAD_DESTRUCTOR_ITERATIONS
071: 
072: /* The number of threads per process.  */
073: #define _POSIX_THREAD_THREADS_MAX       64
074: /* We have no predefined limit on the number of threads.  */
075: #undef PTHREAD_THREADS_MAX
076: 
077: /* Maximum amount by which a process can descrease its asynchronous I/O
078:    priority level.  */
079: #define AIO_PRIO_DELTA_MAX      20
080: 
081: /* Minimum size for a thread.  We are free to choose a reasonable value.  */
082: #define PTHREAD_STACK_MIN       16384
083: 
084: /* Maximum number of timer expiration overruns.  */
085: #define DELAYTIMER_MAX  2147483647
086: 
087: /* Maximum tty name length.  */
088: #define TTY_NAME_MAX            32
089: 
090: /* Maximum login name length.  This is arbitrary.  */
091: #define LOGIN_NAME_MAX          256
092: 
093: /* Maximum host name length.  */
094: #define HOST_NAME_MAX           64
095: 
096: /* Maximum message queue priority level.  */
097: #define MQ_PRIO_MAX             32768
098: 
099: /* Maximum value the semaphore can have.  */
100: #define SEM_VALUE_MAX   (2147483647)
101: 


for client (none)
© Andrew Scott 2006 - 2025,
All Rights Reserved
http://www.andrew-scott.uk/
Andrew Scott
http://www.andrew-scott.co.uk/