#include <assert.h>
#include <io.h>
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <limits.h>
#include <wchar.h>
#include <malloc.h>
#include "uv.h"
#include "internal.h"
#include "handle-inl.h"
#include "req-inl.h"
Go to the source code of this file.
|
#define | E_V(str) { L##str, L##str L"=", sizeof(str) } |
|
#define | SIGKILL 9 |
|
|
int | env_strncmp (const wchar_t *a, int na, const wchar_t *b) |
|
static void CALLBACK | exit_wait_callback (void *data, BOOLEAN didTimeout) |
|
static WCHAR * | find_path (WCHAR *env) |
|
int | make_program_args (char **args, int verbatim_arguments, WCHAR **dst_ptr) |
|
int | make_program_env (char *env_block[], WCHAR **dst_ptr) |
|
static WCHAR * | path_search_walk_ext (const WCHAR *dir, size_t dir_len, const WCHAR *name, size_t name_len, WCHAR *cwd, size_t cwd_len, int name_has_ext) |
|
static int | qsort_wcscmp (const void *a, const void *b) |
|
WCHAR * | quote_cmd_arg (const WCHAR *source, WCHAR *target) |
|
static WCHAR * | search_path (const WCHAR *file, WCHAR *cwd, const WCHAR *path) |
|
static WCHAR * | search_path_join_test (const WCHAR *dir, size_t dir_len, const WCHAR *name, size_t name_len, const WCHAR *ext, size_t ext_len, const WCHAR *cwd, size_t cwd_len) |
|
static void | uv__init_global_job_handle (void) |
|
static int | uv__kill (HANDLE process_handle, int signum) |
|
int | uv_kill (int pid, int signum) |
|
void | uv_process_close (uv_loop_t *loop, uv_process_t *handle) |
|
void | uv_process_endgame (uv_loop_t *loop, uv_process_t *handle) |
|
static void | uv_process_init (uv_loop_t *loop, uv_process_t *handle) |
|
int | uv_process_kill (uv_process_t *process, int signum) |
|
void | uv_process_proc_exit (uv_loop_t *loop, uv_process_t *handle) |
|
int | uv_spawn (uv_loop_t *loop, uv_process_t *process, const uv_process_options_t *options) |
|
static int | uv_utf8_to_utf16_alloc (const char *s, WCHAR **ws_ptr) |
|
◆ E_V
#define E_V |
( |
|
str | ) |
{ L##str, L##str L"=", sizeof(str) } |
◆ SIGKILL
◆ env_var_t
◆ env_strncmp()
◆ exit_wait_callback()
static void CALLBACK exit_wait_callback |
( |
void * |
data, |
|
|
BOOLEAN |
didTimeout |
|
) |
| |
|
static |
◆ find_path()
static WCHAR* find_path |
( |
WCHAR * |
env | ) |
|
|
static |
◆ make_program_args()
int make_program_args |
( |
char ** |
args, |
|
|
int |
verbatim_arguments, |
|
|
WCHAR ** |
dst_ptr |
|
) |
| |
◆ make_program_env()
int make_program_env |
( |
char * |
env_block[], |
|
|
WCHAR ** |
dst_ptr |
|
) |
| |
◆ path_search_walk_ext()
static WCHAR* path_search_walk_ext |
( |
const WCHAR * |
dir, |
|
|
size_t |
dir_len, |
|
|
const WCHAR * |
name, |
|
|
size_t |
name_len, |
|
|
WCHAR * |
cwd, |
|
|
size_t |
cwd_len, |
|
|
int |
name_has_ext |
|
) |
| |
|
static |
◆ qsort_wcscmp()
◆ quote_cmd_arg()
WCHAR* quote_cmd_arg |
( |
const WCHAR * |
source, |
|
|
WCHAR * |
target |
|
) |
| |
◆ search_path()
static WCHAR* search_path |
( |
const WCHAR * |
file, |
|
|
WCHAR * |
cwd, |
|
|
const WCHAR * |
path |
|
) |
| |
|
static |
◆ search_path_join_test()
static WCHAR* search_path_join_test |
( |
const WCHAR * |
dir, |
|
|
size_t |
dir_len, |
|
|
const WCHAR * |
name, |
|
|
size_t |
name_len, |
|
|
const WCHAR * |
ext, |
|
|
size_t |
ext_len, |
|
|
const WCHAR * |
cwd, |
|
|
size_t |
cwd_len |
|
) |
| |
|
static |
◆ uv__init_global_job_handle()
static void uv__init_global_job_handle |
( |
void |
| ) |
|
|
static |
◆ uv__kill()
static int uv__kill |
( |
HANDLE |
process_handle, |
|
|
int |
signum |
|
) |
| |
|
static |
◆ uv_kill()
◆ uv_process_close()
◆ uv_process_endgame()
◆ uv_process_init()
◆ uv_process_kill()
◆ uv_process_proc_exit()
◆ uv_spawn()
◆ uv_utf8_to_utf16_alloc()
static int uv_utf8_to_utf16_alloc |
( |
const char * |
s, |
|
|
WCHAR ** |
ws_ptr |
|
) |
| |
|
static |
◆ required_vars
◆ uv_global_job_handle_
HANDLE uv_global_job_handle_ |
|
static |
◆ uv_global_job_handle_init_guard_