diff --git a/reference/posix/functions/posix-eaccess.xml b/reference/posix/functions/posix-eaccess.xml new file mode 100644 index 000000000000..c2c6b32b88ef --- /dev/null +++ b/reference/posix/functions/posix-eaccess.xml @@ -0,0 +1,152 @@ + + + + posix_eaccess + + Determine accessibility of a file + + + + + &reftitle.description; + + boolposix_eaccess + stringfilename + intflags0 + + + posix_eaccess checks the effective user's permission of a file + + + + + &reftitle.parameters; + + + + filename + + + The name of a file to be tested. + + + + + flags + + + A mask consisting of one or more of POSIX_F_OK, + POSIX_R_OK, POSIX_W_OK and + POSIX_X_OK. + + + POSIX_R_OK, POSIX_W_OK and + POSIX_X_OK request checking whether the file + exists and has read, write and execute permissions, respectively. + POSIX_F_OK just requests checking for the + existence of the file. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Checks the effective user/group for a file, differing + from posix_access which checks + from the real user/group. + + + + + + + + + &reftitle.examples; + + + <function>posix_eaccess</function> example + + This example will check if the $file is readable and writable, otherwise + will print an error message. + + + +]]> + + + + + + + &reftitle.notes; + + + + &reftitle.seealso; + + + posix_get_last_error + posix_strerror + posix_access + + + + + + diff --git a/reference/posix/functions/posix-fpathconf.xml b/reference/posix/functions/posix-fpathconf.xml new file mode 100644 index 000000000000..3ba566228cbc --- /dev/null +++ b/reference/posix/functions/posix-fpathconf.xml @@ -0,0 +1,113 @@ + + + + posix_fpathconf + Returns the value of a configurable limit + + + + &reftitle.description; + + intfalseposix_fpathconf + resourceintfile_descriptor + intname + + + Returns the value of a configurable limit from name for a file descriptor resource + + + + + &reftitle.parameters; + + + &posix.parameter.fd; + + name + + + The name of the configurable limit, one of the following. + POSIX_PC_LINK_MAX, POSIX_PC_MAX_CANON + POSIX_PC_MAX_INPUT, POSIX_PC_NAME_MAX + POSIX_PC_PATH_MAX, POSIX_PC_PIPE_BUF + POSIX_PC_CHOWN_RESTRICTED, POSIX_PC_NO_TRUNC + POSIX_PC_ALLOC_SIZE_MIN, POSIX_PC_SYMLINK_MAX + + + + + + + + + &reftitle.returnvalues; + + Returns the configurable limit or &false;. + + + + + &reftitle.errors; + + Throws a ValueError + when resource is invalid. + + + + + &reftitle.examples; + + <function>posix_fpathconf</function> example + + This example will get the max path name's length in bytes + for the current dir. + + + +]]> + + &example.outputs; + + + + + + + + &reftitle.notes; + + + + &reftitle.seealso; + + posix_pathconf + + + + + diff --git a/reference/posix/functions/posix-getrlimit.xml b/reference/posix/functions/posix-getrlimit.xml index 961a7d962322..6103b0d2a8b5 100644 --- a/reference/posix/functions/posix-getrlimit.xml +++ b/reference/posix/functions/posix-getrlimit.xml @@ -10,7 +10,7 @@ &reftitle.description; arrayfalseposix_getrlimit - + intnullresource&null; posix_getrlimit returns an array @@ -21,7 +21,19 @@ &reftitle.parameters; - &no.function.parameters; + + + + resource + + + If &null; all resource limits will be fetched. + Otherwise, the only limits of the resource type provided will be returned. + + + + + @@ -115,6 +127,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + The optional resource parameter has been added. + + + + + + + &reftitle.examples; diff --git a/reference/posix/functions/posix-isatty.xml b/reference/posix/functions/posix-isatty.xml index 6e551400580b..8b35b8e5db18 100644 --- a/reference/posix/functions/posix-isatty.xml +++ b/reference/posix/functions/posix-isatty.xml @@ -34,6 +34,29 @@ to a terminal and &false; otherwise. + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Type error E_WARNINGs are now raised for integer + coercions following the usual PHP type coercion semantics. + + + + + + &reftitle.seealso; diff --git a/reference/posix/functions/posix-pathconf.xml b/reference/posix/functions/posix-pathconf.xml new file mode 100644 index 000000000000..586d98d6c05e --- /dev/null +++ b/reference/posix/functions/posix-pathconf.xml @@ -0,0 +1,120 @@ + + + + posix_pathconf + Returns the value of a configurable limit + + + + &reftitle.description; + + intfalseposix_pathconf + stringpath + intname + + &warn.undocumented.func; + + Returns the value of a configurable limit from name for a file + + + + + &reftitle.parameters; + + + + path + + + The name of the file whose limit you want to get. + + + + + name + + + The name of the configurable limit, one of the following. + POSIX_PC_LINK_MAX, POSIX_PC_MAX_CANON + POSIX_PC_MAX_INPUT, POSIX_PC_NAME_MAX + POSIX_PC_PATH_MAX, POSIX_PC_PIPE_BUF + POSIX_PC_CHOWN_RESTRICTED, POSIX_PC_NO_TRUNC + POSIX_PC_ALLOC_SIZE_MIN, POSIX_PC_SYMLINK_MAX + + + + + + + + + &reftitle.returnvalues; + + Returns the configurable limit or &false;. + + + + + &reftitle.errors; + + Throws a ValueError + when path is empty. + + + + + &reftitle.examples; + + <function>posix_pathconf</function> example + + This example will get the max path name's length in bytes + for the tmp dir. + + + +]]> + + &example.outputs; + + + + + + + + &reftitle.notes; + + + + &reftitle.seealso; + + posix_fpathconf + + + + + diff --git a/reference/posix/functions/posix-sysconf.xml b/reference/posix/functions/posix-sysconf.xml new file mode 100644 index 000000000000..dbe29529f5d8 --- /dev/null +++ b/reference/posix/functions/posix-sysconf.xml @@ -0,0 +1,91 @@ + + + + posix_sysconf + Returns system runtime information + + + + &reftitle.description; + + intposix_sysconf + intconf_id + + + Returns system runtime information. + + + + + &reftitle.parameters; + + + + conf_id + + + Identifier of the variable with the following constants + POSIX_SC_ARG_MAX, POSIX_SC_PAGESIZE + POSIX_SC_NPROCESSORS_CONF, POSIX_SC_NPROCESSORS_ONLN + + + + + + + + + &reftitle.returnvalues; + + Returns the numeric value related to conf_id + + + + + &reftitle.errors; + + + + &reftitle.examples; + + <function>posix_sysconf</function> example + + Returns the number of active cpus. + + + +]]> + + &example.outputs; + + + + + + + + diff --git a/reference/posix/functions/posix-ttyname.xml b/reference/posix/functions/posix-ttyname.xml index e9af8de3f108..4c9a76bc82f1 100644 --- a/reference/posix/functions/posix-ttyname.xml +++ b/reference/posix/functions/posix-ttyname.xml @@ -36,6 +36,54 @@ + + &reftitle.errors; + + On invalid file_descriptor integer values + an E_WARNING is raised. + + + + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Type error E_WARNINGs are now raised for integer + coercions following the usual PHP type coercion semantics. + + + + 8.3.0 + + On invalid file_descriptor integer values + an E_WARNING is now raised. + + + + + + + + + &reftitle.seealso; + + + posix_isatty + stream_isatty + + + +