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


xopen_lim.h
001: /* Copyright (C) 1996, 1997, 1999, 2001 Free Software Foundation, Inc.
002:    This file is part of the GNU C Library.
003: 
004:    The GNU C Library is free software; you can redistribute it and/or
005:    modify it under the terms of the GNU Lesser General Public
006:    License as published by the Free Software Foundation; either
007:    version 2.1 of the License, or (at your option) any later version.
008: 
009:    The GNU C Library is distributed in the hope that it will be useful,
010:    but WITHOUT ANY WARRANTY; without even the implied warranty of
011:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
012:    Lesser General Public License for more details.
013: 
014:    You should have received a copy of the GNU Lesser General Public
015:    License along with the GNU C Library; if not, write to the Free
016:    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
017:    02111-1307 USA.  */
018: 
019: /*
020:  * Never include this file directly; use <limits.h> instead.
021:  */
022: 
023: /* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
024:    System Interfaces and Headers, 4.16 <limits.h>
025: 
026:    Please note only the values which are not greater than the minimum
027:    stated in the standard document are listed.  The `sysconf' functions
028:    should be used to obtain the actual value.  */
029: 
030: #ifndef _XOPEN_LIM_H
031: #define _XOPEN_LIM_H    1
032: 
033: #define __need_IOV_MAX
034: #include <bits/stdio_lim.h>
035: 
036: /* We do not provide fixed values for
037: 
038:    ARG_MAX      Maximum length of argument to the `exec' function
039:                 including environment data.
040: 
041:    ATEXIT_MAX   Maximum number of functions that may be registered
042:                 with `atexit'.
043: 
044:    CHILD_MAX    Maximum number of simultaneous processes per real
045:                 user ID.
046: 
047:    OPEN_MAX     Maximum number of files that one process can have open
048:                 at anyone time.
049: 
050:    PAGESIZE
051:    PAGE_SIZE    Size of bytes of a page.
052: 
053:    PASS_MAX     Maximum number of significant bytes in a password.
054: 
055:    We only provide a fixed limit for
056: 
057:    IOV_MAX      Maximum number of `iovec' structures that one process has
058:                 available for use with `readv' or writev'.
059: 
060:    if this is indeed fixed by the underlying system.
061: */
062: 
063: 
064: /* Maximum number of `iovec' structures that one process has available
065:    for use with `readv' or writev'.  */
066: #define _XOPEN_IOV_MAX  _POSIX_UIO_MAXIOV
067: 
068: 
069: /* Maximum value of `digit' in calls to the `printf' and `scanf'
070:    functions.  We have no limit, so return a reasonable value.  */
071: #define NL_ARGMAX       _POSIX_ARG_MAX
072: 
073: /* Maximum number of bytes in a `LANG' name.  We have no limit.  */
074: #define NL_LANGMAX      _POSIX2_LINE_MAX
075: 
076: /* Maximum message number.  We have no limit.  */
077: #define NL_MSGMAX       INT_MAX
078: 
079: /* Maximum number of bytes in N-to-1 collation mapping.  We have no
080:    limit.  */
081: #define NL_NMAX         INT_MAX
082: 
083: /* Maximum set number.  We have no limit.  */
084: #define NL_SETMAX       INT_MAX
085: 
086: /* Maximum number of bytes in a message.  We have no limit.  */
087: #define NL_TEXTMAX      INT_MAX
088: 
089: /* Default process priority.  */
090: #define NZERO           20
091: 
092: 
093: /* Number of bits in a word of type `int'.  */
094: #ifdef INT_MAX
095: # if INT_MAX == 32767
096: #  define WORD_BIT      16
097: # else
098: #  if INT_MAX == 2147483647
099: #   define WORD_BIT     32
100: #  else
101: /* Safe assumption.  */
102: #   define WORD_BIT     64
103: #  endif
104: # endif
105: #elif defined __INT_MAX__
106: # if __INT_MAX__ == 32767
107: #  define WORD_BIT      16
108: # else
109: #  if __INT_MAX__ == 2147483647
110: #   define WORD_BIT     32
111: #  else
112: /* Safe assumption.  */
113: #   define WORD_BIT     64
114: #  endif
115: # endif
116: #else
117: # define WORD_BIT       32
118: #endif
119: 
120: /* Number of bits in a word of type `long int'.  */
121: #ifdef LONG_MAX
122: # if LONG_MAX == 2147483647
123: #  define LONG_BIT      32
124: # else
125: /* Safe assumption.  */
126: #  define LONG_BIT      64
127: # endif
128: #elif defined __LONG_MAX__
129: # if __LONG_MAX__ == 2147483647
130: #  define LONG_BIT      32
131: # else
132: /* Safe assumption.  */
133: #  define LONG_BIT      64
134: # endif
135: #else
136: # include <bits/wordsize.h>
137: # if __WORDSIZE == 64
138: #  define LONG_BIT      64
139: # else
140: #  define LONG_BIT      32
141: # endif
142: #endif
143: 
144: #endif /* bits/xopen_lim.h */
145: 


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