reference/posix/constants.xml
61374bbe228e8e9c55a24aba59a1e2bb2a871148
...
...
@@ -7,15 +7,14 @@
7
7
<title><function>posix_access</function> constants</title>
8
8
<note>
9
9
<para>
10
-
These constants are available starting with PHP 5.1.0. Please note that
11
-
some of them may not be available on your system.
10
+
Please note that some of these constants may not be available on every system.
12
11
</para>
13
12
</note>
14
13
<variablelist>
15
14
<varlistentry xml:id="constant.posix-f-ok">
16
15
<term>
17
16
<constant>POSIX_F_OK</constant>
18
-
(<type>integer</type>)
17
+
(<type>int</type>)
19
18
</term>
20
19
<listitem>
21
20
<simpara>
...
...
@@ -26,7 +25,7 @@
26
25
<varlistentry xml:id="constant.posix-r-ok">
27
26
<term>
28
27
<constant>POSIX_R_OK</constant>
29
-
(<type>integer</type>)
28
+
(<type>int</type>)
30
29
</term>
31
30
<listitem>
32
31
<simpara>
...
...
@@ -37,7 +36,7 @@
37
36
<varlistentry xml:id="constant.posix-w-ok">
38
37
<term>
39
38
<constant>POSIX_W_OK</constant>
40
-
(<type>integer</type>)
39
+
(<type>int</type>)
41
40
</term>
42
41
<listitem>
43
42
<simpara>
...
...
@@ -48,7 +47,7 @@
48
47
<varlistentry xml:id="constant.posix-x-ok">
49
48
<term>
50
49
<constant>POSIX_X_OK</constant>
51
-
(<type>integer</type>)
50
+
(<type>int</type>)
52
51
</term>
53
52
<listitem>
54
53
<simpara>
...
...
@@ -63,15 +62,14 @@
63
62
<title><function>posix_mknod</function> constants</title>
64
63
<note>
65
64
<para>
66
-
These constants are available starting with PHP 5.1.0. Please note that
67
-
some of them may not be available on your system.
65
+
Please note that some of them may not be available on your system.
68
66
</para>
69
67
</note>
70
68
<variablelist>
71
69
<varlistentry xml:id="constant.posix-s-ifblk">
72
70
<term>
73
71
<constant>POSIX_S_IFBLK</constant>
74
-
(<type>integer</type>)
72
+
(<type>int</type>)
75
73
</term>
76
74
<listitem>
77
75
<simpara>
...
...
@@ -82,7 +80,7 @@
82
80
<varlistentry xml:id="constant.posix-s-ifchr">
83
81
<term>
84
82
<constant>POSIX_S_IFCHR</constant>
85
-
(<type>integer</type>)
83
+
(<type>int</type>)
86
84
</term>
87
85
<listitem>
88
86
<simpara>
...
...
@@ -93,7 +91,7 @@
93
91
<varlistentry xml:id="constant.posix-s-ififo">
94
92
<term>
95
93
<constant>POSIX_S_IFIFO</constant>
96
-
(<type>integer</type>)
94
+
(<type>int</type>)
97
95
</term>
98
96
<listitem>
99
97
<simpara>
...
...
@@ -104,7 +102,7 @@
104
102
<varlistentry xml:id="constant.posix-s-ifreg">
105
103
<term>
106
104
<constant>POSIX_S_IFREG</constant>
107
-
(<type>integer</type>)
105
+
(<type>int</type>)
108
106
</term>
109
107
<listitem>
110
108
<simpara>
...
...
@@ -115,7 +113,7 @@
115
113
<varlistentry xml:id="constant.posix-s-ifsock">
116
114
<term>
117
115
<constant>POSIX_S_IFSOCK</constant>
118
-
(<type>integer</type>)
116
+
(<type>int</type>)
119
117
</term>
120
118
<listitem>
121
119
<simpara>
...
...
@@ -130,8 +128,7 @@
130
128
<title><function>posix_setrlimit</function> constants</title>
131
129
<note>
132
130
<para>
133
-
These constants are available starting with PHP 7.0.0. Please note that
134
-
some of them may not be available on your system.
131
+
Please note that some of them may not be available on your system.
135
132
</para>
136
133
</note>
137
134
<note>
...
...
@@ -146,7 +143,7 @@
146
143
<varlistentry xml:id="constant.posix-rlimit-as">
147
144
<term>
148
145
<constant>POSIX_RLIMIT_AS</constant>
149
-
(<type>integer</type>)
146
+
(<type>int</type>)
150
147
</term>
151
148
<listitem>
152
149
<simpara>
...
...
@@ -159,7 +156,7 @@
159
156
<varlistentry xml:id="constant.posix-rlimit-core">
160
157
<term>
161
158
<constant>POSIX_RLIMIT_CORE</constant>
162
-
(<type>integer</type>)
159
+
(<type>int</type>)
163
160
</term>
164
161
<listitem>
165
162
<simpara>
...
...
@@ -171,16 +168,16 @@
171
168
<varlistentry xml:id="constant.posix-rlimit-cpu">
172
169
<term>
173
170
<constant>POSIX_RLIMIT_CPU</constant>
174
-
(<type>integer</type>)
171
+
(<type>int</type>)
175
172
</term>
176
173
<listitem>
177
174
<simpara>
178
175
The maximum amount of CPU time that the process can use, in seconds.
179
-
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
180
177
sent, which can be caught with <function>pcntl_signal</function>.
181
-
Depending on the operating system, additional <literal>SIGXCPU</literal>
178
+
Depending on the operating system, additional <constant>SIGXCPU</constant>
182
179
signals may be sent each second until the hard limit is hit, at which
183
-
point an uncatchable <literal>SIGKILL</literal> signal is sent.
180
+
point an uncatchable <constant>SIGKILL</constant> signal is sent.
184
181
</simpara>
185
182
<simpara>
186
183
See also <function>set_time_limit</function>.
...
...
@@ -190,7 +187,7 @@
190
187
<varlistentry xml:id="constant.posix-rlimit-data">
191
188
<term>
192
189
<constant>POSIX_RLIMIT_DATA</constant>
193
-
(<type>integer</type>)
190
+
(<type>int</type>)
194
191
</term>
195
192
<listitem>
196
193
<simpara>
...
...
@@ -204,7 +201,7 @@
204
201
<varlistentry xml:id="constant.posix-rlimit-fsize">
205
202
<term>
206
203
<constant>POSIX_RLIMIT_FSIZE</constant>
207
-
(<type>integer</type>)
204
+
(<type>int</type>)
208
205
</term>
209
206
<listitem>
210
207
<simpara>
...
...
@@ -215,7 +212,7 @@
215
212
<varlistentry xml:id="constant.posix-rlimit-locks">
216
213
<term>
217
214
<constant>POSIX_RLIMIT_LOCKS</constant>
218
-
(<type>integer</type>)
215
+
(<type>int</type>)
219
216
</term>
220
217
<listitem>
221
218
<simpara>
...
...
@@ -227,7 +224,7 @@
227
224
<varlistentry xml:id="constant.posix-rlimit-memlock">
228
225
<term>
229
226
<constant>POSIX_RLIMIT_MEMLOCK</constant>
230
-
(<type>integer</type>)
227
+
(<type>int</type>)
231
228
</term>
232
229
<listitem>
233
230
<simpara>
...
...
@@ -238,7 +235,7 @@
238
235
<varlistentry xml:id="constant.posix-rlimit-msgqueue">
239
236
<term>
240
237
<constant>POSIX_RLIMIT_MSGQUEUE</constant>
241
-
(<type>integer</type>)
238
+
(<type>int</type>)
242
239
</term>
243
240
<listitem>
244
241
<simpara>
...
...
@@ -252,7 +249,7 @@
252
249
<varlistentry xml:id="constant.posix-rlimit-nice">
253
250
<term>
254
251
<constant>POSIX_RLIMIT_NICE</constant>
255
-
(<type>integer</type>)
252
+
(<type>int</type>)
256
253
</term>
257
254
<listitem>
258
255
<simpara>
...
...
@@ -266,7 +263,7 @@
266
263
<varlistentry xml:id="constant.posix-rlimit-nofile">
267
264
<term>
268
265
<constant>POSIX_RLIMIT_NOFILE</constant>
269
-
(<type>integer</type>)
266
+
(<type>int</type>)
270
267
</term>
271
268
<listitem>
272
269
<simpara>
...
...
@@ -278,7 +275,7 @@
278
275
<varlistentry xml:id="constant.posix-rlimit-nproc">
279
276
<term>
280
277
<constant>POSIX_RLIMIT_NPROC</constant>
281
-
(<type>integer</type>)
278
+
(<type>int</type>)
282
279
</term>
283
280
<listitem>
284
281
<simpara>
...
...
@@ -290,7 +287,7 @@
290
287
<varlistentry xml:id="constant.posix-rlimit-rss">
291
288
<term>
292
289
<constant>POSIX_RLIMIT_RSS</constant>
293
-
(<type>integer</type>)
290
+
(<type>int</type>)
294
291
</term>
295
292
<listitem>
296
293
<simpara>
...
...
@@ -301,7 +298,7 @@
301
298
<varlistentry xml:id="constant.posix-rlimit-rtprio">
302
299
<term>
303
300
<constant>POSIX_RLIMIT_RTPRIO</constant>
304
-
(<type>integer</type>)
301
+
(<type>int</type>)
305
302
</term>
306
303
<listitem>
307
304
<simpara>
...
...
@@ -314,7 +311,7 @@
314
311
<varlistentry xml:id="constant.posix-rlimit-rttime">
315
312
<term>
316
313
<constant>POSIX_RLIMIT_RTTIME</constant>
317
-
(<type>integer</type>)
314
+
(<type>int</type>)
318
315
</term>
319
316
<listitem>
320
317
<simpara>
...
...
@@ -327,7 +324,7 @@
327
324
<varlistentry xml:id="constant.posix-rlimit-sigpending">
328
325
<term>
329
326
<constant>POSIX_RLIMIT_SIGPENDING</constant>
330
-
(<type>integer</type>)
327
+
(<type>int</type>)
331
328
</term>
332
329
<listitem>
333
330
<simpara>
...
...
@@ -339,7 +336,7 @@
339
336
<varlistentry xml:id="constant.posix-rlimit-stack">
340
337
<term>
341
338
<constant>POSIX_RLIMIT_STACK</constant>
342
-
(<type>integer</type>)
339
+
(<type>int</type>)
343
340
</term>
344
341
<listitem>
345
342
<simpara>
...
...
@@ -350,7 +347,7 @@
350
347
<varlistentry xml:id="constant.posix-rlimit-infinity">
351
348
<term>
352
349
<constant>POSIX_RLIMIT_INFINITY</constant>
353
-
(<type>integer</type>)
350
+
(<type>int</type>)
354
351
</term>
355
352
<listitem>
356
353
<simpara>
...
...
@@ -358,10 +355,215 @@
358
355
</simpara>
359
356
</listitem>
360
357
</varlistentry>
358
+
<varlistentry xml:id="constant.posix-rlimit-kqueues">
359
+
<term>
360
+
<constant>POSIX_RLIMIT_KQUEUES</constant>
361
+
(<type>int</type>)
362
+
</term>
363
+
<listitem>
364
+
<simpara>
365
+
The maximum number of kqueues this user id is allowed to create (FreeBSD).
366
+
Available as of PHP 8.1.0.
367
+
</simpara>
368
+
</listitem>
369
+
</varlistentry>
370
+
<varlistentry xml:id="constant.posix-rlimit-npts">
371
+
<term>
372
+
<constant>POSIX_RLIMIT_NPTS</constant>
373
+
(<type>int</type>)
374
+
</term>
375
+
<listitem>
376
+
<simpara>
377
+
The maximum number of pseudo-terminals this user id is allowed to create (FreeBSD).
378
+
Available as of PHP 8.1.0.
379
+
</simpara>
380
+
</listitem>
381
+
</varlistentry>
361
382
</variablelist>
362
383
</section>
363
-
</appendix>
364
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>
365
567
<!-- Keep this comment at the end of the file
366
568
Local variables:
367
569
mode: sgml
368
570