Removed shebang's as requested by Nuno.

Fixed structure of refsects


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@235205 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Logan Buesching 2007-05-08 03:47:42 +00:00
parent e346c3a552
commit 07631eab81
12 changed files with 74 additions and 75 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id="function.posix-ctermid">
<refnamediv>
<refname>posix_ctermid</refname>
@ -19,6 +19,15 @@
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Upon successful completion, returns <type>string</type> of the pathname to
the current controlling terminal. Otherwise &false; is returned and errno
is set, which can be checked with <function>posix_get_last_error</function>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -29,7 +38,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo "I am running from ".posix_ctermid();
?>
@ -39,15 +47,6 @@ echo "I am running from ".posix_ctermid();
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Upon successful completion, returns <type>string</type> of the pathname to
the current controlling terminal. Otherwise &false; is returned and errno
is set, which can be checked with <function>posix_get_last_error</function>.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.posix-get-last-error">
<refnamediv>
<refname>posix_get_last_error</refname>
@ -38,7 +38,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
posix_kill(999459,SIGKILL);
echo 'Your error returned was '.posix_get_last_error(); //Your error was ___

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<refentry id="function.posix-getcwd">
<refnamediv>
<refname>posix_getcwd</refname>
@ -19,6 +19,15 @@
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns a <type>string</type> of the absolute pathname on success.
On error, returns &false; and sets errno which can be checked with
<function>posix_get_last_error</function>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -30,7 +39,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo 'My current working directory is '.posix_getcwd();
?>
@ -42,8 +50,9 @@ echo 'My current working directory is '.posix_getcwd();
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
This function can fail on can fail on
This function can fail on
<itemizedlist>
<listitem>
<simpara>Read or Search permission was denied</simpara>
@ -53,15 +62,7 @@ echo 'My current working directory is '.posix_getcwd();
</listitem>
</itemizedlist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns a <type>string</type> of the absolute pathname on success.
On error, returns &false; and sets errno which can be checked with
<function>posix_get_last_error</function>.
</para>
</note>
</refsect1>
</refentry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.posix-getegid">
<refnamediv>
<refname>posix_getegid</refname>
@ -16,14 +16,7 @@
Return the numeric effective group ID of the current process.
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<para>
<function>posix_getegid</function> is different than
<function>posix_getgid</function> by you can change the effective group ID of
a calling process using the <function>posix_setegid</function>.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
@ -42,7 +35,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo 'My real group id is '.posix_getgid(); //20
posix_setegid(40);
@ -55,6 +47,15 @@ echo 'My effective group id is '.posix_getegid(); //40
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<para>
<function>posix_getegid</function> is different than
<function>posix_getgid</function> by you can change the effective group ID of
a calling process using the <function>posix_setegid</function>.
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.posix-geteuid">
<refnamediv>
<refname>posix_geteuid</refname>
@ -30,7 +30,6 @@
the real id and the effective id.</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo posix_getuid().'\n'; //10001
echo posix_geteuid().'\n'; //10001

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.posix-getgid">
<refnamediv>
<refname>posix_getgid</refname>
@ -17,6 +17,13 @@
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the real group id, as an <type>integer</type>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -28,7 +35,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo 'My real group id is '.posix_getgid(); //20
posix_setegid(40);
@ -57,12 +63,6 @@ echo 'My effective group id is '.posix_getegid(); //40
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the real group id, as an <type>integer</type>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- $Revision: 1.6 $ -->
<refentry id="function.posix-getpgid">
<refnamediv>
<refname>posix_getpgid</refname>
@ -41,16 +41,6 @@
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<para>
This is a not POSIX function, but is common on BSD and System V
systems. If your system does not support this function, then it
will not be included at compile time. You may check if this
function exists with <function>function_exists</function>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -67,6 +57,18 @@ echo posix_getpgid(); //35
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
This is a not POSIX function, but is common on BSD and System V
systems. If your system does not support this function, then it
will not be included at compile time. You may check if this
function exists with <function>function_exists</function>.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<refentry id="function.posix-getrlimit">
<refnamediv>
<refname>posix_getrlimit</refname>
@ -115,16 +115,6 @@
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<para>
This is a not POSIX function, but is common on BSD and System V
systems. If your system does not support this function, then it
will not be included at compile time. You may check if this
function exists with <function>function_exists</function>.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
@ -172,6 +162,18 @@ Array
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<para>
This is a not POSIX function, but is common on BSD and System V
systems. If your system does not support this function, then it
will not be included at compile time. You may check if this
function exists with <function>function_exists</function>.
</para>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id="function.posix-setegid">
<refnamediv>
<refname>posix_setegid</refname>
@ -53,7 +53,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo 'My real group id is '.posix_getgid(); //20
posix_setegid(40);

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id="function.posix-setgid">
<refnamediv>
<refname>posix_setgid</refname>
@ -62,7 +62,6 @@
</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo 'My real group id is '.posix_getgid(); //20
posix_setgid(40);

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id="function.posix-setuid">
<refnamediv>
<refname>posix_setuid</refname>
@ -51,7 +51,6 @@
it to a different value.</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
echo posix_getuid().'\n'; //10001
echo posix_geteuid().'\n'; //10001

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry id="function.posix-strerror">
<refnamediv>
<refname>posix_strerror</refname>
@ -54,7 +54,6 @@
exist, then will print out the corresponding error message.</para>
<programlisting role="php">
<![CDATA[
#!/usr/local/bin/php
<?php
posix_kill(50,SIGKILL);
echo posix_strerror(posix_get_last_error())."\n";