]> granicus.if.org Git - php/commitdiff
Safe-fy some functions.
authorAndrei Zmievski <andrei@php.net>
Thu, 27 Apr 2006 15:21:00 +0000 (15:21 +0000)
committerAndrei Zmievski <andrei@php.net>
Thu, 27 Apr 2006 15:21:00 +0000 (15:21 +0000)
ext/pcntl/pcntl.c

index 401ae889eaa751a672e54f76a5df47d97010206a..a0cc21332e11aa7a717d04a0658b280c7073498c 100755 (executable)
@@ -213,7 +213,7 @@ PHP_MINFO_FUNCTION(pcntl)
        php_info_print_table_end();
 }
 
-/* {{{ proto int pcntl_fork(void)
+/* {{{ proto int pcntl_fork(void) U
    Forks the currently running process following the same behavior as the UNIX fork() system call*/
 PHP_FUNCTION(pcntl_fork)
 {
@@ -228,7 +228,7 @@ PHP_FUNCTION(pcntl_fork)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_alarm(int seconds)
+/* {{{ proto int pcntl_alarm(int seconds) U
    Set an alarm clock for delivery of a signal*/
 PHP_FUNCTION(pcntl_alarm)
 {
@@ -241,7 +241,7 @@ PHP_FUNCTION(pcntl_alarm)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_waitpid(int pid, int &status, int options)
+/* {{{ proto int pcntl_waitpid(int pid, int &status, int options) U
    Waits on or returns the status of a forked child as defined by the waitpid() system call */
 PHP_FUNCTION(pcntl_waitpid)
 {
@@ -265,7 +265,7 @@ PHP_FUNCTION(pcntl_waitpid)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_wait(int &status)
+/* {{{ proto int pcntl_wait(int &status) U
    Waits on or returns the status of a forked child as defined by the waitpid() system call */
 PHP_FUNCTION(pcntl_wait)
 {
@@ -296,7 +296,7 @@ PHP_FUNCTION(pcntl_wait)
 }
 /* }}} */
 
-/* {{{ proto bool pcntl_wifexited(int status) 
+/* {{{ proto bool pcntl_wifexited(int status)  U
    Returns true if the child status code represents a successful exit */
 PHP_FUNCTION(pcntl_wifexited)
 {
@@ -316,7 +316,7 @@ PHP_FUNCTION(pcntl_wifexited)
 }
 /* }}} */
 
-/* {{{ proto bool pcntl_wifstopped(int status) 
+/* {{{ proto bool pcntl_wifstopped(int status)  U
    Returns true if the child status code represents a stopped process (WUNTRACED must have been used with waitpid) */
 PHP_FUNCTION(pcntl_wifstopped)
 {
@@ -336,7 +336,7 @@ PHP_FUNCTION(pcntl_wifstopped)
 }
 /* }}} */
 
-/* {{{ proto bool pcntl_wifsignaled(int status) 
+/* {{{ proto bool pcntl_wifsignaled(int status) U
    Returns true if the child status code represents a process that was terminated due to a signal */
 PHP_FUNCTION(pcntl_wifsignaled)
 {
@@ -356,7 +356,7 @@ PHP_FUNCTION(pcntl_wifsignaled)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_wexitstatus(int status) 
+/* {{{ proto int pcntl_wexitstatus(int status) U
    Returns the status code of a child's exit */
 PHP_FUNCTION(pcntl_wexitstatus)
 {
@@ -379,7 +379,7 @@ PHP_FUNCTION(pcntl_wexitstatus)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_wtermsig(int status) 
+/* {{{ proto int pcntl_wtermsig(int status) U
    Returns the number of the signal that terminated the process who's status code is passed  */
 PHP_FUNCTION(pcntl_wtermsig)
 {
@@ -400,7 +400,7 @@ PHP_FUNCTION(pcntl_wtermsig)
 }
 /* }}} */
 
-/* {{{ proto int pcntl_wstopsig(int status) 
+/* {{{ proto int pcntl_wstopsig(int status) U
    Returns the number of the signal that caused the process to stop who's status code is passed */
 PHP_FUNCTION(pcntl_wstopsig)
 {
@@ -574,7 +574,7 @@ PHP_FUNCTION(pcntl_signal)
 /* }}} */
 
 #ifdef HAVE_GETPRIORITY
-/* {{{ proto int pcntl_getpriority([int pid [, int process_identifier]])
+/* {{{ proto int pcntl_getpriority([int pid [, int process_identifier]]) U
    Get the priority of any process */
 PHP_FUNCTION(pcntl_getpriority)
 {
@@ -612,7 +612,7 @@ PHP_FUNCTION(pcntl_getpriority)
 #endif
 
 #ifdef HAVE_SETPRIORITY
-/* {{{ proto bool pcntl_setpriority(int priority [, int pid [, int process_identifier]])
+/* {{{ proto bool pcntl_setpriority(int priority [, int pid [, int process_identifier]]) U
    Change the priority of any process */
 PHP_FUNCTION(pcntl_setpriority)
 {