1 module tango.sys.darwin.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 = (1<<2),
9     W_OK = (1<<1),
10     X_OK = (1<<0),
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 }
22 enum {
23     // posix.1
24     _PC_LINK_MAX = 1,
25     _PC_MAX_CANON = 2,
26     _PC_MAX_INPUT = 3,
27     _PC_NAME_MAX = 4,
28     _PC_PATH_MAX = 5,
29     _PC_PIPE_BUF = 6,
30     _PC_CHOWN_RESTRICTED = 7,
31     _PC_NO_TRUNC = 8,
32     _PC_VDISABLE = 9,
33     _PC_SYNC_IO = 25,
34     _PC_ASYNC_IO = 17,
35     _PC_PRIO_IO = 19,
36     _PC_FILESIZEBITS = 18,
37     _PC_REC_INCR_XFER_SIZE = 20,
38     _PC_REC_MAX_XFER_SIZE = 21,
39     _PC_REC_MIN_XFER_SIZE = 22,
40     _PC_REC_XFER_ALIGN = 23,
41     _PC_ALLOC_SIZE_MIN = 16,
42     _PC_SYMLINK_MAX = 24,
43     _PC_2_SYMLINKS = 15,
44     // posix.2
45     _CS_PATH = 1,
46     _CS_XBS5_ILP32_OFF32_CFLAGS = 20,
47     _CS_XBS5_ILP32_OFF32_LDFLAGS = 21,
48     _CS_XBS5_ILP32_OFF32_LIBS = 22,
49     _CS_XBS5_ILP32_OFF32_LINTFLAGS = 23,
50     _CS_XBS5_ILP32_OFFBIG_CFLAGS = 24,
51     _CS_XBS5_ILP32_OFFBIG_LDFLAGS = 25,
52     _CS_XBS5_ILP32_OFFBIG_LIBS = 26,
53     _CS_XBS5_ILP32_OFFBIG_LINTFLAGS = 27,
54     _CS_XBS5_LP64_OFF64_CFLAGS = 28,
55     _CS_XBS5_LP64_OFF64_LDFLAGS = 29,
56     _CS_XBS5_LP64_OFF64_LIBS = 30,
57     _CS_XBS5_LP64_OFF64_LINTFLAGS = 31,
58     _CS_XBS5_LPBIG_OFFBIG_CFLAGS = 32,
59     _CS_XBS5_LPBIG_OFFBIG_LDFLAGS = 33,
60     _CS_XBS5_LPBIG_OFFBIG_LIBS = 34,
61     _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS = 35,
62     _CS_POSIX_V6_ILP32_OFF32_CFLAGS = 2,
63     _CS_POSIX_V6_ILP32_OFF32_LDFLAGS = 3,
64     _CS_POSIX_V6_ILP32_OFF32_LIBS = 4,
65     _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS = 5,
66     _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS = 6,
67     _CS_POSIX_V6_ILP32_OFFBIG_LIBS = 7,
68     _CS_POSIX_V6_LP64_OFF64_CFLAGS = 8,
69     _CS_POSIX_V6_LP64_OFF64_LDFLAGS = 9,
70     _CS_POSIX_V6_LP64_OFF64_LIBS = 10,
71     _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS = 11,
72     _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS = 12,
73     _CS_POSIX_V6_LPBIG_OFFBIG_LIBS = 13,
74     _SC_IOV_MAX = 56,
75     _SC_ARG_MAX = 1,
76     _SC_CHILD_MAX = 2,
77     _SC_CLK_TCK = 3,
78     _SC_NGROUPS_MAX = 4,
79     _SC_OPEN_MAX = 5,
80     _SC_STREAM_MAX = 26,
81     _SC_TZNAME_MAX = 27,
82     _SC_JOB_CONTROL = 6,
83     _SC_SAVED_IDS = 7,
84     _SC_REALTIME_SIGNALS = 36,
85     _SC_PRIORITY_SCHEDULING = 35,
86     _SC_TIMERS = 41,
87     _SC_ASYNCHRONOUS_IO = 28,
88     _SC_PRIORITIZED_IO = 34,
89     _SC_SYNCHRONIZED_IO = 40,
90     _SC_FSYNC = 38,
91     _SC_MAPPED_FILES = 47,
92     _SC_MEMLOCK = 30,
93     _SC_MEMLOCK_RANGE = 31,
94     _SC_MEMORY_PROTECTION = 32,
95     _SC_MESSAGE_PASSING = 33,
96     _SC_SEMAPHORES = 37,
97     _SC_SHARED_MEMORY_OBJECTS = 39,
98     _SC_AIO_LISTIO_MAX = 42,
99     _SC_AIO_MAX = 43,
100     _SC_AIO_PRIO_DELTA_MAX = 44,
101     _SC_DELAYTIMER_MAX = 45,
102     _SC_MQ_OPEN_MAX = 46,
103     _SC_MQ_PRIO_MAX = 75,
104     _SC_VERSION = 8,
105     _SC_PAGESIZE = 29,
106     _SC_PAGE_SIZE = 29,
107     _SC_RTSIG_MAX = 48,
108     _SC_SEM_NSEMS_MAX = 49,
109     _SC_SEM_VALUE_MAX = 50,
110     _SC_SIGQUEUE_MAX = 51,
111     _SC_TIMER_MAX = 52,
112     _SC_BC_BASE_MAX = 9,
113     _SC_BC_DIM_MAX = 10,
114     _SC_BC_SCALE_MAX = 11,
115     _SC_BC_STRING_MAX = 12,
116     _SC_COLL_WEIGHTS_MAX = 13,
117     _SC_EXPR_NEST_MAX = 14,
118     _SC_LINE_MAX = 15,
119     _SC_RE_DUP_MAX = 16,
120     _SC_2_VERSION = 17,
121     _SC_2_C_BIND = 18,
122     _SC_2_C_DEV = 19,
123     _SC_2_FORT_DEV = 21,
124     _SC_2_FORT_RUN = 22,
125     _SC_2_SW_DEV = 24,
126     _SC_2_LOCALEDEF = 23,
127     _SC_THREADS = 96,
128     _SC_THREAD_SAFE_FUNCTIONS = 91,
129     _SC_GETGR_R_SIZE_MAX = 70,
130     _SC_GETPW_R_SIZE_MAX = 71,
131     _SC_LOGIN_NAME_MAX = 73,
132     _SC_TTY_NAME_MAX = 101,
133     _SC_THREAD_DESTRUCTOR_ITERATIONS = 85,
134     _SC_THREAD_KEYS_MAX = 86,
135     _SC_THREAD_STACK_MIN = 93,
136     _SC_THREAD_THREADS_MAX = 94,
137     _SC_THREAD_ATTR_STACKADDR = 82,
138     _SC_THREAD_ATTR_STACKSIZE = 83,
139     _SC_THREAD_PRIORITY_SCHEDULING = 89,
140     _SC_THREAD_PRIO_INHERIT = 87,
141     _SC_THREAD_PRIO_PROTECT = 88,
142     _SC_THREAD_PROCESS_SHARED = 90,
143     _SC_NPROCESSORS_CONF = 57,
144     _SC_NPROCESSORS_ONLN = 58,
145     _SC_ATEXIT_MAX = 107,
146     _SC_PASS_MAX = 131,
147     _SC_XOPEN_VERSION = 116,
148     _SC_XOPEN_XCU_VERSION = 121,
149     _SC_XOPEN_UNIX = 115,
150     _SC_XOPEN_CRYPT = 108,
151     _SC_XOPEN_ENH_I18N = 109,
152     _SC_XOPEN_SHM = 113,
153     _SC_2_CHAR_TERM = 20,
154     _SC_2_UPE = 25,
155     _SC_XBS5_ILP32_OFF32 = 122,
156     _SC_XBS5_ILP32_OFFBIG = 123,
157     _SC_XBS5_LP64_OFF64 = 124,
158     _SC_XBS5_LPBIG_OFFBIG = 125,
159     _SC_XOPEN_LEGACY = 110,
160     _SC_XOPEN_REALTIME = 111,
161     _SC_XOPEN_REALTIME_THREADS = 112,
162     _SC_ADVISORY_INFO = 65,
163     _SC_BARRIERS = 66,
164     _SC_CLOCK_SELECTION = 67,
165     _SC_CPUTIME = 68,
166     _SC_THREAD_CPUTIME = 84,
167     _SC_FILE_LOCKING = 69,
168     _SC_MONOTONIC_CLOCK = 74,
169     _SC_READER_WRITER_LOCKS = 76,
170     _SC_SPIN_LOCKS = 80,
171     _SC_REGEXP = 77,
172     _SC_SHELL = 78,
173     _SC_SPAWN = 79,
174     _SC_SPORADIC_SERVER = 81,
175     _SC_THREAD_SPORADIC_SERVER = 92,
176     _SC_TIMEOUTS = 95,
177     _SC_TYPED_MEMORY_OBJECTS = 102,
178     _SC_2_PBS = 59,
179     _SC_2_PBS_ACCOUNTING = 60,
180     _SC_2_PBS_LOCATE = 62,
181     _SC_2_PBS_MESSAGE = 63,
182     _SC_2_PBS_TRACK = 64,
183     _SC_SYMLOOP_MAX = 120,
184     _SC_2_PBS_CHECKPOINT = 61,
185     _SC_V6_ILP32_OFF32 = 103,
186     _SC_V6_ILP32_OFFBIG = 104,
187     _SC_V6_LP64_OFF64 = 105,
188     _SC_V6_LPBIG_OFFBIG = 106,
189     _SC_HOST_NAME_MAX = 72,
190     _SC_TRACE = 97,
191     _SC_TRACE_EVENT_FILTER = 98,
192     _SC_TRACE_INHERIT = 99,
193     _SC_TRACE_LOG = 100,
194     _SC_IPV6 = 118,
195     _SC_RAW_SOCKETS = 119,
196 }