1 /* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 372ab42a8aebd30ac41f4219d87a5ef6e8b03b24 */
3
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_kill, 0, 2, _IS_BOOL, 0)
5 ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0)
6 ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0)
7 ZEND_END_ARG_INFO()
8
9 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_getpid, 0, 0, IS_LONG, 0)
10 ZEND_END_ARG_INFO()
11
12 #define arginfo_posix_getppid arginfo_posix_getpid
13
14 #define arginfo_posix_getuid arginfo_posix_getpid
15
16 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setuid, 0, 1, _IS_BOOL, 0)
17 ZEND_ARG_TYPE_INFO(0, user_id, IS_LONG, 0)
18 ZEND_END_ARG_INFO()
19
20 #define arginfo_posix_geteuid arginfo_posix_getpid
21
22 #if defined(HAVE_SETEUID)
23 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_seteuid, 0, 1, _IS_BOOL, 0)
24 ZEND_ARG_TYPE_INFO(0, user_id, IS_LONG, 0)
25 ZEND_END_ARG_INFO()
26 #endif
27
28 #define arginfo_posix_getgid arginfo_posix_getpid
29
30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setgid, 0, 1, _IS_BOOL, 0)
31 ZEND_ARG_TYPE_INFO(0, group_id, IS_LONG, 0)
32 ZEND_END_ARG_INFO()
33
34 #define arginfo_posix_getegid arginfo_posix_getpid
35
36 #if defined(HAVE_SETEGID)
37 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setegid, 0, 1, _IS_BOOL, 0)
38 ZEND_ARG_TYPE_INFO(0, group_id, IS_LONG, 0)
39 ZEND_END_ARG_INFO()
40 #endif
41
42 #if defined(HAVE_GETGROUPS)
43 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgroups, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
44 ZEND_END_ARG_INFO()
45 #endif
46
47 #if defined(HAVE_GETLOGIN)
48 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getlogin, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
49 ZEND_END_ARG_INFO()
50 #endif
51
52 #define arginfo_posix_getpgrp arginfo_posix_getpid
53
54 #if defined(HAVE_SETSID)
55 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setsid, 0, 0, IS_LONG, 0)
56 ZEND_END_ARG_INFO()
57 #endif
58
59 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setpgid, 0, 2, _IS_BOOL, 0)
60 ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0)
61 ZEND_ARG_TYPE_INFO(0, process_group_id, IS_LONG, 0)
62 ZEND_END_ARG_INFO()
63
64 #if defined(HAVE_GETPGID)
65 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpgid, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
66 ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0)
67 ZEND_END_ARG_INFO()
68 #endif
69
70 #if defined(HAVE_GETSID)
71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getsid, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
72 ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0)
73 ZEND_END_ARG_INFO()
74 #endif
75
76 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_uname, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
77 ZEND_END_ARG_INFO()
78
79 #define arginfo_posix_times arginfo_posix_uname
80
81 #if defined(HAVE_CTERMID)
82 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_ctermid, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
83 ZEND_END_ARG_INFO()
84 #endif
85
86 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_ttyname, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
87 ZEND_ARG_INFO(0, file_descriptor)
88 ZEND_END_ARG_INFO()
89
90 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_isatty, 0, 1, _IS_BOOL, 0)
91 ZEND_ARG_INFO(0, file_descriptor)
92 ZEND_END_ARG_INFO()
93
94 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getcwd, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
95 ZEND_END_ARG_INFO()
96
97 #if defined(HAVE_MKFIFO)
98 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_mkfifo, 0, 2, _IS_BOOL, 0)
99 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
100 ZEND_ARG_TYPE_INFO(0, permissions, IS_LONG, 0)
101 ZEND_END_ARG_INFO()
102 #endif
103
104 #if defined(HAVE_MKNOD)
105 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_mknod, 0, 2, _IS_BOOL, 0)
106 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
107 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0)
108 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, major, IS_LONG, 0, "0")
109 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, minor, IS_LONG, 0, "0")
110 ZEND_END_ARG_INFO()
111 #endif
112
113 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_access, 0, 1, _IS_BOOL, 0)
114 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
115 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
116 ZEND_END_ARG_INFO()
117
118 #if defined(HAVE_EACCESS)
119 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_eaccess, 0, 1, _IS_BOOL, 0)
120 ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
121 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
122 ZEND_END_ARG_INFO()
123 #endif
124
125 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgrnam, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
126 ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
127 ZEND_END_ARG_INFO()
128
129 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getgrgid, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
130 ZEND_ARG_TYPE_INFO(0, group_id, IS_LONG, 0)
131 ZEND_END_ARG_INFO()
132
133 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpwnam, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
134 ZEND_ARG_TYPE_INFO(0, username, IS_STRING, 0)
135 ZEND_END_ARG_INFO()
136
137 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getpwuid, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
138 ZEND_ARG_TYPE_INFO(0, user_id, IS_LONG, 0)
139 ZEND_END_ARG_INFO()
140
141 #if defined(HAVE_GETRLIMIT)
142 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_getrlimit, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
143 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, resource, IS_LONG, 1, "null")
144 ZEND_END_ARG_INFO()
145 #endif
146
147 #if defined(HAVE_SETRLIMIT)
148 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_setrlimit, 0, 3, _IS_BOOL, 0)
149 ZEND_ARG_TYPE_INFO(0, resource, IS_LONG, 0)
150 ZEND_ARG_TYPE_INFO(0, soft_limit, IS_LONG, 0)
151 ZEND_ARG_TYPE_INFO(0, hard_limit, IS_LONG, 0)
152 ZEND_END_ARG_INFO()
153 #endif
154
155 #define arginfo_posix_get_last_error arginfo_posix_getpid
156
157 #define arginfo_posix_errno arginfo_posix_getpid
158
159 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_strerror, 0, 1, IS_STRING, 0)
160 ZEND_ARG_TYPE_INFO(0, error_code, IS_LONG, 0)
161 ZEND_END_ARG_INFO()
162
163 #if defined(HAVE_INITGROUPS)
164 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_initgroups, 0, 2, _IS_BOOL, 0)
165 ZEND_ARG_TYPE_INFO(0, username, IS_STRING, 0)
166 ZEND_ARG_TYPE_INFO(0, group_id, IS_LONG, 0)
167 ZEND_END_ARG_INFO()
168 #endif
169
170 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_sysconf, 0, 1, IS_LONG, 0)
171 ZEND_ARG_TYPE_INFO(0, conf_id, IS_LONG, 0)
172 ZEND_END_ARG_INFO()
173
174 #if defined(HAVE_PATHCONF)
175 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_pathconf, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
176 ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0)
177 ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
178 ZEND_END_ARG_INFO()
179 #endif
180
181 #if defined(HAVE_FPATHCONF)
182 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_posix_fpathconf, 0, 2, MAY_BE_LONG|MAY_BE_FALSE)
183 ZEND_ARG_INFO(0, file_descriptor)
184 ZEND_ARG_TYPE_INFO(0, name, IS_LONG, 0)
185 ZEND_END_ARG_INFO()
186 #endif
187
188
189 ZEND_FUNCTION(posix_kill);
190 ZEND_FUNCTION(posix_getpid);
191 ZEND_FUNCTION(posix_getppid);
192 ZEND_FUNCTION(posix_getuid);
193 ZEND_FUNCTION(posix_setuid);
194 ZEND_FUNCTION(posix_geteuid);
195 #if defined(HAVE_SETEUID)
196 ZEND_FUNCTION(posix_seteuid);
197 #endif
198 ZEND_FUNCTION(posix_getgid);
199 ZEND_FUNCTION(posix_setgid);
200 ZEND_FUNCTION(posix_getegid);
201 #if defined(HAVE_SETEGID)
202 ZEND_FUNCTION(posix_setegid);
203 #endif
204 #if defined(HAVE_GETGROUPS)
205 ZEND_FUNCTION(posix_getgroups);
206 #endif
207 #if defined(HAVE_GETLOGIN)
208 ZEND_FUNCTION(posix_getlogin);
209 #endif
210 ZEND_FUNCTION(posix_getpgrp);
211 #if defined(HAVE_SETSID)
212 ZEND_FUNCTION(posix_setsid);
213 #endif
214 ZEND_FUNCTION(posix_setpgid);
215 #if defined(HAVE_GETPGID)
216 ZEND_FUNCTION(posix_getpgid);
217 #endif
218 #if defined(HAVE_GETSID)
219 ZEND_FUNCTION(posix_getsid);
220 #endif
221 ZEND_FUNCTION(posix_uname);
222 ZEND_FUNCTION(posix_times);
223 #if defined(HAVE_CTERMID)
224 ZEND_FUNCTION(posix_ctermid);
225 #endif
226 ZEND_FUNCTION(posix_ttyname);
227 ZEND_FUNCTION(posix_isatty);
228 ZEND_FUNCTION(posix_getcwd);
229 #if defined(HAVE_MKFIFO)
230 ZEND_FUNCTION(posix_mkfifo);
231 #endif
232 #if defined(HAVE_MKNOD)
233 ZEND_FUNCTION(posix_mknod);
234 #endif
235 ZEND_FUNCTION(posix_access);
236 #if defined(HAVE_EACCESS)
237 ZEND_FUNCTION(posix_eaccess);
238 #endif
239 ZEND_FUNCTION(posix_getgrnam);
240 ZEND_FUNCTION(posix_getgrgid);
241 ZEND_FUNCTION(posix_getpwnam);
242 ZEND_FUNCTION(posix_getpwuid);
243 #if defined(HAVE_GETRLIMIT)
244 ZEND_FUNCTION(posix_getrlimit);
245 #endif
246 #if defined(HAVE_SETRLIMIT)
247 ZEND_FUNCTION(posix_setrlimit);
248 #endif
249 ZEND_FUNCTION(posix_get_last_error);
250 ZEND_FUNCTION(posix_strerror);
251 #if defined(HAVE_INITGROUPS)
252 ZEND_FUNCTION(posix_initgroups);
253 #endif
254 ZEND_FUNCTION(posix_sysconf);
255 #if defined(HAVE_PATHCONF)
256 ZEND_FUNCTION(posix_pathconf);
257 #endif
258 #if defined(HAVE_FPATHCONF)
259 ZEND_FUNCTION(posix_fpathconf);
260 #endif
261
262
263 static const zend_function_entry ext_functions[] = {
264 ZEND_FE(posix_kill, arginfo_posix_kill)
265 ZEND_FE(posix_getpid, arginfo_posix_getpid)
266 ZEND_FE(posix_getppid, arginfo_posix_getppid)
267 ZEND_FE(posix_getuid, arginfo_posix_getuid)
268 ZEND_FE(posix_setuid, arginfo_posix_setuid)
269 ZEND_FE(posix_geteuid, arginfo_posix_geteuid)
270 #if defined(HAVE_SETEUID)
271 ZEND_FE(posix_seteuid, arginfo_posix_seteuid)
272 #endif
273 ZEND_FE(posix_getgid, arginfo_posix_getgid)
274 ZEND_FE(posix_setgid, arginfo_posix_setgid)
275 ZEND_FE(posix_getegid, arginfo_posix_getegid)
276 #if defined(HAVE_SETEGID)
277 ZEND_FE(posix_setegid, arginfo_posix_setegid)
278 #endif
279 #if defined(HAVE_GETGROUPS)
280 ZEND_FE(posix_getgroups, arginfo_posix_getgroups)
281 #endif
282 #if defined(HAVE_GETLOGIN)
283 ZEND_FE(posix_getlogin, arginfo_posix_getlogin)
284 #endif
285 ZEND_FE(posix_getpgrp, arginfo_posix_getpgrp)
286 #if defined(HAVE_SETSID)
287 ZEND_FE(posix_setsid, arginfo_posix_setsid)
288 #endif
289 ZEND_FE(posix_setpgid, arginfo_posix_setpgid)
290 #if defined(HAVE_GETPGID)
291 ZEND_FE(posix_getpgid, arginfo_posix_getpgid)
292 #endif
293 #if defined(HAVE_GETSID)
294 ZEND_FE(posix_getsid, arginfo_posix_getsid)
295 #endif
296 ZEND_FE(posix_uname, arginfo_posix_uname)
297 ZEND_FE(posix_times, arginfo_posix_times)
298 #if defined(HAVE_CTERMID)
299 ZEND_FE(posix_ctermid, arginfo_posix_ctermid)
300 #endif
301 ZEND_FE(posix_ttyname, arginfo_posix_ttyname)
302 ZEND_FE(posix_isatty, arginfo_posix_isatty)
303 ZEND_FE(posix_getcwd, arginfo_posix_getcwd)
304 #if defined(HAVE_MKFIFO)
305 ZEND_FE(posix_mkfifo, arginfo_posix_mkfifo)
306 #endif
307 #if defined(HAVE_MKNOD)
308 ZEND_FE(posix_mknod, arginfo_posix_mknod)
309 #endif
310 ZEND_FE(posix_access, arginfo_posix_access)
311 #if defined(HAVE_EACCESS)
312 ZEND_FE(posix_eaccess, arginfo_posix_eaccess)
313 #endif
314 ZEND_FE(posix_getgrnam, arginfo_posix_getgrnam)
315 ZEND_FE(posix_getgrgid, arginfo_posix_getgrgid)
316 ZEND_FE(posix_getpwnam, arginfo_posix_getpwnam)
317 ZEND_FE(posix_getpwuid, arginfo_posix_getpwuid)
318 #if defined(HAVE_GETRLIMIT)
319 ZEND_FE(posix_getrlimit, arginfo_posix_getrlimit)
320 #endif
321 #if defined(HAVE_SETRLIMIT)
322 ZEND_FE(posix_setrlimit, arginfo_posix_setrlimit)
323 #endif
324 ZEND_FE(posix_get_last_error, arginfo_posix_get_last_error)
325 ZEND_FALIAS(posix_errno, posix_get_last_error, arginfo_posix_errno)
326 ZEND_FE(posix_strerror, arginfo_posix_strerror)
327 #if defined(HAVE_INITGROUPS)
328 ZEND_FE(posix_initgroups, arginfo_posix_initgroups)
329 #endif
330 ZEND_FE(posix_sysconf, arginfo_posix_sysconf)
331 #if defined(HAVE_PATHCONF)
332 ZEND_FE(posix_pathconf, arginfo_posix_pathconf)
333 #endif
334 #if defined(HAVE_FPATHCONF)
335 ZEND_FE(posix_fpathconf, arginfo_posix_fpathconf)
336 #endif
337 ZEND_FE_END
338 };
339
register_posix_symbols(int module_number)340 static void register_posix_symbols(int module_number)
341 {
342 REGISTER_LONG_CONSTANT("POSIX_F_OK", F_OK, CONST_PERSISTENT);
343 REGISTER_LONG_CONSTANT("POSIX_X_OK", X_OK, CONST_PERSISTENT);
344 REGISTER_LONG_CONSTANT("POSIX_W_OK", W_OK, CONST_PERSISTENT);
345 REGISTER_LONG_CONSTANT("POSIX_R_OK", R_OK, CONST_PERSISTENT);
346 #if defined(S_IFREG)
347 REGISTER_LONG_CONSTANT("POSIX_S_IFREG", S_IFREG, CONST_PERSISTENT);
348 #endif
349 #if defined(S_IFCHR)
350 REGISTER_LONG_CONSTANT("POSIX_S_IFCHR", S_IFCHR, CONST_PERSISTENT);
351 #endif
352 #if defined(S_IFBLK)
353 REGISTER_LONG_CONSTANT("POSIX_S_IFBLK", S_IFBLK, CONST_PERSISTENT);
354 #endif
355 #if defined(S_IFIFO)
356 REGISTER_LONG_CONSTANT("POSIX_S_IFIFO", S_IFIFO, CONST_PERSISTENT);
357 #endif
358 #if defined(S_IFSOCK)
359 REGISTER_LONG_CONSTANT("POSIX_S_IFSOCK", S_IFSOCK, CONST_PERSISTENT);
360 #endif
361 #if defined(RLIMIT_AS)
362 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_AS", RLIMIT_AS, CONST_PERSISTENT);
363 #endif
364 #if defined(RLIMIT_CORE)
365 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_CORE", RLIMIT_CORE, CONST_PERSISTENT);
366 #endif
367 #if defined(RLIMIT_CPU)
368 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_CPU", RLIMIT_CPU, CONST_PERSISTENT);
369 #endif
370 #if defined(RLIMIT_DATA)
371 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_DATA", RLIMIT_DATA, CONST_PERSISTENT);
372 #endif
373 #if defined(RLIMIT_FSIZE)
374 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_FSIZE", RLIMIT_FSIZE, CONST_PERSISTENT);
375 #endif
376 #if defined(RLIMIT_LOCKS)
377 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_LOCKS", RLIMIT_LOCKS, CONST_PERSISTENT);
378 #endif
379 #if defined(RLIMIT_MEMLOCK)
380 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_MEMLOCK", RLIMIT_MEMLOCK, CONST_PERSISTENT);
381 #endif
382 #if defined(RLIMIT_MSGQUEUE)
383 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_MSGQUEUE", RLIMIT_MSGQUEUE, CONST_PERSISTENT);
384 #endif
385 #if defined(RLIMIT_NICE)
386 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_NICE", RLIMIT_NICE, CONST_PERSISTENT);
387 #endif
388 #if defined(RLIMIT_NOFILE)
389 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_NOFILE", RLIMIT_NOFILE, CONST_PERSISTENT);
390 #endif
391 #if defined(RLIMIT_NPROC)
392 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_NPROC", RLIMIT_NPROC, CONST_PERSISTENT);
393 #endif
394 #if defined(RLIMIT_RSS)
395 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_RSS", RLIMIT_RSS, CONST_PERSISTENT);
396 #endif
397 #if defined(RLIMIT_RTPRIO)
398 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_RTPRIO", RLIMIT_RTPRIO, CONST_PERSISTENT);
399 #endif
400 #if defined(RLIMIT_RTTIME)
401 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_RTTIME", RLIMIT_RTTIME, CONST_PERSISTENT);
402 #endif
403 #if defined(RLIMIT_SIGPENDING)
404 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_SIGPENDING", RLIMIT_SIGPENDING, CONST_PERSISTENT);
405 #endif
406 #if defined(RLIMIT_STACK)
407 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_STACK", RLIMIT_STACK, CONST_PERSISTENT);
408 #endif
409 #if defined(RLIMIT_KQUEUES)
410 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_KQUEUES", RLIMIT_KQUEUES, CONST_PERSISTENT);
411 #endif
412 #if defined(RLIMIT_NPTS)
413 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_NPTS", RLIMIT_NPTS, CONST_PERSISTENT);
414 #endif
415 #if defined(HAVE_SETRLIMIT)
416 REGISTER_LONG_CONSTANT("POSIX_RLIMIT_INFINITY", RLIM_INFINITY, CONST_PERSISTENT);
417 #endif
418 #if defined(_SC_ARG_MAX)
419 REGISTER_LONG_CONSTANT("POSIX_SC_ARG_MAX", _SC_ARG_MAX, CONST_PERSISTENT);
420 #endif
421 #if defined(_SC_PAGESIZE)
422 REGISTER_LONG_CONSTANT("POSIX_SC_PAGESIZE", _SC_PAGESIZE, CONST_PERSISTENT);
423 #endif
424 #if defined(_SC_NPROCESSORS_CONF)
425 REGISTER_LONG_CONSTANT("POSIX_SC_NPROCESSORS_CONF", _SC_NPROCESSORS_CONF, CONST_PERSISTENT);
426 #endif
427 #if defined(_SC_NPROCESSORS_ONLN)
428 REGISTER_LONG_CONSTANT("POSIX_SC_NPROCESSORS_ONLN", _SC_NPROCESSORS_ONLN, CONST_PERSISTENT);
429 #endif
430 #if defined(_PC_LINK_MAX)
431 REGISTER_LONG_CONSTANT("POSIX_PC_LINK_MAX", _PC_LINK_MAX, CONST_PERSISTENT);
432 #endif
433 #if defined(_PC_MAX_CANON)
434 REGISTER_LONG_CONSTANT("POSIX_PC_MAX_CANON", _PC_MAX_CANON, CONST_PERSISTENT);
435 #endif
436 #if defined(_PC_MAX_INPUT)
437 REGISTER_LONG_CONSTANT("POSIX_PC_MAX_INPUT", _PC_MAX_INPUT, CONST_PERSISTENT);
438 #endif
439 #if defined(_PC_NAME_MAX)
440 REGISTER_LONG_CONSTANT("POSIX_PC_NAME_MAX", _PC_NAME_MAX, CONST_PERSISTENT);
441 #endif
442 #if defined(_PC_PATH_MAX)
443 REGISTER_LONG_CONSTANT("POSIX_PC_PATH_MAX", _PC_PATH_MAX, CONST_PERSISTENT);
444 #endif
445 #if defined(_PC_PIPE_BUF)
446 REGISTER_LONG_CONSTANT("POSIX_PC_PIPE_BUF", _PC_PIPE_BUF, CONST_PERSISTENT);
447 #endif
448 #if defined(_PC_CHOWN_RESTRICTED)
449 REGISTER_LONG_CONSTANT("POSIX_PC_CHOWN_RESTRICTED", _PC_CHOWN_RESTRICTED, CONST_PERSISTENT);
450 #endif
451 #if defined(_PC_NO_TRUNC)
452 REGISTER_LONG_CONSTANT("POSIX_PC_NO_TRUNC", _PC_NO_TRUNC, CONST_PERSISTENT);
453 #endif
454 #if defined(_PC_ALLOC_SIZE_MIN)
455 REGISTER_LONG_CONSTANT("POSIX_PC_ALLOC_SIZE_MIN", _PC_ALLOC_SIZE_MIN, CONST_PERSISTENT);
456 #endif
457 #if defined(_PC_SYMLINK_MAX)
458 REGISTER_LONG_CONSTANT("POSIX_PC_SYMLINK_MAX", _PC_SYMLINK_MAX, CONST_PERSISTENT);
459 #endif
460 }
461