1998-12-16 Roland McGrath <roland@baalperazim.frob.com>
[glibc.git] / bits / confname.h
blob229088d67d5bd11d01359af310a52bb96a0f7bbb
1 /* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
2 Copyright (C) 1993, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public License as
7 published by the Free Software Foundation; either version 2 of the
8 License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public
16 License along with the GNU C Library; see the file COPYING.LIB. If not,
17 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
20 #ifndef _UNISTD_H
21 # error "Never use <bits/confname.h> directly; include <unistd.h> instead."
22 #endif
24 /* Values for the NAME argument to `pathconf' and `fpathconf'. */
25 enum
27 _PC_LINK_MAX,
28 #define _PC_LINK_MAX _PC_LINK_MAX
29 _PC_MAX_CANON,
30 #define _PC_MAX_CANON _PC_MAX_CANON
31 _PC_MAX_INPUT,
32 #define _PC_MAX_INPUT _PC_MAX_INPUT
33 _PC_NAME_MAX,
34 #define _PC_NAME_MAX _PC_NAME_MAX
35 _PC_PATH_MAX,
36 #define _PC_PATH_MAX _PC_PATH_MAX
37 _PC_PIPE_BUF,
38 #define _PC_PIPE_BUF _PC_PIPE_BUF
39 _PC_CHOWN_RESTRICTED,
40 #define _PC_CHOWN_RESTRICTED _PC_CHOWN_RESTRICTED
41 _PC_NO_TRUNC,
42 #define _PC_NO_TRUNC _PC_NO_TRUNC
43 _PC_VDISABLE,
44 #define _PC_VDISABLE _PC_VDISABLE
45 _PC_SYNC_IO,
46 #define _PC_SYNC_IO _PC_SYNC_IO
47 _PC_ASYNC_IO,
48 #define _PC_ASYNC_IO _PC_ASYNC_IO
49 _PC_PRIO_IO,
50 #define _PC_PRIO_IO _PC_PRIO_IO
51 _PC_SOCK_MAXBUF,
52 #define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
53 _PC_FILESIZEBITS
54 #define _PC_FILESIZEBITS _PC_FILESIZEBITS
57 /* Values for the argument to `sysconf'. */
58 enum
60 _SC_ARG_MAX,
61 #define _SC_ARG_MAX _SC_ARG_MAX
62 _SC_CHILD_MAX,
63 #define _SC_CHILD_MAX _SC_CHILD_MAX
64 _SC_CLK_TCK,
65 #define _SC_CLK_TCK _SC_CLK_TCK
66 _SC_NGROUPS_MAX,
67 #define _SC_NGROUPS_MAX _SC_NGROUPS_MAX
68 _SC_OPEN_MAX,
69 #define _SC_OPEN_MAX _SC_OPEN_MAX
70 _SC_STREAM_MAX,
71 #define _SC_STREAM_MAX _SC_STREAM_MAX
72 _SC_TZNAME_MAX,
73 #define _SC_TZNAME_MAX _SC_TZNAME_MAX
74 _SC_JOB_CONTROL,
75 #define _SC_JOB_CONTROL _SC_JOB_CONTROL
76 _SC_SAVED_IDS,
77 #define _SC_SAVED_IDS _SC_SAVED_IDS
78 _SC_REALTIME_SIGNALS,
79 #define _SC_REALTIME_SIGNALS _SC_REALTIME_SIGNALS
80 _SC_PRIORITY_SCHEDULING,
81 #define _SC_PRIORITY_SCHEDULING _SC_PRIORITY_SCHEDULING
82 _SC_TIMERS,
83 #define _SC_TIMERS _SC_TIMERS
84 _SC_ASYNCHRONOUS_IO,
85 #define _SC_ASYNCHRONOUS_IO _SC_ASYNCHRONOUS_IO
86 _SC_PRIORITIZED_IO,
87 #define _SC_PRIORITIZED_IO _SC_PRIORITIZED_IO
88 _SC_SYNCHRONIZED_IO,
89 #define _SC_SYNCHRONIZED_IO _SC_SYNCHRONIZED_IO
90 _SC_FSYNC,
91 #define _SC_FSYNC _SC_FSYNC
92 _SC_MAPPED_FILES,
93 #define _SC_MAPPED_FILES _SC_MAPPED_FILES
94 _SC_MEMLOCK,
95 #define _SC_MEMLOCK _SC_MEMLOCK
96 _SC_MEMLOCK_RANGE,
97 #define _SC_MEMLOCK_RANGE _SC_MEMLOCK_RANGE
98 _SC_MEMORY_PROTECTION,
99 #define _SC_MEMORY_PROTECTION _SC_MEMORY_PROTECTION
100 _SC_MESSAGE_PASSING,
101 #define _SC_MESSAGE_PASSING _SC_MESSAGE_PASSING
102 _SC_SEMAPHORES,
103 #define _SC_SEMAPHORES _SC_SEMAPHORES
104 _SC_SHARED_MEMORY_OBJECTS,
105 #define _SC_SHARED_MEMORY_OBJECTS _SC_SHARED_MEMORY_OBJECTS
106 _SC_AIO_LISTIO_MAX,
107 #define _SC_AIO_LISTIO_MAX _SC_AIO_LISTIO_MAX
108 _SC_AIO_MAX,
109 #define _SC_AIO_MAX _SC_AIO_MAX
110 _SC_AIO_PRIO_DELTA_MAX,
111 #define _SC_AIO_PRIO_DELTA_MAX _SC_AIO_PRIO_DELTA_MAX
112 _SC_DELAYTIMER_MAX,
113 #define _SC_DELAYTIMER_MAX _SC_DELAYTIMER_MAX
114 _SC_MQ_OPEN_MAX,
115 #define _SC_MQ_OPEN_MAX _SC_MQ_OPEN_MAX
116 _SC_MQ_PRIO_MAX,
117 #define _SC_MQ_PRIO_MAX _SC_MQ_PRIO_MAX
118 _SC_VERSION,
119 #define _SC_VERSION _SC_VERSION
120 _SC_PAGESIZE,
121 #define _SC_PAGESIZE _SC_PAGESIZE
122 #define _SC_PAGE_SIZE _SC_PAGESIZE
123 _SC_RTSIG_MAX,
124 #define _SC_RTSIG_MAX _SC_RTSIG_MAX
125 _SC_SEM_NSEMS_MAX,
126 #define _SC_SEM_NSEMS_MAX _SC_SEM_NSEMS_MAX
127 _SC_SEM_VALUE_MAX,
128 #define _SC_SEM_VALUE_MAX _SC_SEM_VALUE_MAX
129 _SC_SIGQUEUE_MAX,
130 #define _SC_SIGQUEUE_MAX _SC_SIGQUEUE_MAX
131 _SC_TIMER_MAX,
132 #define _SC_TIMER_MAX _SC_TIMER_MAX
134 /* Values for the argument to `sysconf'
135 corresponding to _POSIX2_* symbols. */
136 _SC_BC_BASE_MAX,
137 #define _SC_BC_BASE_MAX _SC_BC_BASE_MAX
138 _SC_BC_DIM_MAX,
139 #define _SC_BC_DIM_MAX _SC_BC_DIM_MAX
140 _SC_BC_SCALE_MAX,
141 #define _SC_BC_SCALE_MAX _SC_BC_SCALE_MAX
142 _SC_BC_STRING_MAX,
143 #define _SC_BC_STRING_MAX _SC_BC_STRING_MAX
144 _SC_COLL_WEIGHTS_MAX,
145 #define _SC_COLL_WEIGHTS_MAX _SC_COLL_WEIGHTS_MAX
146 _SC_EQUIV_CLASS_MAX,
147 #define _SC_EQUIV_CLASS_MAX _SC_EQUIV_CLASS_MAX
148 _SC_EXPR_NEST_MAX,
149 #define _SC_EXPR_NEST_MAX _SC_EXPR_NEST_MAX
150 _SC_LINE_MAX,
151 #define _SC_LINE_MAX _SC_LINE_MAX
152 _SC_RE_DUP_MAX,
153 #define _SC_RE_DUP_MAX _SC_RE_DUP_MAX
154 _SC_CHARCLASS_NAME_MAX,
155 #define _SC_CHARCLASS_NAME_MAX _SC_CHARCLASS_NAME_MAX
157 _SC_2_VERSION,
158 #define _SC_2_VERSION _SC_2_VERSION
159 _SC_2_C_BIND,
160 #define _SC_2_C_BIND _SC_2_C_BIND
161 _SC_2_C_DEV,
162 #define _SC_2_C_DEV _SC_2_C_DEV
163 _SC_2_FORT_DEV,
164 #define _SC_2_FORT_DEV _SC_2_FORT_DEV
165 _SC_2_FORT_RUN,
166 #define _SC_2_FORT_RUN _SC_2_FORT_RUN
167 _SC_2_SW_DEV,
168 #define _SC_2_SW_DEV _SC_2_SW_DEV
169 _SC_2_LOCALEDEF,
170 #define _SC_2_LOCALEDEF _SC_2_LOCALEDEF
172 _SC_PII,
173 #define _SC_PII _SC_PII
174 _SC_PII_XTI,
175 #define _SC_PII_XTI _SC_PII_XTI
176 _SC_PII_SOCKET,
177 #define _SC_PII_SOCKET _SC_PII_SOCKET
178 _SC_PII_INTERNET,
179 #define _SC_PII_INTERNET _SC_PII_INTERNET
180 _SC_PII_OSI,
181 #define _SC_PII_OSI _SC_PII_OSI
182 _SC_POLL,
183 #define _SC_POLL _SC_POLL
184 _SC_SELECT,
185 #define _SC_SELECT _SC_SELECT
186 _SC_UIO_MAXIOV,
187 #define _SC_UIO_MAXIOV _SC_UIO_MAXIOV
188 _SC_PII_INTERNET_STREAM,
189 #define _SC_PII_INTERNET_STREAM _SC_PII_INTERNET_STREAM
190 _SC_PII_INTERNET_DGRAM,
191 #define _SC_PII_INTERNET_DGRAM _SC_PII_INTERNET_DGRAM
192 _SC_PII_OSI_COTS,
193 #define _SC_PII_OSI_COTS _SC_PII_OSI_COTS
194 _SC_PII_OSI_CLTS,
195 #define _SC_PII_OSI_CLTS _SC_PII_OSI_CLTS
196 _SC_PII_OSI_M,
197 #define _SC_PII_OSI_M _SC_PII_OSI_M
198 _SC_T_IOV_MAX,
199 #define _SC_T_IOV_MAX _SC_T_IOV_MAX
201 /* Values according to POSIX 1003.1c (POSIX threads). */
202 _SC_THREADS,
203 #define _SC_THREADS _SC_THREADS
204 _SC_THREAD_SAFE_FUNCTIONS,
205 #define _SC_THREAD_SAFE_FUNCTIONS _SC_THREAD_SAFE_FUNCTIONS
206 _SC_GETGR_R_SIZE_MAX,
207 #define _SC_GETGR_R_SIZE_MAX _SC_GETGR_R_SIZE_MAX
208 _SC_GETPW_R_SIZE_MAX,
209 #define _SC_GETPW_R_SIZE_MAX _SC_GETPW_R_SIZE_MAX
210 _SC_LOGIN_NAME_MAX,
211 #define _SC_LOGIN_NAME_MAX _SC_LOGIN_NAME_MAX
212 _SC_TTY_NAME_MAX,
213 #define _SC_TTY_NAME_MAX _SC_TTY_NAME_MAX
214 _SC_THREAD_DESTRUCTOR_ITERATIONS,
215 #define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS
216 _SC_THREAD_KEYS_MAX,
217 #define _SC_THREAD_KEYS_MAX _SC_THREAD_KEYS_MAX
218 _SC_THREAD_STACK_MIN,
219 #define _SC_THREAD_STACK_MIN _SC_THREAD_STACK_MIN
220 _SC_THREAD_THREADS_MAX,
221 #define _SC_THREAD_THREADS_MAX _SC_THREAD_THREADS_MAX
222 _SC_THREAD_ATTR_STACKADDR,
223 #define _SC_THREAD_ATTR_STACKADDR _SC_THREAD_ATTR_STACKADDR
224 _SC_THREAD_ATTR_STACKSIZE,
225 #define _SC_THREAD_ATTR_STACKSIZE _SC_THREAD_ATTR_STACKSIZE
226 _SC_THREAD_PRIORITY_SCHEDULING,
227 #define _SC_THREAD_PRIORITY_SCHEDULING _SC_THREAD_PRIORITY_SCHEDULING
228 _SC_THREAD_PRIO_INHERIT,
229 #define _SC_THREAD_PRIO_INHERIT _SC_THREAD_PRIO_INHERIT
230 _SC_THREAD_PRIO_PROTECT,
231 #define _SC_THREAD_PRIO_PROTECT _SC_THREAD_PRIO_PROTECT
232 _SC_THREAD_PROCESS_SHARED,
233 #define _SC_THREAD_PROCESS_SHARED _SC_THREAD_PROCESS_SHARED
235 _SC_NPROCESSORS_CONF,
236 #define _SC_NPROCESSORS_CONF _SC_NPROCESSORS_CONF
237 _SC_NPROCESSORS_ONLN,
238 #define _SC_NPROCESSORS_ONLN _SC_NPROCESSORS_ONLN
239 _SC_PHYS_PAGES,
240 #define _SC_PHYS_PAGES _SC_PHYS_PAGES
241 _SC_AVPHYS_PAGES,
242 #define _SC_AVPHYS_PAGES _SC_AVPHYS_PAGES
243 _SC_ATEXIT_MAX,
244 #define _SC_ATEXIT_MAX _SC_ATEXIT_MAX
245 _SC_PASS_MAX,
246 #define _SC_PASS_MAX _SC_PASS_MAX
248 _SC_XOPEN_VERSION,
249 #define _SC_XOPEN_VERSION _SC_XOPEN_VERSION
250 _SC_XOPEN_XCU_VERSION,
251 #define _SC_XOPEN_XCU_VERSION _SC_XOPEN_XCU_VERSION
252 _SC_XOPEN_UNIX,
253 #define _SC_XOPEN_UNIX _SC_XOPEN_UNIX
254 _SC_XOPEN_CRYPT,
255 #define _SC_XOPEN_CRYPT _SC_XOPEN_CRYPT
256 _SC_XOPEN_ENH_I18N,
257 #define _SC_XOPEN_ENH_I18N _SC_XOPEN_ENH_I18N
258 _SC_XOPEN_SHM,
259 #define _SC_XOPEN_SHM _SC_XOPEN_SHM
261 _SC_2_CHAR_TERM,
262 #define _SC_2_CHAR_TERM _SC_2_CHAR_TERM
263 _SC_2_C_VERSION,
264 #define _SC_2_C_VERSION _SC_2_C_VERSION
265 _SC_2_UPE,
266 #define _SC_2_UPE _SC_2_UPE
268 _SC_XOPEN_XPG2,
269 #define _SC_XOPEN_XPG2 _SC_XOPEN_XPG2
270 _SC_XOPEN_XPG3,
271 #define _SC_XOPEN_XPG3 _SC_XOPEN_XPG3
272 _SC_XOPEN_XPG4,
273 #define _SC_XOPEN_XPG4 _SC_XOPEN_XPG4
275 _SC_CHAR_BIT,
276 #define _SC_CHAR_BIT _SC_CHAR_BIT
277 _SC_CHAR_MAX,
278 #define _SC_CHAR_MAX _SC_CHAR_MAX
279 _SC_CHAR_MIN,
280 #define _SC_CHAR_MIN _SC_CHAR_MIN
281 _SC_INT_MAX,
282 #define _SC_INT_MAX _SC_INT_MAX
283 _SC_INT_MIN,
284 #define _SC_INT_MIN _SC_INT_MIN
285 _SC_LONG_BIT,
286 #define _SC_LONG_BIT _SC_LONG_BIT
287 _SC_WORD_BIT,
288 #define _SC_WORD_BIT _SC_WORD_BIT
289 _SC_MB_LEN_MAX,
290 #define _SC_MB_LEN_MAX _SC_MB_LEN_MAX
291 _SC_NZERO,
292 #define _SC_NZERO _SC_NZERO
293 _SC_SSIZE_MAX,
294 #define _SC_SSIZE_MAX _SC_SSIZE_MAX
295 _SC_SCHAR_MAX,
296 #define _SC_SCHAR_MAX _SC_SCHAR_MAX
297 _SC_SCHAR_MIN,
298 #define _SC_SCHAR_MIN _SC_SCHAR_MIN
299 _SC_SHRT_MAX,
300 #define _SC_SHRT_MAX _SC_SHRT_MAX
301 _SC_SHRT_MIN,
302 #define _SC_SHRT_MIN _SC_SHRT_MIN
303 _SC_UCHAR_MAX,
304 #define _SC_UCHAR_MAX _SC_UCHAR_MAX
305 _SC_UINT_MAX,
306 #define _SC_UINT_MAX _SC_UINT_MAX
307 _SC_ULONG_MAX,
308 #define _SC_ULONG_MAX _SC_ULONG_MAX
309 _SC_USHRT_MAX,
310 #define _SC_USHRT_MAX _SC_USHRT_MAX
312 _SC_NL_ARGMAX,
313 #define _SC_NL_ARGMAX _SC_NL_ARGMAX
314 _SC_NL_LANGMAX,
315 #define _SC_NL_LANGMAX _SC_NL_LANGMAX
316 _SC_NL_MSGMAX,
317 #define _SC_NL_MSGMAX _SC_NL_MSGMAX
318 _SC_NL_NMAX,
319 #define _SC_NL_NMAX _SC_NL_NMAX
320 _SC_NL_SETMAX,
321 #define _SC_NL_SETMAX _SC_NL_SETMAX
322 _SC_NL_TEXTMAX,
323 #define _SC_NL_TEXTMAX _SC_NL_TEXTMAX
325 _SC_XBS5_ILP32_OFF32,
326 #define _SC_XBS5_ILP32_OFF32 _SC_XBS5_ILP32_OFF32
327 _SC_XBS5_ILP32_OFFBIG,
328 #define _SC_XBS5_ILP32_OFFBIG _SC_XBS5_ILP32_OFFBIG
329 _SC_XBS5_LP64_OFF64,
330 #define _SC_XBS5_LP64_OFF64 _SC_XBS5_LP64_OFF64
331 _SC_XBS5_LPBIG_OFFBIG,
332 #define _SC_XBS5_LPBIG_OFFBIG _SC_XBS5_LPBIG_OFFBIG
334 _SC_XOPEN_LEGACY,
335 #define _SC_XOPEN_LEGACY _SC_XOPEN_LEGACY
336 _SC_XOPEN_REALTIME,
337 #define _SC_XOPEN_REALTIME _SC_XOPEN_REALTIME
338 _SC_XOPEN_REALTIME_THREADS
339 #define _SC_XOPEN_REALTIME_THREADS _SC_XOPEN_REALTIME_THREADS
342 #if (defined __USE_POSIX2 || defined __USE_UNIX98 \
343 || defined __USE_FILE_OFFSET64 || defined __USE_LARGEFILE64 \
344 || defined __USE_LARGEFILE)
345 /* Values for the NAME argument to `confstr'. */
346 enum
348 _CS_PATH /* The default search path. */
349 #define _CS_PATH _CS_PATH
351 #if (defined __USE_FILE_OFFSET64 || defined __USE_LARGEFILE64 \
352 || defined __USE_LARGEFILE)
354 _CS_LFS_CFLAGS = 1000,
355 # define _CS_LFS_CFLAGS _CS_LFS_CFLAGS
356 _CS_LFS_LDFLAGS,
357 # define _CS_LFS_LDFLAGS _CS_LFS_LDFLAGS
358 _CS_LFS_LIBS,
359 # define _CS_LFS_LIBS _CS_LFS_LIBS
360 _CS_LFS_LINTFLAGS,
361 # define _CS_LFS_LINTFLAGS _CS_LFS_LINTFLAGS
362 _CS_LFS64_CFLAGS,
363 # define _CS_LFS64_CFLAGS _CS_LFS64_CFLAGS
364 _CS_LFS64_LDFLAGS,
365 # define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS
366 _CS_LFS64_LIBS,
367 # define _CS_LFS64_LIBS _CS_LFS64_LIBS
368 _CS_LFS64_LINTFLAGS
369 # define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS
370 #endif
372 #ifdef __USE_UNIX98
374 _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
375 # define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS
376 _CS_XBS5_ILP32_OFF32_LDFLAGS,
377 # define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS
378 _CS_XBS5_ILP32_OFF32_LIBS,
379 # define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS
380 _CS_XBS5_ILP32_OFF32_LINTFLAGS,
381 # define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS
382 _CS_XBS5_ILP32_OFFBIG_CFLAGS,
383 # define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS
384 _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
385 # define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS
386 _CS_XBS5_ILP32_OFFBIG_LIBS,
387 # define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS
388 _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
389 # define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
390 _CS_XBS5_LP64_OFF64_CFLAGS,
391 # define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS
392 _CS_XBS5_LP64_OFF64_LDFLAGS,
393 # define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS
394 _CS_XBS5_LP64_OFF64_LIBS,
395 # define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS
396 _CS_XBS5_LP64_OFF64_LINTFLAGS,
397 # define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS
398 _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
399 # define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS
400 _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
401 # define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
402 _CS_XBS5_LPBIG_OFFBIG_LIBS,
403 # define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS
404 _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
405 # define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
406 #endif
408 #endif