1 module tango.sys.linux.consts.unistd;
2 /+ http://opengroup.org/onlinepubs/007908799/xsh/unistd.h.html +/
3 enum {
4     STDIN_FILENO = 0,
5     STDOUT_FILENO = 1,
6     STDERR_FILENO = 2,
7     F_OK = 0,
8     R_OK = 4,
9     W_OK = 2,
10     X_OK = 1,
11     F_ULOCK = 0,
12     F_LOCK = 1 ,
13     F_TLOCK = 2,
14     F_TEST = 3 ,
15 }
16 enum :long {
17     _POSIX_VERSION = 200112L ,
18     _POSIX2_VERSION = 200112L ,
19     _XOPEN_VERSION = 600 ,
20     _XOPEN_XCU_VERSION = 4,
21     _LFS64_LARGEFILE=1,
22     _LFS64_STDIO=1,
23 }
24     /* Values for the NAME argument to `pathconf' and `fpathconf'.  */
25     enum
26       {
27         _PC_LINK_MAX,
28         _PC_MAX_CANON,
29         _PC_MAX_INPUT,
30         _PC_NAME_MAX,
31         _PC_PATH_MAX,
32         _PC_PIPE_BUF,
33         _PC_CHOWN_RESTRICTED,
34         _PC_NO_TRUNC,
35         _PC_VDISABLE,
36         _PC_SYNC_IO,
37         _PC_ASYNC_IO,
38         _PC_PRIO_IO,
39         _PC_SOCK_MAXBUF,
40         _PC_FILESIZEBITS,
41         _PC_REC_INCR_XFER_SIZE,
42         _PC_REC_MAX_XFER_SIZE,
43         _PC_REC_MIN_XFER_SIZE,
44         _PC_REC_XFER_ALIGN,
45         _PC_ALLOC_SIZE_MIN,
46         _PC_SYMLINK_MAX,
47         _PC_2_SYMLINKS
48       }
49     /* Values for the argument to `sysconf'.  */
50     enum
51       {
52         _SC_ARG_MAX,
53         _SC_CHILD_MAX,
54         _SC_CLK_TCK,
55         _SC_NGROUPS_MAX,
56         _SC_OPEN_MAX,
57         _SC_STREAM_MAX,
58         _SC_TZNAME_MAX,
59         _SC_JOB_CONTROL,
60         _SC_SAVED_IDS,
61         _SC_REALTIME_SIGNALS,
62         _SC_PRIORITY_SCHEDULING,
63         _SC_TIMERS,
64         _SC_ASYNCHRONOUS_IO,
65         _SC_PRIORITIZED_IO,
66         _SC_SYNCHRONIZED_IO,
67         _SC_FSYNC,
68         _SC_MAPPED_FILES,
69         _SC_MEMLOCK,
70         _SC_MEMLOCK_RANGE,
71         _SC_MEMORY_PROTECTION,
72         _SC_MESSAGE_PASSING,
73         _SC_SEMAPHORES,
74         _SC_SHARED_MEMORY_OBJECTS,
75         _SC_AIO_LISTIO_MAX,
76         _SC_AIO_MAX,
77         _SC_AIO_PRIO_DELTA_MAX,
78         _SC_DELAYTIMER_MAX,
79         _SC_MQ_OPEN_MAX,
80         _SC_MQ_PRIO_MAX,
81         _SC_VERSION,
82         _SC_PAGESIZE,
83         _SC_RTSIG_MAX,
84         _SC_SEM_NSEMS_MAX,
85         _SC_SEM_VALUE_MAX,
86         _SC_SIGQUEUE_MAX,
87         _SC_TIMER_MAX,
88         /* Values for the argument to `sysconf'
89            corresponding to _POSIX2_* symbols.  */
90         _SC_BC_BASE_MAX,
91         _SC_BC_DIM_MAX,
92         _SC_BC_SCALE_MAX,
93         _SC_BC_STRING_MAX,
94         _SC_COLL_WEIGHTS_MAX,
95         _SC_EQUIV_CLASS_MAX,
96         _SC_EXPR_NEST_MAX,
97         _SC_LINE_MAX,
98         _SC_RE_DUP_MAX,
99         _SC_CHARCLASS_NAME_MAX,
100         _SC_2_VERSION,
101         _SC_2_C_BIND,
102         _SC_2_C_DEV,
103         _SC_2_FORT_DEV,
104         _SC_2_FORT_RUN,
105         _SC_2_SW_DEV,
106         _SC_2_LOCALEDEF,
107         _SC_PII,
108         _SC_PII_XTI,
109         _SC_PII_SOCKET,
110         _SC_PII_INTERNET,
111         _SC_PII_OSI,
112         _SC_POLL,
113         _SC_SELECT,
114         _SC_UIO_MAXIOV,
115         _SC_IOV_MAX = _SC_UIO_MAXIOV,
116         _SC_PII_INTERNET_STREAM,
117         _SC_PII_INTERNET_DGRAM,
118         _SC_PII_OSI_COTS,
119         _SC_PII_OSI_CLTS,
120         _SC_PII_OSI_M,
121         _SC_T_IOV_MAX,
122         /* Values according to POSIX 1003.1c (POSIX threads).  */
123         _SC_THREADS,
124         _SC_THREAD_SAFE_FUNCTIONS,
125         _SC_GETGR_R_SIZE_MAX,
126         _SC_GETPW_R_SIZE_MAX,
127         _SC_LOGIN_NAME_MAX,
128         _SC_TTY_NAME_MAX,
129         _SC_THREAD_DESTRUCTOR_ITERATIONS,
130         _SC_THREAD_KEYS_MAX,
131         _SC_THREAD_STACK_MIN,
132         _SC_THREAD_THREADS_MAX,
133         _SC_THREAD_ATTR_STACKADDR,
134         _SC_THREAD_ATTR_STACKSIZE,
135         _SC_THREAD_PRIORITY_SCHEDULING,
136         _SC_THREAD_PRIO_INHERIT,
137         _SC_THREAD_PRIO_PROTECT,
138         _SC_THREAD_PROCESS_SHARED,
139         _SC_NPROCESSORS_CONF,
140         _SC_NPROCESSORS_ONLN,
141         _SC_PHYS_PAGES,
142         _SC_AVPHYS_PAGES,
143         _SC_ATEXIT_MAX,
144         _SC_PASS_MAX,
145         _SC_XOPEN_VERSION,
146         _SC_XOPEN_XCU_VERSION,
147         _SC_XOPEN_UNIX,
148         _SC_XOPEN_CRYPT,
149         _SC_XOPEN_ENH_I18N,
150         _SC_XOPEN_SHM,
151         _SC_2_CHAR_TERM,
152         _SC_2_C_VERSION,
153         _SC_2_UPE,
154         _SC_XOPEN_XPG2,
155         _SC_XOPEN_XPG3,
156         _SC_XOPEN_XPG4,
157         _SC_CHAR_BIT,
158         _SC_CHAR_MAX,
159         _SC_CHAR_MIN,
160         _SC_INT_MAX,
161         _SC_INT_MIN,
162         _SC_LONG_BIT,
163         _SC_WORD_BIT,
164         _SC_MB_LEN_MAX,
165         _SC_NZERO,
166         _SC_SSIZE_MAX,
167         _SC_SCHAR_MAX,
168         _SC_SCHAR_MIN,
169         _SC_SHRT_MAX,
170         _SC_SHRT_MIN,
171         _SC_UCHAR_MAX,
172         _SC_UINT_MAX,
173         _SC_ULONG_MAX,
174         _SC_USHRT_MAX,
175         _SC_NL_ARGMAX,
176         _SC_NL_LANGMAX,
177         _SC_NL_MSGMAX,
178         _SC_NL_NMAX,
179         _SC_NL_SETMAX,
180         _SC_NL_TEXTMAX,
181         _SC_XBS5_ILP32_OFF32,
182         _SC_XBS5_ILP32_OFFBIG,
183         _SC_XBS5_LP64_OFF64,
184         _SC_XBS5_LPBIG_OFFBIG,
185         _SC_XOPEN_LEGACY,
186         _SC_XOPEN_REALTIME,
187         _SC_XOPEN_REALTIME_THREADS,
188         _SC_ADVISORY_INFO,
189         _SC_BARRIERS,
190         _SC_BASE,
191         _SC_C_LANG_SUPPORT,
192         _SC_C_LANG_SUPPORT_R,
193         _SC_CLOCK_SELECTION,
194         _SC_CPUTIME,
195         _SC_THREAD_CPUTIME,
196         _SC_DEVICE_IO,
197         _SC_DEVICE_SPECIFIC,
198         _SC_DEVICE_SPECIFIC_R,
199         _SC_FD_MGMT,
200         _SC_FIFO,
201         _SC_PIPE,
202         _SC_FILE_ATTRIBUTES,
203         _SC_FILE_LOCKING,
204         _SC_FILE_SYSTEM,
205         _SC_MONOTONIC_CLOCK,
206         _SC_MULTI_PROCESS,
207         _SC_SINGLE_PROCESS,
208         _SC_NETWORKING,
209         _SC_READER_WRITER_LOCKS,
210         _SC_SPIN_LOCKS,
211         _SC_REGEXP,
212         _SC_REGEX_VERSION,
213         _SC_SHELL,
214         _SC_SIGNALS,
215         _SC_SPAWN,
216         _SC_SPORADIC_SERVER,
217         _SC_THREAD_SPORADIC_SERVER,
218         _SC_SYSTEM_DATABASE,
219         _SC_SYSTEM_DATABASE_R,
220         _SC_TIMEOUTS,
221         _SC_TYPED_MEMORY_OBJECTS,
222         _SC_USER_GROUPS,
223         _SC_USER_GROUPS_R,
224         _SC_2_PBS,
225         _SC_2_PBS_ACCOUNTING,
226         _SC_2_PBS_LOCATE,
227         _SC_2_PBS_MESSAGE,
228         _SC_2_PBS_TRACK,
229         _SC_SYMLOOP_MAX,
230         _SC_STREAMS,
231         _SC_2_PBS_CHECKPOINT,
232         _SC_V6_ILP32_OFF32,
233         _SC_V6_ILP32_OFFBIG,
234         _SC_V6_LP64_OFF64,
235         _SC_V6_LPBIG_OFFBIG,
236         _SC_HOST_NAME_MAX,
237         _SC_TRACE,
238         _SC_TRACE_EVENT_FILTER,
239         _SC_TRACE_INHERIT,
240         _SC_TRACE_LOG,
241         _SC_LEVEL1_ICACHE_SIZE,
242         _SC_LEVEL1_ICACHE_ASSOC,
243         _SC_LEVEL1_ICACHE_LINESIZE,
244         _SC_LEVEL1_DCACHE_SIZE,
245         _SC_LEVEL1_DCACHE_ASSOC,
246         _SC_LEVEL1_DCACHE_LINESIZE,
247         _SC_LEVEL2_CACHE_SIZE,
248         _SC_LEVEL2_CACHE_ASSOC,
249         _SC_LEVEL2_CACHE_LINESIZE,
250         _SC_LEVEL3_CACHE_SIZE,
251         _SC_LEVEL3_CACHE_ASSOC,
252         _SC_LEVEL3_CACHE_LINESIZE,
253         _SC_LEVEL4_CACHE_SIZE,
254         _SC_LEVEL4_CACHE_ASSOC,
255         _SC_LEVEL4_CACHE_LINESIZE,
256         /* Leave room here, maybe we need a few more cache levels some day.  */
257         _SC_IPV6 = _SC_LEVEL1_ICACHE_SIZE + 50,
258         _SC_RAW_SOCKETS
259       }
260     /* Values for the NAME argument to `confstr'.  */
261     enum
262       {
263         _CS_PATH, /* The default search path.  */
264         _CS_V6_WIDTH_RESTRICTED_ENVS,
265         _CS_GNU_LIBC_VERSION,
266         _CS_GNU_LIBPTHREAD_VERSION,
267         _CS_LFS_CFLAGS = 1000,
268         _CS_LFS_LDFLAGS,
269         _CS_LFS_LIBS,
270         _CS_LFS_LINTFLAGS,
271         _CS_LFS64_CFLAGS,
272         _CS_LFS64_LDFLAGS,
273         _CS_LFS64_LIBS,
274         _CS_LFS64_LINTFLAGS,
275         _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
276         _CS_XBS5_ILP32_OFF32_LDFLAGS,
277         _CS_XBS5_ILP32_OFF32_LIBS,
278         _CS_XBS5_ILP32_OFF32_LINTFLAGS,
279         _CS_XBS5_ILP32_OFFBIG_CFLAGS,
280         _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
281         _CS_XBS5_ILP32_OFFBIG_LIBS,
282         _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
283         _CS_XBS5_LP64_OFF64_CFLAGS,
284         _CS_XBS5_LP64_OFF64_LDFLAGS,
285         _CS_XBS5_LP64_OFF64_LIBS,
286         _CS_XBS5_LP64_OFF64_LINTFLAGS,
287         _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
288         _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
289         _CS_XBS5_LPBIG_OFFBIG_LIBS,
290         _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
291         _CS_POSIX_V6_ILP32_OFF32_CFLAGS,
292         _CS_POSIX_V6_ILP32_OFF32_LDFLAGS,
293         _CS_POSIX_V6_ILP32_OFF32_LIBS,
294         _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS,
295         _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS,
296         _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS,
297         _CS_POSIX_V6_ILP32_OFFBIG_LIBS,
298         _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS,
299         _CS_POSIX_V6_LP64_OFF64_CFLAGS,
300         _CS_POSIX_V6_LP64_OFF64_LDFLAGS,
301         _CS_POSIX_V6_LP64_OFF64_LIBS,
302         _CS_POSIX_V6_LP64_OFF64_LINTFLAGS,
303         _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS,
304         _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS,
305         _CS_POSIX_V6_LPBIG_OFFBIG_LIBS,
306         _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS
307       }