From de9cecf0fb85b473dbf696c0def201d2974bf65d Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Thu, 28 Apr 2011 10:07:30 +0000 Subject: [PATCH] Document pecl/proctitle git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@310616 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/proctitle/book.xml | 42 ++++++++ reference/proctitle/configure.xml | 34 +++++++ reference/proctitle/constants.xml | 28 ++++++ .../proctitle/functions/setproctitle.xml | 99 +++++++++++++++++++ .../proctitle/functions/setthreadtitle.xml | 99 +++++++++++++++++++ reference/proctitle/reference.xml | 30 ++++++ reference/proctitle/setup.xml | 53 ++++++++++ reference/proctitle/versions.xml | 32 ++++++ 8 files changed, 417 insertions(+) create mode 100644 reference/proctitle/book.xml create mode 100644 reference/proctitle/configure.xml create mode 100644 reference/proctitle/constants.xml create mode 100644 reference/proctitle/functions/setproctitle.xml create mode 100644 reference/proctitle/functions/setthreadtitle.xml create mode 100644 reference/proctitle/reference.xml create mode 100644 reference/proctitle/setup.xml create mode 100644 reference/proctitle/versions.xml diff --git a/reference/proctitle/book.xml b/reference/proctitle/book.xml new file mode 100644 index 0000000000..c29772ca65 --- /dev/null +++ b/reference/proctitle/book.xml @@ -0,0 +1,42 @@ + + + + + Proctitle + Proctitle + + + &reftitle.intro; + + This extension allows changing the current process', and thread, name on Linux and *BSD + systems. This is useful when using pcntl_fork to identify running + processes in process list + + + + &reference.proctitle.setup; + &reference.proctitle.constants; + &reference.proctitle.reference; + + + + diff --git a/reference/proctitle/configure.xml b/reference/proctitle/configure.xml new file mode 100644 index 0000000000..04280536cd --- /dev/null +++ b/reference/proctitle/configure.xml @@ -0,0 +1,34 @@ + + + +
+ &reftitle.install; + + + &pecl.info; + &url.pecl.package;proctitle. + + +
+ + + diff --git a/reference/proctitle/constants.xml b/reference/proctitle/constants.xml new file mode 100644 index 0000000000..69fd8f3822 --- /dev/null +++ b/reference/proctitle/constants.xml @@ -0,0 +1,28 @@ + + + + + &reftitle.constants; + &no.constants; + + + diff --git a/reference/proctitle/functions/setproctitle.xml b/reference/proctitle/functions/setproctitle.xml new file mode 100644 index 0000000000..e303715eec --- /dev/null +++ b/reference/proctitle/functions/setproctitle.xml @@ -0,0 +1,99 @@ + + + + + + setproctitle + Set the process title + + + + &reftitle.description; + + voidsetproctitle + stringtitle + + + Sets the process title of the current process. + + + + + &reftitle.parameters; + + + + title + + + The title to use as the process title. + + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + <function>setproctitle</function> example + + Running the example below will change the process title (visible with + ps a for example). + + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + pcntl_fork + setthreadtitle + + + + + + diff --git a/reference/proctitle/functions/setthreadtitle.xml b/reference/proctitle/functions/setthreadtitle.xml new file mode 100644 index 0000000000..07929968c3 --- /dev/null +++ b/reference/proctitle/functions/setthreadtitle.xml @@ -0,0 +1,99 @@ + + + + + + setthreadtitle + Set the thread title + + + + &reftitle.description; + + boolsetthreadtitle + stringtitle + + + Sets the thread title. + + + + + &reftitle.parameters; + + + + title + + + The title to use as the thread title. + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + <function>setthreadtitle</function> example + + Running the example below will change the thread title (visible with + ps c for example). + + + +]]> + + &example.outputs.similar; + + + + + + + + &reftitle.seealso; + + pcntl_fork + setproctitle + + + + + + diff --git a/reference/proctitle/reference.xml b/reference/proctitle/reference.xml new file mode 100644 index 0000000000..f7c6cef4cf --- /dev/null +++ b/reference/proctitle/reference.xml @@ -0,0 +1,30 @@ + + + + + Proctitle &Functions; + + &reference.proctitle.entities.functions; + + + + diff --git a/reference/proctitle/setup.xml b/reference/proctitle/setup.xml new file mode 100644 index 0000000000..5b878b2460 --- /dev/null +++ b/reference/proctitle/setup.xml @@ -0,0 +1,53 @@ + + + + + &reftitle.setup; + +
+ &reftitle.required; + + Nothing special. + +
+ +
+ &reftitle.install; + + &pecl.info; + &url.pecl.package;proctitle. + +
+ +
+ &reftitle.runtime; + &no.config; +
+ +
+ &reftitle.resources; + &no.resource; +
+ +
+ + diff --git a/reference/proctitle/versions.xml b/reference/proctitle/versions.xml new file mode 100644 index 0000000000..db71c71e4e --- /dev/null +++ b/reference/proctitle/versions.xml @@ -0,0 +1,32 @@ + + + + + + + + + + +