Skip to content

Commit 32c8df6

Browse files
authored
[PHP 8.3] ext/posix constants addition. (#2931)
1 parent 6a48d49 commit 32c8df6

File tree

1 file changed

+182
-0
lines changed

1 file changed

+182
-0
lines changed

reference/posix/constants.xml

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,188 @@
381381
</varlistentry>
382382
</variablelist>
383383
</section>
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-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>
384566
</appendix>
385567
<!-- Keep this comment at the end of the file
386568
Local variables:

0 commit comments

Comments
 (0)