2001-06-12 08:54:25 +00:00
|
|
|
/*
|
|
|
|
+----------------------------------------------------------------------+
|
2004-01-08 17:33:29 +00:00
|
|
|
| PHP Version 5 |
|
2001-06-12 08:54:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2007-12-31 07:17:19 +00:00
|
|
|
| Copyright (c) 1997-2008 The PHP Group |
|
2001-06-12 08:54:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
2006-01-01 12:51:34 +00:00
|
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
2001-06-12 08:54:25 +00:00
|
|
|
| that is bundled with this package in the file LICENSE, and is |
|
2003-06-10 20:04:29 +00:00
|
|
|
| available through the world-wide-web at the following url: |
|
2006-01-01 12:51:34 +00:00
|
|
|
| http://www.php.net/license/3_01.txt |
|
2001-06-12 08:54:25 +00:00
|
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
|
|
+----------------------------------------------------------------------+
|
2002-02-28 08:29:35 +00:00
|
|
|
| Author: Jason Greene <jason@inetgurus.net> |
|
2001-06-12 08:54:25 +00:00
|
|
|
+----------------------------------------------------------------------+
|
|
|
|
*/
|
|
|
|
|
2001-07-30 20:51:57 +00:00
|
|
|
/* $Id$ */
|
|
|
|
|
2001-06-12 08:54:25 +00:00
|
|
|
#ifndef PHP_PCNTL_H
|
|
|
|
#define PHP_PCNTL_H
|
|
|
|
|
2001-07-06 05:48:52 +00:00
|
|
|
#include <sys/wait.h>
|
2001-06-12 08:54:25 +00:00
|
|
|
#include "php_signal.h"
|
2002-08-22 04:20:10 +00:00
|
|
|
#include "php_ticks.h"
|
2001-06-12 08:54:25 +00:00
|
|
|
extern zend_module_entry pcntl_module_entry;
|
|
|
|
#define phpext_pcntl_ptr &pcntl_module_entry
|
|
|
|
|
|
|
|
PHP_MINIT_FUNCTION(pcntl);
|
|
|
|
PHP_MSHUTDOWN_FUNCTION(pcntl);
|
|
|
|
PHP_RINIT_FUNCTION(pcntl);
|
|
|
|
PHP_RSHUTDOWN_FUNCTION(pcntl);
|
|
|
|
PHP_MINFO_FUNCTION(pcntl);
|
|
|
|
|
2002-06-04 15:51:25 +00:00
|
|
|
PHP_FUNCTION(pcntl_alarm);
|
2002-03-16 22:31:57 +00:00
|
|
|
PHP_FUNCTION(pcntl_fork);
|
2001-06-12 08:54:25 +00:00
|
|
|
PHP_FUNCTION(pcntl_waitpid);
|
2003-10-28 17:08:18 +00:00
|
|
|
PHP_FUNCTION(pcntl_wait);
|
2001-07-06 05:48:52 +00:00
|
|
|
PHP_FUNCTION(pcntl_wifexited);
|
|
|
|
PHP_FUNCTION(pcntl_wifstopped);
|
|
|
|
PHP_FUNCTION(pcntl_wifsignaled);
|
|
|
|
PHP_FUNCTION(pcntl_wexitstatus);
|
|
|
|
PHP_FUNCTION(pcntl_wtermsig);
|
|
|
|
PHP_FUNCTION(pcntl_wstopsig);
|
2001-06-12 08:54:25 +00:00
|
|
|
PHP_FUNCTION(pcntl_signal);
|
2001-09-30 06:59:12 +00:00
|
|
|
PHP_FUNCTION(pcntl_exec);
|
2004-08-28 12:20:06 +00:00
|
|
|
#ifdef HAVE_GETPRIORITY
|
2003-02-18 01:41:06 +00:00
|
|
|
PHP_FUNCTION(pcntl_getpriority);
|
2004-08-28 12:20:06 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SETPRIORITY
|
2003-02-18 01:41:06 +00:00
|
|
|
PHP_FUNCTION(pcntl_setpriority);
|
2004-08-28 12:20:06 +00:00
|
|
|
#endif
|
2001-06-19 21:42:57 +00:00
|
|
|
|
2005-05-07 14:58:12 +00:00
|
|
|
struct php_pcntl_pending_signal {
|
|
|
|
struct php_pcntl_pending_signal *next;
|
|
|
|
long signo;
|
|
|
|
};
|
|
|
|
|
2001-06-12 08:54:25 +00:00
|
|
|
ZEND_BEGIN_MODULE_GLOBALS(pcntl)
|
|
|
|
HashTable php_signal_table;
|
2001-06-19 21:42:57 +00:00
|
|
|
int processing_signal_queue;
|
2005-05-07 14:58:12 +00:00
|
|
|
struct php_pcntl_pending_signal *head, *tail, *spares;
|
2001-06-12 08:54:25 +00:00
|
|
|
ZEND_END_MODULE_GLOBALS(pcntl)
|
2005-05-07 14:58:12 +00:00
|
|
|
|
2001-06-12 08:54:25 +00:00
|
|
|
#ifdef ZTS
|
2001-07-30 20:51:57 +00:00
|
|
|
#define PCNTL_G(v) TSRMG(pcntl_globals_id, zend_pcntl_globals *, v)
|
2001-06-12 08:54:25 +00:00
|
|
|
#else
|
2001-07-30 20:51:57 +00:00
|
|
|
#define PCNTL_G(v) (pcntl_globals.v)
|
2001-06-12 08:54:25 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* PHP_PCNTL_H */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Local variables:
|
|
|
|
* tab-width: 4
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* indent-tabs-mode: t
|
|
|
|
* End:
|
|
|
|
*/
|