From c8b5891a0ad2e7b722f0ed5067eeb708314dde6e Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Thu, 27 Apr 2006 15:21:00 +0000 Subject: [PATCH] Safe-fy some functions. --- ext/pcntl/pcntl.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 401ae889ea..a0cc21332e 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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) { -- 2.40.0