0fd0fa814c
Post-hphpc, declaring builtins as inline is useless, which obviates the need for this layer. This doesn't fully delete the file, because I wanted to keep mindless parts and use-your-brain parts separate. This is the mindless part. The remaining functions in noinline.cpp are no-inline wrappers around (a) a function that isn't defined in an extension, call_user_func_array, and (b) calling polymorphic is_* functions, which can probably mostly go away now. But I wanted to exercise more care around those, so they'll come in a followup diff.
80 linhas
3.2 KiB
C++
80 linhas
3.2 KiB
C++
/*
|
|
+----------------------------------------------------------------------+
|
|
| HipHop for PHP |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
|
|
| Copyright (c) 1997-2010 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| http://www.php.net/license/3_01.txt |
|
|
| 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. |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
#ifndef __EXT_PROCESS_H__
|
|
#define __EXT_PROCESS_H__
|
|
|
|
#include <runtime/base/base_includes.h>
|
|
#include <sys/wait.h>
|
|
|
|
namespace HPHP {
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
int64_t f_pcntl_alarm(int seconds);
|
|
void f_pcntl_exec(CStrRef path, CArrRef args = null_array, CArrRef envs = null_array);
|
|
|
|
int64_t f_pcntl_fork();
|
|
Variant f_pcntl_getpriority(int pid = 0, int process_identifier = 0);
|
|
bool f_pcntl_setpriority(int priority, int pid = 0,
|
|
int process_identifier = 0);
|
|
|
|
bool f_pcntl_signal(int signo, CVarRef handler, bool restart_syscalls = true);
|
|
int64_t f_pcntl_wait(VRefParam status, int options = 0);
|
|
int64_t f_pcntl_waitpid(int pid, VRefParam status, int options = 0);
|
|
|
|
int64_t f_pcntl_wexitstatus(int status);
|
|
|
|
/**
|
|
* Process pending signals flagged earlier.
|
|
*/
|
|
bool f_pcntl_signal_dispatch();
|
|
|
|
// status querying
|
|
bool f_pcntl_wifexited(int status);
|
|
bool f_pcntl_wifsignaled(int status);
|
|
bool f_pcntl_wifstopped(int status);
|
|
int64_t f_pcntl_wstopsig(int status);
|
|
int64_t f_pcntl_wtermsig(int status);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
String f_shell_exec(CStrRef cmd);
|
|
String f_exec(CStrRef command, VRefParam output = uninit_null(),
|
|
VRefParam return_var = uninit_null());
|
|
void f_passthru(CStrRef command, VRefParam return_var = uninit_null());
|
|
String f_system(CStrRef command, VRefParam return_var = uninit_null());
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
Variant f_proc_open(CStrRef cmd, CArrRef descriptorspec, VRefParam pipes,
|
|
CStrRef cwd = null_string, CVarRef env = null_variant,
|
|
CVarRef other_options = null_variant);
|
|
bool f_proc_terminate(CObjRef process, int signal = 0);
|
|
int64_t f_proc_close(CObjRef process);
|
|
Array f_proc_get_status(CObjRef process);
|
|
bool f_proc_nice(int increment);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
String f_escapeshellarg(CStrRef arg);
|
|
String f_escapeshellcmd(CStrRef command);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
}
|
|
|
|
#endif // __EXT_PROCESS_H__
|