Lines Matching refs:p
73 int process_start(char *name, char *part, process_info_t *p, int is_helper) { in process_start() argument
160 p->stdio_in = nul; in process_start()
161 p->stdio_out = file; in process_start()
162 p->process = pi.hProcess; in process_start()
163 p->name = part; in process_start()
212 long int process_output_size(process_info_t *p) { in process_output_size() argument
214 if (!GetFileSizeEx(p->stdio_out, &size)) in process_output_size()
220 int process_copy_output(process_info_t* p, FILE* stream) { in process_copy_output() argument
224 fd = _open_osfhandle((intptr_t)p->stdio_out, _O_RDONLY | _O_TEXT); in process_copy_output()
240 int process_read_last_line(process_info_t *p, in process_read_last_line() argument
250 size = GetFileSize(p->stdio_out, NULL); in process_read_last_line()
263 if (!ReadFile(p->stdio_out, buffer, buffer_len - 1, &read, &overlapped)) in process_read_last_line()
281 char* process_get_name(process_info_t *p) { in process_get_name() argument
282 return p->name; in process_get_name()
286 int process_terminate(process_info_t *p) { in process_terminate() argument
287 if (!TerminateProcess(p->process, 1)) in process_terminate()
293 int process_reap(process_info_t *p) { in process_reap() argument
295 if (!GetExitCodeProcess(p->process, &exitCode)) in process_reap()
301 void process_cleanup(process_info_t *p) { in process_cleanup() argument
302 CloseHandle(p->process); in process_cleanup()
303 CloseHandle(p->stdio_in); in process_cleanup()