1 /* This is a generated file, edit the .stub.php file instead. 2 * Stub hash: 8742901e9b4fe5ee595a1e7c492474723f95d253 */ 3 4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0) 5 ZEND_END_ARG_INFO() 6 7 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_waitpid, 0, 2, IS_LONG, 0) 8 ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0) 9 ZEND_ARG_INFO(1, status) 10 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0") 11 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]") 12 ZEND_END_ARG_INFO() 13 14 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wait, 0, 1, IS_LONG, 0) 15 ZEND_ARG_INFO(1, status) 16 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0") 17 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, resource_usage, "[]") 18 ZEND_END_ARG_INFO() 19 20 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_signal, 0, 2, _IS_BOOL, 0) 21 ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0) 22 ZEND_ARG_INFO(0, handler) 23 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, restart_syscalls, _IS_BOOL, 0, "true") 24 ZEND_END_ARG_INFO() 25 26 ZEND_BEGIN_ARG_INFO_EX(arginfo_pcntl_signal_get_handler, 0, 0, 1) 27 ZEND_ARG_TYPE_INFO(0, signal, IS_LONG, 0) 28 ZEND_END_ARG_INFO() 29 30 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_signal_dispatch, 0, 0, _IS_BOOL, 0) 31 ZEND_END_ARG_INFO() 32 33 #if defined(HAVE_SIGPROCMASK) 34 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_sigprocmask, 0, 2, _IS_BOOL, 0) 35 ZEND_ARG_TYPE_INFO(0, mode, IS_LONG, 0) 36 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0) 37 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, old_signals, "null") 38 ZEND_END_ARG_INFO() 39 #endif 40 41 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 42 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigwaitinfo, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) 43 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0) 44 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, info, "[]") 45 ZEND_END_ARG_INFO() 46 #endif 47 48 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 49 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_sigtimedwait, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) 50 ZEND_ARG_TYPE_INFO(0, signals, IS_ARRAY, 0) 51 ZEND_ARG_INFO_WITH_DEFAULT_VALUE(1, info, "[]") 52 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, seconds, IS_LONG, 0, "0") 53 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nanoseconds, IS_LONG, 0, "0") 54 ZEND_END_ARG_INFO() 55 #endif 56 57 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifexited, 0, 1, _IS_BOOL, 0) 58 ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0) 59 ZEND_END_ARG_INFO() 60 61 #define arginfo_pcntl_wifstopped arginfo_pcntl_wifexited 62 63 #if defined(HAVE_WCONTINUED) 64 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_wifcontinued, 0, 1, _IS_BOOL, 0) 65 ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0) 66 ZEND_END_ARG_INFO() 67 #endif 68 69 #define arginfo_pcntl_wifsignaled arginfo_pcntl_wifexited 70 71 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_wexitstatus, 0, 1, MAY_BE_LONG|MAY_BE_FALSE) 72 ZEND_ARG_TYPE_INFO(0, status, IS_LONG, 0) 73 ZEND_END_ARG_INFO() 74 75 #define arginfo_pcntl_wtermsig arginfo_pcntl_wexitstatus 76 77 #define arginfo_pcntl_wstopsig arginfo_pcntl_wexitstatus 78 79 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_exec, 0, 1, _IS_BOOL, 0) 80 ZEND_ARG_TYPE_INFO(0, path, IS_STRING, 0) 81 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, args, IS_ARRAY, 0, "[]") 82 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, env_vars, IS_ARRAY, 0, "[]") 83 ZEND_END_ARG_INFO() 84 85 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_alarm, 0, 1, IS_LONG, 0) 86 ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) 87 ZEND_END_ARG_INFO() 88 89 #define arginfo_pcntl_get_last_error arginfo_pcntl_fork 90 91 #define arginfo_pcntl_errno arginfo_pcntl_fork 92 93 #if defined(HAVE_GETPRIORITY) 94 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pcntl_getpriority, 0, 0, MAY_BE_LONG|MAY_BE_FALSE) 95 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, process_id, IS_LONG, 1, "null") 96 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PRIO_PROCESS") 97 ZEND_END_ARG_INFO() 98 #endif 99 100 #if defined(HAVE_SETPRIORITY) 101 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_setpriority, 0, 1, _IS_BOOL, 0) 102 ZEND_ARG_TYPE_INFO(0, priority, IS_LONG, 0) 103 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, process_id, IS_LONG, 1, "null") 104 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, mode, IS_LONG, 0, "PRIO_PROCESS") 105 ZEND_END_ARG_INFO() 106 #endif 107 108 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_strerror, 0, 1, IS_STRING, 0) 109 ZEND_ARG_TYPE_INFO(0, error_code, IS_LONG, 0) 110 ZEND_END_ARG_INFO() 111 112 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_async_signals, 0, 0, _IS_BOOL, 0) 113 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, enable, _IS_BOOL, 1, "null") 114 ZEND_END_ARG_INFO() 115 116 #if defined(HAVE_UNSHARE) 117 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_unshare, 0, 1, _IS_BOOL, 0) 118 ZEND_ARG_TYPE_INFO(0, flags, IS_LONG, 0) 119 ZEND_END_ARG_INFO() 120 #endif 121 122 123 ZEND_FUNCTION(pcntl_fork); 124 ZEND_FUNCTION(pcntl_waitpid); 125 ZEND_FUNCTION(pcntl_wait); 126 ZEND_FUNCTION(pcntl_signal); 127 ZEND_FUNCTION(pcntl_signal_get_handler); 128 ZEND_FUNCTION(pcntl_signal_dispatch); 129 #if defined(HAVE_SIGPROCMASK) 130 ZEND_FUNCTION(pcntl_sigprocmask); 131 #endif 132 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 133 ZEND_FUNCTION(pcntl_sigwaitinfo); 134 #endif 135 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 136 ZEND_FUNCTION(pcntl_sigtimedwait); 137 #endif 138 ZEND_FUNCTION(pcntl_wifexited); 139 ZEND_FUNCTION(pcntl_wifstopped); 140 #if defined(HAVE_WCONTINUED) 141 ZEND_FUNCTION(pcntl_wifcontinued); 142 #endif 143 ZEND_FUNCTION(pcntl_wifsignaled); 144 ZEND_FUNCTION(pcntl_wexitstatus); 145 ZEND_FUNCTION(pcntl_wtermsig); 146 ZEND_FUNCTION(pcntl_wstopsig); 147 ZEND_FUNCTION(pcntl_exec); 148 ZEND_FUNCTION(pcntl_alarm); 149 ZEND_FUNCTION(pcntl_get_last_error); 150 #if defined(HAVE_GETPRIORITY) 151 ZEND_FUNCTION(pcntl_getpriority); 152 #endif 153 #if defined(HAVE_SETPRIORITY) 154 ZEND_FUNCTION(pcntl_setpriority); 155 #endif 156 ZEND_FUNCTION(pcntl_strerror); 157 ZEND_FUNCTION(pcntl_async_signals); 158 #if defined(HAVE_UNSHARE) 159 ZEND_FUNCTION(pcntl_unshare); 160 #endif 161 162 163 static const zend_function_entry ext_functions[] = { 164 ZEND_FE(pcntl_fork, arginfo_pcntl_fork) 165 ZEND_FE(pcntl_waitpid, arginfo_pcntl_waitpid) 166 ZEND_FE(pcntl_wait, arginfo_pcntl_wait) 167 ZEND_FE(pcntl_signal, arginfo_pcntl_signal) 168 ZEND_FE(pcntl_signal_get_handler, arginfo_pcntl_signal_get_handler) 169 ZEND_FE(pcntl_signal_dispatch, arginfo_pcntl_signal_dispatch) 170 #if defined(HAVE_SIGPROCMASK) 171 ZEND_FE(pcntl_sigprocmask, arginfo_pcntl_sigprocmask) 172 #endif 173 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 174 ZEND_FE(pcntl_sigwaitinfo, arginfo_pcntl_sigwaitinfo) 175 #endif 176 #if defined(HAVE_STRUCT_SIGINFO_T) && defined(HAVE_SIGWAITINFO) && defined(HAVE_SIGTIMEDWAIT) 177 ZEND_FE(pcntl_sigtimedwait, arginfo_pcntl_sigtimedwait) 178 #endif 179 ZEND_FE(pcntl_wifexited, arginfo_pcntl_wifexited) 180 ZEND_FE(pcntl_wifstopped, arginfo_pcntl_wifstopped) 181 #if defined(HAVE_WCONTINUED) 182 ZEND_FE(pcntl_wifcontinued, arginfo_pcntl_wifcontinued) 183 #endif 184 ZEND_FE(pcntl_wifsignaled, arginfo_pcntl_wifsignaled) 185 ZEND_FE(pcntl_wexitstatus, arginfo_pcntl_wexitstatus) 186 ZEND_FE(pcntl_wtermsig, arginfo_pcntl_wtermsig) 187 ZEND_FE(pcntl_wstopsig, arginfo_pcntl_wstopsig) 188 ZEND_FE(pcntl_exec, arginfo_pcntl_exec) 189 ZEND_FE(pcntl_alarm, arginfo_pcntl_alarm) 190 ZEND_FE(pcntl_get_last_error, arginfo_pcntl_get_last_error) 191 ZEND_FALIAS(pcntl_errno, pcntl_get_last_error, arginfo_pcntl_errno) 192 #if defined(HAVE_GETPRIORITY) 193 ZEND_FE(pcntl_getpriority, arginfo_pcntl_getpriority) 194 #endif 195 #if defined(HAVE_SETPRIORITY) 196 ZEND_FE(pcntl_setpriority, arginfo_pcntl_setpriority) 197 #endif 198 ZEND_FE(pcntl_strerror, arginfo_pcntl_strerror) 199 ZEND_FE(pcntl_async_signals, arginfo_pcntl_async_signals) 200 #if defined(HAVE_UNSHARE) 201 ZEND_FE(pcntl_unshare, arginfo_pcntl_unshare) 202 #endif 203 ZEND_FE_END 204 }; 205