Back to index

php5  5.3.10
php_pcntl.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | PHP Version 5                                                        |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1997-2012 The PHP Group                                |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 3.01 of the PHP license,      |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.php.net/license/3_01.txt                                  |
00011    | If you did not receive a copy of the PHP license and are unable to   |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@php.net so we can mail you a copy immediately.               |
00014    +----------------------------------------------------------------------+
00015    | Author: Jason Greene <jason@inetgurus.net>                           |
00016    +----------------------------------------------------------------------+
00017  */
00018 
00019 /* $Id: php_pcntl.h 321634 2012-01-01 13:15:04Z felipe $ */
00020 
00021 #ifndef PHP_PCNTL_H
00022 #define PHP_PCNTL_H
00023 
00024 extern zend_module_entry pcntl_module_entry;
00025 #define phpext_pcntl_ptr &pcntl_module_entry
00026 
00027 PHP_MINIT_FUNCTION(pcntl);
00028 PHP_MSHUTDOWN_FUNCTION(pcntl);
00029 PHP_RINIT_FUNCTION(pcntl);
00030 PHP_RSHUTDOWN_FUNCTION(pcntl);
00031 PHP_MINFO_FUNCTION(pcntl);
00032 
00033 PHP_FUNCTION(pcntl_alarm);
00034 PHP_FUNCTION(pcntl_fork);
00035 PHP_FUNCTION(pcntl_waitpid);
00036 PHP_FUNCTION(pcntl_wait);
00037 PHP_FUNCTION(pcntl_wifexited);
00038 PHP_FUNCTION(pcntl_wifstopped);
00039 PHP_FUNCTION(pcntl_wifsignaled);
00040 PHP_FUNCTION(pcntl_wexitstatus);
00041 PHP_FUNCTION(pcntl_wtermsig);
00042 PHP_FUNCTION(pcntl_wstopsig);
00043 PHP_FUNCTION(pcntl_signal);
00044 PHP_FUNCTION(pcntl_signal_dispatch);
00045 PHP_FUNCTION(pcntl_get_last_error);
00046 PHP_FUNCTION(pcntl_strerror);
00047 #ifdef HAVE_SIGPROCMASK
00048 PHP_FUNCTION(pcntl_sigprocmask);
00049 #endif
00050 #if HAVE_SIGWAITINFO && HAVE_SIGTIMEDWAIT
00051 PHP_FUNCTION(pcntl_sigwaitinfo);
00052 PHP_FUNCTION(pcntl_sigtimedwait);
00053 #endif
00054 PHP_FUNCTION(pcntl_exec);
00055 #ifdef HAVE_GETPRIORITY
00056 PHP_FUNCTION(pcntl_getpriority);
00057 #endif
00058 #ifdef HAVE_SETPRIORITY
00059 PHP_FUNCTION(pcntl_setpriority);
00060 #endif
00061 
00062 struct php_pcntl_pending_signal {
00063        struct php_pcntl_pending_signal *next;
00064        long signo;
00065 };
00066 
00067 ZEND_BEGIN_MODULE_GLOBALS(pcntl)
00068        HashTable php_signal_table;
00069        int processing_signal_queue;
00070        struct php_pcntl_pending_signal *head, *tail, *spares;
00071        int last_error;
00072 ZEND_END_MODULE_GLOBALS(pcntl)
00073 
00074 #ifdef ZTS
00075 #define PCNTL_G(v) TSRMG(pcntl_globals_id, zend_pcntl_globals *, v)
00076 #else
00077 #define PCNTL_G(v)   (pcntl_globals.v)
00078 #endif
00079 
00080 #define REGISTER_PCNTL_ERRNO_CONSTANT(name) REGISTER_LONG_CONSTANT("PCNTL_" #name, name, CONST_CS | CONST_PERSISTENT)
00081 
00082 #endif /* PHP_PCNTL_H */
00083 
00084 
00085 /*
00086  * Local variables:
00087  * tab-width: 4
00088  * c-basic-offset: 4
00089  * indent-tabs-mode: t
00090  * End:
00091  */