-
Notifications
You must be signed in to change notification settings - Fork 788
/
Copy pathconstants.xml
622 lines (618 loc) · 17 KB
/
constants.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<appendix xml:id="posix.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&extension.constants;
<section xml:id="posix.constants.access">
<title><function>posix_access</function> constants</title>
<note>
<para>
Please note that some of these constants may not be available on every system.
</para>
</note>
<variablelist>
<varlistentry xml:id="constant.posix-f-ok">
<term>
<constant>POSIX_F_OK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Check whether the file exists.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-r-ok">
<term>
<constant>POSIX_R_OK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Check whether the file exists and has read permissions.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-w-ok">
<term>
<constant>POSIX_W_OK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Check whether the file exists and has write permissions.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-x-ok">
<term>
<constant>POSIX_X_OK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Check whether the file exists and has execute permissions.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="posix.constants.mknod">
<title><function>posix_mknod</function> constants</title>
<note>
<para>
Please note that some of them may not be available on your system.
</para>
</note>
<variablelist>
<varlistentry xml:id="constant.posix-s-ifblk">
<term>
<constant>POSIX_S_IFBLK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Block special file
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-s-ifchr">
<term>
<constant>POSIX_S_IFCHR</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Character special file
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-s-ififo">
<term>
<constant>POSIX_S_IFIFO</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
FIFO (named pipe) special file
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-s-ifreg">
<term>
<constant>POSIX_S_IFREG</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Normal file
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-s-ifsock">
<term>
<constant>POSIX_S_IFSOCK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Socket
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="posix.constants.setrlimit">
<title><function>posix_setrlimit</function> constants</title>
<note>
<para>
Please note that some of them may not be available on your system.
</para>
</note>
<note>
<para>
You may wish to read the below notes in conjunction with the manpage for
<function>setrlimit</function> on your specific operating system, as there
is variance in how these limits are interpreted, even across operating
systems that claim to implement POSIX in full.
</para>
</note>
<variablelist>
<varlistentry xml:id="constant.posix-rlimit-as">
<term>
<constant>POSIX_RLIMIT_AS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of the process's address space in bytes. See also PHP's
<link linkend="ini.memory-limit">memory_limit</link> configuration
directive.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-core">
<term>
<constant>POSIX_RLIMIT_CORE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of a core file. If the limit is set to 0, no core file
will be generated.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-cpu">
<term>
<constant>POSIX_RLIMIT_CPU</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum amount of CPU time that the process can use, in seconds.
When the soft limit is hit, a <constant>SIGXCPU</constant> signal will be
sent, which can be caught with <function>pcntl_signal</function>.
Depending on the operating system, additional <constant>SIGXCPU</constant>
signals may be sent each second until the hard limit is hit, at which
point an uncatchable <constant>SIGKILL</constant> signal is sent.
</simpara>
<simpara>
See also <function>set_time_limit</function>.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-data">
<term>
<constant>POSIX_RLIMIT_DATA</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of the process's data segment, in bytes. It is
extremely unlikely that this will have any effect on the execution of
PHP unless an extension is in use that calls <function>brk</function> or
<function>sbrk</function>.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-fsize">
<term>
<constant>POSIX_RLIMIT_FSIZE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of files that the process can create, in bytes.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-locks">
<term>
<constant>POSIX_RLIMIT_LOCKS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of locks that the process can create. This is only
supported on extremely old Linux kernels.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-memlock">
<term>
<constant>POSIX_RLIMIT_MEMLOCK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes that can be locked into memory.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-msgqueue">
<term>
<constant>POSIX_RLIMIT_MSGQUEUE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes that can be allocated for POSIX message
queues. PHP does not ship with support for POSIX message queues, so this
limit will not have any effect unless you are using an extension that
implements that support.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-nice">
<term>
<constant>POSIX_RLIMIT_NICE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum value to which the process can be
<link linkend="function.pcntl-setpriority">reniced</link> to. The value
that will be used will be <literal>20 - limit</literal>, as resource
limit values cannot be negative.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-nofile">
<term>
<constant>POSIX_RLIMIT_NOFILE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
A value one greater than the maximum file descriptor number that can be
opened by this process.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-nproc">
<term>
<constant>POSIX_RLIMIT_NPROC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of processes (and/or threads, on some operating
systems) that can be created for the real user ID of the process.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-rss">
<term>
<constant>POSIX_RLIMIT_RSS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of the process's resident set, in pages.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-rtprio">
<term>
<constant>POSIX_RLIMIT_RTPRIO</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum real time priority that can be set via the
<function>sched_setscheduler</function> and
<function>sched_setparam</function> system calls.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-rttime">
<term>
<constant>POSIX_RLIMIT_RTTIME</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum amount of CPU time, in microseconds, that the process can
consume without making a blocking system call if it is using real time
scheduling.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-sigpending">
<term>
<constant>POSIX_RLIMIT_SIGPENDING</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of signals that can be queued for the real user ID of
the process.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-stack">
<term>
<constant>POSIX_RLIMIT_STACK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum size of the process stack, in bytes.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-infinity">
<term>
<constant>POSIX_RLIMIT_INFINITY</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
Used to indicate an infinite value for a resource limit.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-kqueues">
<term>
<constant>POSIX_RLIMIT_KQUEUES</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of kqueues this user id is allowed to create (FreeBSD).
Available as of PHP 8.1.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-rlimit-npts">
<term>
<constant>POSIX_RLIMIT_NPTS</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of pseudo-terminals this user id is allowed to create (FreeBSD).
Available as of PHP 8.1.0.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="posix.constants.pathconf">
<title><function>posix_pathconf</function> constants</title>
<variablelist>
<varlistentry xml:id="constant.posix-pc-link-max">
<term>
<constant>POSIX_PC_LINK_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of links a given file or directory can have.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-max-canon">
<term>
<constant>POSIX_PC_MAX_CANON</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes in a terminal canonical input buffer
(pathname being then a character special file).
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-max-input">
<term>
<constant>POSIX_PC_MAX_INPUT</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes of a terminal input queue
(pathname being then a character special file).
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-name-max">
<term>
<constant>POSIX_PC_NAME_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of characters for a file name alone, not its path.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-path-max">
<term>
<constant>POSIX_PC_PATH_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of characters for a full path name.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-pipe-buf">
<term>
<constant>POSIX_PC_PIPE_BUF</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes that can be written to a pipe in one operation.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-chown-restricted">
<term>
<constant>POSIX_PC_CHOWN_RESTRICTED</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
If privileges are required to be allow <function>chown</function> to work.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-no-trunc">
<term>
<constant>POSIX_PC_NO_TRUNC</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
If a file name (or files under a directory) is longer than <constant>POSIX_PC_NAME_MAX</constant>.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-alloc-size-min">
<term>
<constant>POSIX_PC_ALLOC_SIZE_MIN</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The minimum number of bytes of storage allocated for any portion of a file.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-alloc-symlink-max">
<term>
<constant>POSIX_PC_ALLOC_SYMLINK_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of symbolic links a given file or directory can have.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-pc-symlink-max">
<term>
<constant>POSIX_PC_SYMLINK_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes in a symbolic link.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
<section xml:id="posix.constants.sysconf">
<title><function>posix_sysconf</function> constants</title>
<variablelist>
<varlistentry xml:id="constant.posix-sc-arg-max">
<term>
<constant>POSIX_SC_ARG_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of bytes the arguments (and environment variables) can have.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-sc-pagesize">
<term>
<constant>POSIX_SC_PAGESIZE</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The number of bytes of the current page.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-sc-nprocessors-conf">
<term>
<constant>POSIX_SC_NPROCESSORS_CONF</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The number of cpus configured system wise.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-sc-nprocessors-onln">
<term>
<constant>POSIX_SC_NPROCESSORS_ONLN</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The number of cpus currently active system wise.
Available as of PHP 8.3.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-sc-child-max">
<term>
<constant>POSIX_SC_CHILD_MAX</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The maximum number of simultaneous processes per user.
Available as of PHP 8.4.0.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.posix-sc-clk-tck">
<term>
<constant>POSIX_SC_CLK_TCK</constant>
(<type>int</type>)
</term>
<listitem>
<simpara>
The number of clock ticks per second.
Available as of PHP 8.4.0.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</section>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->