Update.
[platform/upstream/linaro-glibc.git] / bits / confname.h
1 /* `sysconf', `pathconf', and `confstr' NAME values.  Generic version.
2    Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4
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.
9
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.
14
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.  */
19
20 #ifndef _UNISTD_H
21 # error "Never use <bits/confname.h> directly; include <unistd.h> instead."
22 #endif
23
24 /* Values for the NAME argument to `pathconf' and `fpathconf'.  */
25 enum
26   {
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     _PC_SYNC_IO,
45 #define _PC_SYNC_IO                     _PC_SYNC_IO
46     _PC_ASYNC_IO,
47 #define _PC_ASYNC_IO                    _PC_ASYNC_IO
48     _PC_PRIO_IO,
49 #define _PC_PRIO_IO                     _PC_PRIO_IO
50     _PC_SOCK_MAXBUF
51 #define _PC_SOCK_MAXBUF                 _PC_SOCK_MAXBUF
52   };
53
54 /* Values for the argument to `sysconf'.  */
55 enum
56   {
57     _SC_ARG_MAX,
58 #define _SC_ARG_MAX                     _SC_ARG_MAX
59     _SC_CHILD_MAX,
60 #define _SC_CHILD_MAX                   _SC_CHILD_MAX
61     _SC_CLK_TCK,
62 #define _SC_CLK_TCK                     _SC_CLK_TCK
63     _SC_NGROUPS_MAX,
64 #define _SC_NGROUPS_MAX                 _SC_NGROUPS_MAX
65     _SC_OPEN_MAX,
66 #define _SC_OPEN_MAX                    _SC_OPEN_MAX
67     _SC_STREAM_MAX,
68 #define _SC_STREAM_MAX                  _SC_STREAM_MAX
69     _SC_TZNAME_MAX,
70 #define _SC_TZNAME_MAX                  _SC_TZNAME_MAX
71     _SC_JOB_CONTROL,
72 #define _SC_JOB_CONTROL                 _SC_JOB_CONTROL
73     _SC_SAVED_IDS,
74 #define _SC_SAVED_IDS                   _SC_SAVED_IDS
75     _SC_REALTIME_SIGNALS,
76 #define _SC_REALTIME_SIGNALS            _SC_REALTIME_SIGNALS
77     _SC_PRIORITY_SCHEDULING,
78 #define _SC_PRIORITY_SCHEDULING         _SC_PRIORITY_SCHEDULING
79     _SC_TIMERS,
80 #define _SC_TIMERS                      _SC_TIMERS
81     _SC_ASYNCHRONOUS_IO,
82 #define _SC_ASYNCHRONOUS_IO             _SC_ASYNCHRONOUS_IO
83     _SC_PRIORITIZED_IO,
84 #define _SC_PRIORITIZED_IO              _SC_PRIORITIZED_IO
85     _SC_SYNCHRONIZED_IO,
86 #define _SC_SYNCHRONIZED_IO             _SC_SYNCHRONIZED_IO
87     _SC_FSYNC,
88 #define _SC_FSYNC                       _SC_FSYNC
89     _SC_MAPPED_FILES,
90 #define _SC_MAPPED_FILES                _SC_MAPPED_FILES
91     _SC_MEMLOCK,
92 #define _SC_MEMLOCK                     _SC_MEMLOCK
93     _SC_MEMLOCK_RANGE,
94 #define _SC_MEMLOCK_RANGE               _SC_MEMLOCK_RANGE
95     _SC_MEMORY_PROTECTION,
96 #define _SC_MEMORY_PROTECTION           _SC_MEMORY_PROTECTION
97     _SC_MESSAGE_PASSING,
98 #define _SC_MESSAGE_PASSING             _SC_MESSAGE_PASSING
99     _SC_SEMAPHORES,
100 #define _SC_SEMAPHORES                  _SC_SEMAPHORES
101     _SC_SHARED_MEMORY_OBJECTS,
102 #define _SC_SHARED_MEMORY_OBJECTS       _SC_SHARED_MEMORY_OBJECTS
103     _SC_AIO_LISTIO_MAX,
104 #define _SC_AIO_LISTIO_MAX              _SC_AIO_LISTIO_MAX
105     _SC_AIO_MAX,
106 #define _SC_AIO_MAX                     _SC_AIO_MAX
107     _SC_AIO_PRIO_DELTA_MAX,
108 #define _SC_AIO_PRIO_DELTA_MAX          _SC_AIO_PRIO_DELTA_MAX
109     _SC_DELAYTIMER_MAX,
110 #define _SC_DELAYTIMER_MAX              _SC_DELAYTIMER_MAX
111     _SC_MQ_OPEN_MAX,
112 #define _SC_MQ_OPEN_MAX                 _SC_MQ_OPEN_MAX
113     _SC_MQ_PRIO_MAX,
114 #define _SC_MQ_PRIO_MAX                 _SC_MQ_PRIO_MAX
115     _SC_VERSION,
116 #define _SC_VERSION                     _SC_VERSION
117     _SC_PAGESIZE,
118 #define _SC_PAGESIZE                    _SC_PAGESIZE
119 #define _SC_PAGE_SIZE                   _SC_PAGESIZE
120     _SC_RTSIG_MAX,
121 #define _SC_RTSIG_MAX                   _SC_RTSIG_MAX
122     _SC_SEM_NSEMS_MAX,
123 #define _SC_SEM_NSEMS_MAX               _SC_SEM_NSEMS_MAX
124     _SC_SEM_VALUE_MAX,
125 #define _SC_SEM_VALUE_MAX               _SC_SEM_VALUE_MAX
126     _SC_SIGQUEUE_MAX,
127 #define _SC_SIGQUEUE_MAX                _SC_SIGQUEUE_MAX
128     _SC_TIMER_MAX,
129 #define _SC_TIMER_MAX                   _SC_TIMER_MAX
130
131     /* Values for the argument to `sysconf'
132        corresponding to _POSIX2_* symbols.  */
133     _SC_BC_BASE_MAX,
134 #define _SC_BC_BASE_MAX                 _SC_BC_BASE_MAX
135     _SC_BC_DIM_MAX,
136 #define _SC_BC_DIM_MAX                  _SC_BC_DIM_MAX
137     _SC_BC_SCALE_MAX,
138 #define _SC_BC_SCALE_MAX                _SC_BC_SCALE_MAX
139     _SC_BC_STRING_MAX,
140 #define _SC_BC_STRING_MAX               _SC_BC_STRING_MAX
141     _SC_COLL_WEIGHTS_MAX,
142 #define _SC_COLL_WEIGHTS_MAX            _SC_COLL_WEIGHTS_MAX
143     _SC_EQUIV_CLASS_MAX,
144 #define _SC_EQUIV_CLASS_MAX             _SC_EQUIV_CLASS_MAX
145     _SC_EXPR_NEST_MAX,
146 #define _SC_EXPR_NEST_MAX               _SC_EXPR_NEST_MAX
147     _SC_LINE_MAX,
148 #define _SC_LINE_MAX                    _SC_LINE_MAX
149     _SC_RE_DUP_MAX,
150 #define _SC_RE_DUP_MAX                  _SC_RE_DUP_MAX
151     _SC_CHARCLASS_NAME_MAX,
152 #define _SC_CHARCLASS_NAME_MAX          _SC_CHARCLASS_NAME_MAX
153
154     _SC_2_VERSION,
155 #define _SC_2_VERSION                   _SC_2_VERSION
156     _SC_2_C_BIND,
157 #define _SC_2_C_BIND                    _SC_2_C_BIND
158     _SC_2_C_DEV,
159 #define _SC_2_C_DEV                     _SC_2_C_DEV
160     _SC_2_FORT_DEV,
161 #define _SC_2_FORT_DEV                  _SC_2_FORT_DEV
162     _SC_2_FORT_RUN,
163 #define _SC_2_FORT_RUN                  _SC_2_FORT_RUN
164     _SC_2_SW_DEV,
165 #define _SC_2_SW_DEV                    _SC_2_SW_DEV
166     _SC_2_LOCALEDEF,
167 #define _SC_2_LOCALEDEF                 _SC_2_LOCALEDEF
168
169     _SC_PII,
170 #define _SC_PII                         _SC_PII
171     _SC_PII_XTI,
172 #define _SC_PII_XTI                     _SC_PII_XTI
173     _SC_PII_SOCKET,
174 #define _SC_PII_SOCKET                  _SC_PII_SOCKET
175     _SC_PII_INTERNET,
176 #define _SC_PII_INTERNET                _SC_PII_INTERNET
177     _SC_PII_OSI,
178 #define _SC_PII_OSI                     _SC_PII_OSI
179     _SC_POLL,
180 #define _SC_POLL                        _SC_POLL
181     _SC_SELECT,
182 #define _SC_SELECT                      _SC_SELECT
183     _SC_UIO_MAXIOV,
184 #define _SC_UIO_MAXIOV                  _SC_UIO_MAXIOV
185     _SC_PII_INTERNET_STREAM,
186 #define _SC_PII_INTERNET_STREAM         _SC_PII_INTERNET_STREAM
187     _SC_PII_INTERNET_DGRAM,
188 #define _SC_PII_INTERNET_DGRAM          _SC_PII_INTERNET_DGRAM
189     _SC_PII_OSI_COTS,
190 #define _SC_PII_OSI_COTS                _SC_PII_OSI_COTS
191     _SC_PII_OSI_CLTS,
192 #define _SC_PII_OSI_CLTS                _SC_PII_OSI_CLTS
193     _SC_PII_OSI_M,
194 #define _SC_PII_OSI_M                   _SC_PII_OSI_M
195     _SC_T_IOV_MAX,
196 #define _SC_T_IOV_MAX                   _SC_T_IOV_MAX
197
198     /* Values according to POSIX 1003.1c (POSIX threads).  */
199     _SC_THREADS,
200 #define _SC_THREADS                     _SC_THREADS
201     _SC_THREAD_SAFE_FUNCTIONS,
202 #define _SC_THREAD_SAFE_FUNCTIONS       _SC_THREAD_SAFE_FUNCTIONS
203     _SC_GETGR_R_SIZE_MAX,
204 #define _SC_GETGR_R_SIZE_MAX            _SC_GETGR_R_SIZE_MAX
205     _SC_GETPW_R_SIZE_MAX,
206 #define _SC_GETPW_R_SIZE_MAX            _SC_GETPW_R_SIZE_MAX
207     _SC_LOGIN_NAME_MAX,
208 #define _SC_LOGIN_NAME_MAX              _SC_LOGIN_NAME_MAX
209     _SC_TTY_NAME_MAX,
210 #define _SC_TTY_NAME_MAX                _SC_TTY_NAME_MAX
211     _SC_THREAD_DESTRUCTOR_ITERATIONS,
212 #define _SC_THREAD_DESTRUCTOR_ITERATIONS _SC_THREAD_DESTRUCTOR_ITERATIONS
213     _SC_THREAD_KEYS_MAX,
214 #define _SC_THREAD_KEYS_MAX             _SC_THREAD_KEYS_MAX
215     _SC_THREAD_STACK_MIN,
216 #define _SC_THREAD_STACK_MIN            _SC_THREAD_STACK_MIN
217     _SC_THREAD_THREADS_MAX,
218 #define _SC_THREAD_THREADS_MAX          _SC_THREAD_THREADS_MAX
219     _SC_THREAD_ATTR_STACKADDR,
220 #define _SC_THREAD_ATTR_STACKADDR       _SC_THREAD_ATTR_STACKADDR
221     _SC_THREAD_ATTR_STACKSIZE,
222 #define _SC_THREAD_ATTR_STACKSIZE       _SC_THREAD_ATTR_STACKSIZE
223     _SC_THREAD_PRIORITY_SCHEDULING,
224 #define _SC_THREAD_PRIORITY_SCHEDULING  _SC_THREAD_PRIORITY_SCHEDULING
225     _SC_THREAD_PRIO_INHERIT,
226 #define _SC_THREAD_PRIO_INHERIT         _SC_THREAD_PRIO_INHERIT
227     _SC_THREAD_PRIO_PROTECT,
228 #define _SC_THREAD_PRIO_PROTECT         _SC_THREAD_PRIO_PROTECT
229     _SC_THREAD_PROCESS_SHARED,
230 #define _SC_THREAD_PROCESS_SHARED       _SC_THREAD_PROCESS_SHARED
231
232     _SC_NPROCESSORS_CONF,
233 #define _SC_NPROCESSORS_CONF            _SC_NPROCESSORS_CONF
234     _SC_NPROCESSORS_ONLN,
235 #define _SC_NPROCESSORS_ONLN            _SC_NPROCESSORS_ONLN
236     _SC_PHYS_PAGES,
237 #define _SC_PHYS_PAGES                  _SC_PHYS_PAGES
238     _SC_AVPHYS_PAGES,
239 #define _SC_AVPHYS_PAGES                _SC_AVPHYS_PAGES
240     _SC_ATEXIT_MAX,
241 #define _SC_ATEXIT_MAX                  _SC_ATEXIT_MAX
242     _SC_PASS_MAX,
243 #define _SC_PASS_MAX                    _SC_PASS_MAX
244
245     _SC_XOPEN_VERSION,
246 #define _SC_XOPEN_VERSION               _SC_XOPEN_VERSION
247     _SC_XOPEN_XCU_VERSION,
248 #define _SC_XOPEN_XCU_VERSION           _SC_XOPEN_XCU_VERSION
249     _SC_XOPEN_UNIX,
250 #define _SC_XOPEN_UNIX                  _SC_XOPEN_UNIX
251     _SC_XOPEN_CRYPT,
252 #define _SC_XOPEN_CRYPT                 _SC_XOPEN_CRYPT
253     _SC_XOPEN_ENH_I18N,
254 #define _SC_XOPEN_ENH_I18N              _SC_XOPEN_ENH_I18N
255     _SC_XOPEN_SHM,
256 #define _SC_XOPEN_SHM                   _SC_XOPEN_SHM
257
258     _SC_2_CHAR_TERM,
259 #define _SC_2_CHAR_TERM                 _SC_2_CHAR_TERM
260     _SC_2_C_VERSION,
261 #define _SC_2_C_VERSION                 _SC_2_C_VERSION
262     _SC_2_UPE,
263 #define _SC_2_UPE                       _SC_2_UPE
264
265     _SC_XOPEN_XPG2,
266 #define _SC_XOPEN_XPG2                  _SC_XOPEN_XPG2
267     _SC_XOPEN_XPG3,
268 #define _SC_XOPEN_XPG3                  _SC_XOPEN_XPG3
269     _SC_XOPEN_XPG4,
270 #define _SC_XOPEN_XPG4                  _SC_XOPEN_XPG4
271
272     _SC_CHAR_BIT,
273 #define _SC_CHAR_BIT                    _SC_CHAR_BIT
274     _SC_CHAR_MAX,
275 #define _SC_CHAR_MAX                    _SC_CHAR_MAX
276     _SC_CHAR_MIN,
277 #define _SC_CHAR_MIN                    _SC_CHAR_MIN
278     _SC_INT_MAX,
279 #define _SC_INT_MAX                     _SC_INT_MAX
280     _SC_INT_MIN,
281 #define _SC_INT_MIN                     _SC_INT_MIN
282     _SC_LONG_BIT,
283 #define _SC_LONG_BIT                    _SC_LONG_BIT
284     _SC_WORD_BIT,
285 #define _SC_WORD_BIT                    _SC_WORD_BIT
286     _SC_MB_LEN_MAX,
287 #define _SC_MB_LEN_MAX                  _SC_MB_LEN_MAX
288     _SC_NZERO,
289 #define _SC_NZERO                       _SC_NZERO
290     _SC_SSIZE_MAX,
291 #define _SC_SSIZE_MAX                   _SC_SSIZE_MAX
292     _SC_SCHAR_MAX,
293 #define _SC_SCHAR_MAX                   _SC_SCHAR_MAX
294     _SC_SCHAR_MIN,
295 #define _SC_SCHAR_MIN                   _SC_SCHAR_MIN
296     _SC_SHRT_MAX,
297 #define _SC_SHRT_MAX                    _SC_SHRT_MAX
298     _SC_SHRT_MIN,
299 #define _SC_SHRT_MIN                    _SC_SHRT_MIN
300     _SC_UCHAR_MAX,
301 #define _SC_UCHAR_MAX                   _SC_UCHAR_MAX
302     _SC_UINT_MAX,
303 #define _SC_UINT_MAX                    _SC_UINT_MAX
304     _SC_ULONG_MAX,
305 #define _SC_ULONG_MAX                   _SC_ULONG_MAX
306     _SC_USHRT_MAX,
307 #define _SC_USHRT_MAX                   _SC_USHRT_MAX
308
309     _SC_NL_ARGMAX,
310 #define _SC_NL_ARGMAX                   _SC_NL_ARGMAX
311     _SC_NL_LANGMAX,
312 #define _SC_NL_LANGMAX                  _SC_NL_LANGMAX
313     _SC_NL_MSGMAX,
314 #define _SC_NL_MSGMAX                   _SC_NL_MSGMAX
315     _SC_NL_NMAX,
316 #define _SC_NL_NMAX                     _SC_NL_NMAX
317     _SC_NL_SETMAX,
318 #define _SC_NL_SETMAX                   _SC_NL_SETMAX
319     _SC_NL_TEXTMAX,
320 #define _SC_NL_TEXTMAX                  _SC_NL_TEXTMAX
321
322     _SC_XBS5_ILP32_OFF32,
323 #define _SC_XBS5_ILP32_OFF32            _SC_XBS5_ILP32_OFF32
324     _SC_XBS5_ILP32_OFFBIG,
325 #define _SC_XBS5_ILP32_OFFBIG           _SC_XBS5_ILP32_OFFBIG
326     _SC_XBS5_LP64_OFF64,
327 #define _SC_XBS5_LP64_OFF64             _SC_XBS5_LP64_OFF64
328     _SC_XBS5_LPBIG_OFFBIG
329 #define _SC_XBS5_LPBIG_OFFBIG           _SC_XBS5_LPBIG_OFFBIG
330   };
331
332 #if (defined __USE_POSIX2 || defined __USE_UNIX98 \
333      || defined __USE_FILE_OFFSET64 || defined __USE_LARGEFILE64 \
334      || defined __USE_LARGEFILE)
335 /* Values for the NAME argument to `confstr'.  */
336 enum
337   {
338     _CS_PATH                    /* The default search path.  */
339 #define _CS_PATH                _CS_PATH
340
341 #if (defined __USE_FILE_OFFSET64 || defined __USE_LARGEFILE64 \
342      || defined __USE_LARGEFILE)
343     ,
344     _CS_LFS_CFLAGS = 1000,
345 # define _CS_LFS_CFLAGS         _CS_LFS_CFLAGS
346     _CS_LFS_LDFLAGS,
347 # define _CS_LFS_LDFLAGS        _CS_LFS_LDFLAGS
348     _CS_LFS_LIBS,
349 # define _CS_LFS_LIBS           _CS_LFS_LIBS
350     _CS_LFS_LINTFLAGS,
351 # define _CS_LFS_LINTFLAGS      _CS_LFS_LINTFLAGS
352     _CS_LFS64_CFLAGS,
353 # define _CS_LFS64_CFLAGS       _CS_LFS64_CFLAGS
354     _CS_LFS64_LDFLAGS,
355 # define _CS_LFS64_LDFLAGS      _CS_LFS64_LDFLAGS
356     _CS_LFS64_LIBS,
357 # define _CS_LFS64_LIBS         _CS_LFS64_LIBS
358     _CS_LFS64_LINTFLAGS
359 # define _CS_LFS64_LINTFLAGS    _CS_LFS64_LINTFLAGS
360 #endif
361
362 #ifdef __USE_UNIX98
363     ,
364     _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
365 # define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS
366     _CS_XBS5_ILP32_OFF32_LDFLAGS,
367 # define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS
368     _CS_XBS5_ILP32_OFF32_LIBS,
369 # define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS
370     _CS_XBS5_ILP32_OFF32_LINTFLAGS,
371 # define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS
372     _CS_XBS5_ILP32_OFFBIG_CFLAGS,
373 # define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS
374     _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
375 # define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS
376     _CS_XBS5_ILP32_OFFBIG_LIBS,
377 # define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS
378     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
379 # define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
380     _CS_XBS5_LP64_OFF64_CFLAGS,
381 # define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS
382     _CS_XBS5_LP64_OFF64_LDFLAGS,
383 # define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS
384     _CS_XBS5_LP64_OFF64_LIBS,
385 # define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS
386     _CS_XBS5_LP64_OFF64_LINTFLAGS,
387 # define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS
388     _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
389 # define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS
390     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
391 # define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
392     _CS_XBS5_LPBIG_OFFBIG_LIBS,
393 # define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS
394     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
395 # define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
396 #endif
397   };
398 #endif