reference/posix/constants.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -14,7 +14,7 @@
14
14
<varlistentry xml:id="constant.posix-f-ok">
15
15
<term>
16
16
<constant>POSIX_F_OK</constant>
17
-
(<type>int</type>)
17
+
(<type>int</type>)
18
18
</term>
19
19
<listitem>
20
20
<simpara>
...
...
@@ -25,7 +25,7 @@
25
25
<varlistentry xml:id="constant.posix-r-ok">
26
26
<term>
27
27
<constant>POSIX_R_OK</constant>
28
-
(<type>int</type>)
28
+
(<type>int</type>)
29
29
</term>
30
30
<listitem>
31
31
<simpara>
...
...
@@ -36,7 +36,7 @@
36
36
<varlistentry xml:id="constant.posix-w-ok">
37
37
<term>
38
38
<constant>POSIX_W_OK</constant>
39
-
(<type>int</type>)
39
+
(<type>int</type>)
40
40
</term>
41
41
<listitem>
42
42
<simpara>
...
...
@@ -47,7 +47,7 @@
47
47
<varlistentry xml:id="constant.posix-x-ok">
48
48
<term>
49
49
<constant>POSIX_X_OK</constant>
50
-
(<type>int</type>)
50
+
(<type>int</type>)
51
51
</term>
52
52
<listitem>
53
53
<simpara>
...
...
@@ -69,7 +69,7 @@
69
69
<varlistentry xml:id="constant.posix-s-ifblk">
70
70
<term>
71
71
<constant>POSIX_S_IFBLK</constant>
72
-
(<type>int</type>)
72
+
(<type>int</type>)
73
73
</term>
74
74
<listitem>
75
75
<simpara>
...
...
@@ -80,7 +80,7 @@
80
80
<varlistentry xml:id="constant.posix-s-ifchr">
81
81
<term>
82
82
<constant>POSIX_S_IFCHR</constant>
83
-
(<type>int</type>)
83
+
(<type>int</type>)
84
84
</term>
85
85
<listitem>
86
86
<simpara>
...
...
@@ -91,7 +91,7 @@
91
91
<varlistentry xml:id="constant.posix-s-ififo">
92
92
<term>
93
93
<constant>POSIX_S_IFIFO</constant>
94
-
(<type>int</type>)
94
+
(<type>int</type>)
95
95
</term>
96
96
<listitem>
97
97
<simpara>
...
...
@@ -102,7 +102,7 @@
102
102
<varlistentry xml:id="constant.posix-s-ifreg">
103
103
<term>
104
104
<constant>POSIX_S_IFREG</constant>
105
-
(<type>int</type>)
105
+
(<type>int</type>)
106
106
</term>
107
107
<listitem>
108
108
<simpara>
...
...
@@ -113,7 +113,7 @@
113
113
<varlistentry xml:id="constant.posix-s-ifsock">
114
114
<term>
115
115
<constant>POSIX_S_IFSOCK</constant>
116
-
(<type>int</type>)
116
+
(<type>int</type>)
117
117
</term>
118
118
<listitem>
119
119
<simpara>
...
...
@@ -143,7 +143,7 @@
143
143
<varlistentry xml:id="constant.posix-rlimit-as">
144
144
<term>
145
145
<constant>POSIX_RLIMIT_AS</constant>
146
-
(<type>int</type>)
146
+
(<type>int</type>)
147
147
</term>
148
148
<listitem>
149
149
<simpara>
...
...
@@ -156,7 +156,7 @@
156
156
<varlistentry xml:id="constant.posix-rlimit-core">
157
157
<term>
158
158
<constant>POSIX_RLIMIT_CORE</constant>
159
-
(<type>int</type>)
159
+
(<type>int</type>)
160
160
</term>
161
161
<listitem>
162
162
<simpara>
...
...
@@ -168,16 +168,16 @@
168
168
<varlistentry xml:id="constant.posix-rlimit-cpu">
169
169
<term>
170
170
<constant>POSIX_RLIMIT_CPU</constant>
171
-
(<type>int</type>)
171
+
(<type>int</type>)
172
172
</term>
173
173
<listitem>
174
174
<simpara>
175
175
The maximum amount of CPU time that the process can use, in seconds.
176
-
When the soft limit is hit, a <literal>SIGXCPU</literal> signal will be
176
+
When the soft limit is hit, a <constant>SIGXCPU</constant> signal will be
177
177
sent, which can be caught with <function>pcntl_signal</function>.
178
-
Depending on the operating system, additional <literal>SIGXCPU</literal>
178
+
Depending on the operating system, additional <constant>SIGXCPU</constant>
179
179
signals may be sent each second until the hard limit is hit, at which
180
-
point an uncatchable <literal>SIGKILL</literal> signal is sent.
180
+
point an uncatchable <constant>SIGKILL</constant> signal is sent.
181
181
</simpara>
182
182
<simpara>
183
183
See also <function>set_time_limit</function>.
...
...
@@ -187,7 +187,7 @@
187
187
<varlistentry xml:id="constant.posix-rlimit-data">
188
188
<term>
189
189
<constant>POSIX_RLIMIT_DATA</constant>
190
-
(<type>int</type>)
190
+
(<type>int</type>)
191
191
</term>
192
192
<listitem>
193
193
<simpara>
...
...
@@ -201,7 +201,7 @@
201
201
<varlistentry xml:id="constant.posix-rlimit-fsize">
202
202
<term>
203
203
<constant>POSIX_RLIMIT_FSIZE</constant>
204
-
(<type>int</type>)
204
+
(<type>int</type>)
205
205
</term>
206
206
<listitem>
207
207
<simpara>
...
...
@@ -212,7 +212,7 @@
212
212
<varlistentry xml:id="constant.posix-rlimit-locks">
213
213
<term>
214
214
<constant>POSIX_RLIMIT_LOCKS</constant>
215
-
(<type>int</type>)
215
+
(<type>int</type>)
216
216
</term>
217
217
<listitem>
218
218
<simpara>
...
...
@@ -224,7 +224,7 @@
224
224
<varlistentry xml:id="constant.posix-rlimit-memlock">
225
225
<term>
226
226
<constant>POSIX_RLIMIT_MEMLOCK</constant>
227
-
(<type>int</type>)
227
+
(<type>int</type>)
228
228
</term>
229
229
<listitem>
230
230
<simpara>
...
...
@@ -235,7 +235,7 @@
235
235
<varlistentry xml:id="constant.posix-rlimit-msgqueue">
236
236
<term>
237
237
<constant>POSIX_RLIMIT_MSGQUEUE</constant>
238
-
(<type>int</type>)
238
+
(<type>int</type>)
239
239
</term>
240
240
<listitem>
241
241
<simpara>
...
...
@@ -249,7 +249,7 @@
249
249
<varlistentry xml:id="constant.posix-rlimit-nice">
250
250
<term>
251
251
<constant>POSIX_RLIMIT_NICE</constant>
252
-
(<type>int</type>)
252
+
(<type>int</type>)
253
253
</term>
254
254
<listitem>
255
255
<simpara>
...
...
@@ -263,7 +263,7 @@
263
263
<varlistentry xml:id="constant.posix-rlimit-nofile">
264
264
<term>
265
265
<constant>POSIX_RLIMIT_NOFILE</constant>
266
-
(<type>int</type>)
266
+
(<type>int</type>)
267
267
</term>
268
268
<listitem>
269
269
<simpara>
...
...
@@ -275,7 +275,7 @@
275
275
<varlistentry xml:id="constant.posix-rlimit-nproc">
276
276
<term>
277
277
<constant>POSIX_RLIMIT_NPROC</constant>
278
-
(<type>int</type>)
278
+
(<type>int</type>)
279
279
</term>
280
280
<listitem>
281
281
<simpara>
...
...
@@ -287,7 +287,7 @@
287
287
<varlistentry xml:id="constant.posix-rlimit-rss">
288
288
<term>
289
289
<constant>POSIX_RLIMIT_RSS</constant>
290
-
(<type>int</type>)
290
+
(<type>int</type>)
291
291
</term>
292
292
<listitem>
293
293
<simpara>
...
...
@@ -298,7 +298,7 @@
298
298
<varlistentry xml:id="constant.posix-rlimit-rtprio">
299
299
<term>
300
300
<constant>POSIX_RLIMIT_RTPRIO</constant>
301
-
(<type>int</type>)
301
+
(<type>int</type>)
302
302
</term>
303
303
<listitem>
304
304
<simpara>
...
...
@@ -311,7 +311,7 @@
311
311
<varlistentry xml:id="constant.posix-rlimit-rttime">
312
312
<term>
313
313
<constant>POSIX_RLIMIT_RTTIME</constant>
314
-
(<type>int</type>)
314
+
(<type>int</type>)
315
315
</term>
316
316
<listitem>
317
317
<simpara>
...
...
@@ -324,7 +324,7 @@
324
324
<varlistentry xml:id="constant.posix-rlimit-sigpending">
325
325
<term>
326
326
<constant>POSIX_RLIMIT_SIGPENDING</constant>
327
-
(<type>int</type>)
327
+
(<type>int</type>)
328
328
</term>
329
329
<listitem>
330
330
<simpara>
...
...
@@ -336,7 +336,7 @@
336
336
<varlistentry xml:id="constant.posix-rlimit-stack">
337
337
<term>
338
338
<constant>POSIX_RLIMIT_STACK</constant>
339
-
(<type>int</type>)
339
+
(<type>int</type>)
340
340
</term>
341
341
<listitem>
342
342
<simpara>
...
...
@@ -347,7 +347,7 @@
347
347
<varlistentry xml:id="constant.posix-rlimit-infinity">
348
348
<term>
349
349
<constant>POSIX_RLIMIT_INFINITY</constant>
350
-
(<type>int</type>)
350
+
(<type>int</type>)
351
351
</term>
352
352
<listitem>
353
353
<simpara>
...
...
@@ -358,7 +358,7 @@
358
358
<varlistentry xml:id="constant.posix-rlimit-kqueues">
359
359
<term>
360
360
<constant>POSIX_RLIMIT_KQUEUES</constant>
361
-
(<type>int</type>)
361
+
(<type>int</type>)
362
362
</term>
363
363
<listitem>
364
364
<simpara>
...
...
@@ -370,7 +370,7 @@
370
370
<varlistentry xml:id="constant.posix-rlimit-npts">
371
371
<term>
372
372
<constant>POSIX_RLIMIT_NPTS</constant>
373
-
(<type>int</type>)
373
+
(<type>int</type>)
374
374
</term>
375
375
<listitem>
376
376
<simpara>
...
...
@@ -381,8 +381,189 @@
381
381
</varlistentry>
382
382
</variablelist>
383
383
</section>
384
-
</appendix>
385
384

385
+
<section xml:id="posix.constants.pathconf">
386
+
<title><function>posix_pathconf</function> constants</title>
387
+
<variablelist>
388
+
<varlistentry xml:id="constant.posix-pc-link-max">
389
+
<term>
390
+
<constant>POSIX_PC_LINK_MAX</constant>
391
+
(<type>int</type>)
392
+
</term>
393
+
<listitem>
394
+
<simpara>
395
+
The maximum number of links a given file or directory can have.
396
+
Available as of PHP 8.3.0.
397
+
</simpara>
398
+
</listitem>
399
+
</varlistentry>
400
+
<varlistentry xml:id="constant.posix-pc-max-canon">
401
+
<term>
402
+
<constant>POSIX_PC_MAX_CANON</constant>
403
+
(<type>int</type>)
404
+
</term>
405
+
<listitem>
406
+
<simpara>
407
+
The maximum number of bytes in a terminal canonical input buffer
408
+
(pathname being then a character special file).
409
+
Available as of PHP 8.3.0.
410
+
</simpara>
411
+
</listitem>
412
+
</varlistentry>
413
+
<varlistentry xml:id="constant.posix-pc-max-input">
414
+
<term>
415
+
<constant>POSIX_PC_MAX_INPUT</constant>
416
+
(<type>int</type>)
417
+
</term>
418
+
<listitem>
419
+
<simpara>
420
+
The maximum number of bytes of a terminal input queue
421
+
(pathname being then a character special file).
422
+
Available as of PHP 8.3.0.
423
+
</simpara>
424
+
</listitem>
425
+
</varlistentry>
426
+
<varlistentry xml:id="constant.posix-pc-name-max">
427
+
<term>
428
+
<constant>POSIX_PC_NAME_MAX</constant>
429
+
(<type>int</type>)
430
+
</term>
431
+
<listitem>
432
+
<simpara>
433
+
The maximum number of characters for a file name alone, not its path.
434
+
Available as of PHP 8.3.0.
435
+
</simpara>
436
+
</listitem>
437
+
</varlistentry>
438
+
<varlistentry xml:id="constant.posix-pc-path-max">
439
+
<term>
440
+
<constant>POSIX_PC_PATH_MAX</constant>
441
+
(<type>int</type>)
442
+
</term>
443
+
<listitem>
444
+
<simpara>
445
+
The maximum number of characters for a full path name.
446
+
Available as of PHP 8.3.0.
447
+
</simpara>
448
+
</listitem>
449
+
</varlistentry>
450
+
<varlistentry xml:id="constant.posix-pc-pipe-buf">
451
+
<term>
452
+
<constant>POSIX_PC_PIPE_BUF</constant>
453
+
(<type>int</type>)
454
+
</term>
455
+
<listitem>
456
+
<simpara>
457
+
The maximum number of bytes that can be written to a pipe in one operation.
458
+
Available as of PHP 8.3.0.
459
+
</simpara>
460
+
</listitem>
461
+
</varlistentry>
462
+
<varlistentry xml:id="constant.posix-pc-chown-restricted">
463
+
<term>
464
+
<constant>POSIX_PC_CHOWN_RESTRICTED</constant>
465
+
(<type>int</type>)
466
+
</term>
467
+
<listitem>
468
+
<simpara>
469
+
If privileges are required to be allow <function>chown</function> to work.
470
+
Available as of PHP 8.3.0.
471
+
</simpara>
472
+
</listitem>
473
+
</varlistentry>
474
+
<varlistentry xml:id="constant.posix-pc-no-trunc">
475
+
<term>
476
+
<constant>POSIX_PC_NO_TRUNC</constant>
477
+
(<type>int</type>)
478
+
</term>
479
+
<listitem>
480
+
<simpara>
481
+
If a file name (or files under a directory) is longer than <constant>POSIX_PC_NAME_MAX</constant>.
482
+
Available as of PHP 8.3.0.
483
+
</simpara>
484
+
</listitem>
485
+
</varlistentry>
486
+
<varlistentry xml:id="constant.posix-pc-alloc-size-min">
487
+
<term>
488
+
<constant>POSIX_PC_ALLOC_SIZE_MIN</constant>
489
+
(<type>int</type>)
490
+
</term>
491
+
<listitem>
492
+
<simpara>
493
+
The minimum number of bytes of storage allocated for any portion of a file.
494
+
Available as of PHP 8.3.0.
495
+
</simpara>
496
+
</listitem>
497
+
</varlistentry>
498
+
<varlistentry xml:id="constant.posix-pc-alloc-symlink-max">
499
+
<term>
500
+
<constant>POSIX_PC_ALLOC_SYMLINK_MAX</constant>
501
+
(<type>int</type>)
502
+
</term>
503
+
<listitem>
504
+
<simpara>
505
+
The maximum number of symbolic links a given file or directory can have.
506
+
Available as of PHP 8.3.0.
507
+
</simpara>
508
+
</listitem>
509
+
</varlistentry>
510
+
</variablelist>
511
+
</section>
512
+

513
+
<section xml:id="posix.constants.sysconf">
514
+
<title><function>posix_sysconf</function> constants</title>
515
+
<variablelist>
516
+
<varlistentry xml:id="constant.posix-sc-arg-max">
517
+
<term>
518
+
<constant>POSIX_SC_ARG_MAX</constant>
519
+
(<type>int</type>)
520
+
</term>
521
+
<listitem>
522
+
<simpara>
523
+
The maximum number of bytes the arguments (and environment variables) can have.
524
+
Available as of PHP 8.3.0.
525
+
</simpara>
526
+
</listitem>
527
+
</varlistentry>
528
+
<varlistentry xml:id="constant.posix-sc-pagesize">
529
+
<term>
530
+
<constant>POSIX_SC_PAGESIZE</constant>
531
+
(<type>int</type>)
532
+
</term>
533
+
<listitem>
534
+
<simpara>
535
+
The number of bytes of the current page.
536
+
Available as of PHP 8.3.0.
537
+
</simpara>
538
+
</listitem>
539
+
</varlistentry>
540
+
<varlistentry xml:id="constant.posix-sc-nprocessors-conf">
541
+
<term>
542
+
<constant>POSIX_SC_NPROCESSORS_CONF</constant>
543
+
(<type>int</type>)
544
+
</term>
545
+
<listitem>
546
+
<simpara>
547
+
The number of cpus configured system wise.
548
+
Available as of PHP 8.3.0.
549
+
</simpara>
550
+
</listitem>
551
+
</varlistentry>
552
+
<varlistentry xml:id="constant.posix-sc-nprocessors-onln">
553
+
<term>
554
+
<constant>POSIX_SC_NPROCESSORS_ONLN</constant>
555
+
(<type>int</type>)
556
+
</term>
557
+
<listitem>
558
+
<simpara>
559
+
The number of cpus currently active system wise.
560
+
Available as of PHP 8.3.0.
561
+
</simpara>
562
+
</listitem>
563
+
</varlistentry>
564
+
</variablelist>
565
+
</section>
566
+
</appendix>
386
567
<!-- Keep this comment at the end of the file
387
568
Local variables:
388
569
mode: sgml
389
570