Add support for HHBC ops with 5 immediates
[hiphop-php.git] / hphp / runtime / ext / process / ext_process.h
blob8c94477ab5cccf54527deea8269ca5ce8b73eb7c
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
18 #ifndef incl_HPHP_EXT_PROCESS_H_
19 #define incl_HPHP_EXT_PROCESS_H_
21 #include "hphp/runtime/ext/extension.h"
22 #include <sys/wait.h>
24 namespace HPHP {
25 ///////////////////////////////////////////////////////////////////////////////
27 int64_t HHVM_FUNCTION(pcntl_alarm,
28 int seconds);
29 void HHVM_FUNCTION(pcntl_exec,
30 const String& path,
31 const Array& args = null_array,
32 const Array& envs = null_array);
34 int64_t HHVM_FUNCTION(pcntl_fork);
35 Variant HHVM_FUNCTION(pcntl_getpriority,
36 int pid = 0,
37 int process_identifier = 0);
38 bool HHVM_FUNCTION(pcntl_setpriority,
39 int priority,
40 int pid = 0,
41 int process_identifier = 0);
43 bool HHVM_FUNCTION(pcntl_signal,
44 int signo,
45 const Variant& handler,
46 bool restart_syscalls = true);
47 bool HHVM_FUNCTION(pcntl_sigprocmask,
48 int how,
49 const Array& set,
50 VRefParam oldset = uninit_null());
51 int64_t HHVM_FUNCTION(pcntl_wait,
52 VRefParam status,
53 int options = 0);
54 int64_t HHVM_FUNCTION(pcntl_waitpid,
55 int pid,
56 VRefParam status,
57 int options = 0);
59 int64_t HHVM_FUNCTION(pcntl_wexitstatus,
60 int status);
62 /**
63 * Process pending signals flagged earlier.
65 bool HHVM_FUNCTION(pcntl_signal_dispatch);
67 // status querying
68 bool HHVM_FUNCTION(pcntl_wifexited,
69 int status);
70 bool HHVM_FUNCTION(pcntl_wifsignaled,
71 int status);
72 bool HHVM_FUNCTION(pcntl_wifstopped,
73 int status);
74 int64_t HHVM_FUNCTION(pcntl_wstopsig,
75 int status);
76 int64_t HHVM_FUNCTION(pcntl_wtermsig,
77 int status);
79 ///////////////////////////////////////////////////////////////////////////////
82 #endif // incl_HPHP_EXT_PROCESS_H_