]> git.ipfire.org Git - thirdparty/glibc.git/blob - posix/bits/posix1_lim.h
Update.
[thirdparty/glibc.git] / posix / bits / posix1_lim.h
1 /* Copyright (C) 1991-1993,96,98,2000-2003,2004 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3
4 The GNU C Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 The GNU C Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with the GNU C Library; if not, write to the Free
16 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
17 02111-1307 USA. */
18
19 /*
20 * POSIX Standard: 2.9.2 Minimum Values Added to <limits.h>
21 *
22 * Never include this file directly; use <limits.h> instead.
23 */
24
25 #ifndef _BITS_POSIX1_LIM_H
26 #define _BITS_POSIX1_LIM_H 1
27
28
29 /* These are the standard-mandated minimum values. */
30
31 /* Minimum number of operations in one list I/O call. */
32 #define _POSIX_AIO_LISTIO_MAX 2
33
34 /* Minimal number of outstanding asynchronous I/O operations. */
35 #define _POSIX_AIO_MAX 1
36
37 /* Maximum length of arguments to `execve', including environment. */
38 #define _POSIX_ARG_MAX 4096
39
40 /* Maximum simultaneous processes per real user ID. */
41 #define _POSIX_CHILD_MAX 25
42
43 /* Minimal number of timer expiration overruns. */
44 #define _POSIX_DELAYTIMER_MAX 32
45
46 /* Maximum length of a host name (not including the terminating null)
47 as returned from the GETHOSTNAME function. */
48 #define _POSIX_HOST_NAME_MAX 255
49
50 /* Maximum link count of a file. */
51 #define _POSIX_LINK_MAX 8
52
53 /* Maximum length of login name. */
54 #define _POSIX_LOGIN_NAME_MAX 9
55
56 /* Number of bytes in a terminal canonical input queue. */
57 #define _POSIX_MAX_CANON 255
58
59 /* Number of bytes for which space will be
60 available in a terminal input queue. */
61 #define _POSIX_MAX_INPUT 255
62
63 /* Maximum number of message queues open for a process. */
64 #define _POSIX_MQ_OPEN_MAX 8
65
66 /* Maximum number of supported message priorities. */
67 #define _POSIX_MQ_PRIO_MAX 32
68
69 /* Number of bytes in a filename. */
70 #define _POSIX_NAME_MAX 14
71
72 /* Number of simultaneous supplementary group IDs per process. */
73 #ifdef __USE_XOPEN2K
74 # define _POSIX_NGROUPS_MAX 8
75 #else
76 # define _POSIX_NGROUPS_MAX 0
77 #endif
78
79 /* Number of files one process can have open at once. */
80 #define _POSIX_OPEN_MAX 20
81
82 /* Number of descriptors that a process may examine with `pselect' or
83 `select'. */
84 #define _POSIX_FD_SETSIZE _POSIX_OPEN_MAX
85
86 /* Number of bytes in a pathname. */
87 #define _POSIX_PATH_MAX 256
88
89 /* Number of bytes than can be written atomically to a pipe. */
90 #define _POSIX_PIPE_BUF 512
91
92 /* The number of repeated occurrences of a BRE permitted by the
93 REGEXEC and REGCOMP functions when using the interval notation. */
94 #define _POSIX_RE_DUP_MAX 255
95
96 /* Minimal number of realtime signals reserved for the application. */
97 #define _POSIX_RTSIG_MAX 8
98
99 /* Number of semaphores a process can have. */
100 #define _POSIX_SEM_NSEMS_MAX 256
101
102 /* Maximal value of a semaphore. */
103 #define _POSIX_SEM_VALUE_MAX 32767
104
105 /* Number of pending realtime signals. */
106 #define _POSIX_SIGQUEUE_MAX 32
107
108 /* Largest value of a `ssize_t'. */
109 #define _POSIX_SSIZE_MAX 32767
110
111 /* Number of streams a process can have open at once. */
112 #define _POSIX_STREAM_MAX 8
113
114 /* The number of bytes in a symbolic link. */
115 #define _POSIX_SYMLINK_MAX 255
116
117 /* The number of symbolic links that can be traversed in the
118 resolution of a pathname in the absence of a loop. */
119 #define _POSIX_SYMLOOP_MAX 8
120
121 /* Number of timer for a process. */
122 #define _POSIX_TIMER_MAX 32
123
124 /* Maximum number of characters in a tty name. */
125 #define _POSIX_TTY_NAME_MAX 9
126
127 /* Maximum length of a timezone name (element of `tzname'). */
128 #define _POSIX_TZNAME_MAX 6
129
130 /* Maximum number of connections that can be queued on a socket. */
131 #define _POSIX_QLIMIT 1
132
133 /* Maximum number of bytes that can be buffered on a socket for send
134 or receive. */
135 #define _POSIX_HIWAT _POSIX_PIPE_BUF
136
137 /* Maximum number of elements in an `iovec' array. */
138 #define _POSIX_UIO_MAXIOV 16
139
140 /* Maximum clock resolution in nanoseconds. */
141 #define _POSIX_CLOCKRES_MIN 20000000
142
143
144 /* Get the implementation-specific values for the above. */
145 #include <bits/local_lim.h>
146
147
148 #ifndef SSIZE_MAX
149 # define SSIZE_MAX LONG_MAX
150 #endif
151
152
153 /* This value is a guaranteed minimum maximum.
154 The current maximum can be got from `sysconf'. */
155
156 #ifndef NGROUPS_MAX
157 # define NGROUPS_MAX 8
158 #endif
159
160 #endif /* bits/posix1_lim.h */