11 #ifndef TOR_PROCESS_UNIX_H
12 #define TOR_PROCESS_UNIX_H
19 #include <event2/event.h>
28 #define process_unix_free(s) \
29 FREE_AND_NULL(process_unix_t, process_unix_free_, (s))
40 #ifdef PROCESS_UNIX_PRIVATE
59 event_callback_fn callback);
Headers for util_malloc.c.
STATIC void stdin_write_callback(evutil_socket_t fd, short event, void *data)
STATIC void process_unix_setup_handle(process_t *process, process_unix_handle_t *handle, short flags, event_callback_fn callback)
STATIC void stdout_read_callback(evutil_socket_t fd, short event, void *data)
STATIC void process_unix_start_writing(process_unix_handle_t *handle)
STATIC void process_unix_stop_reading(process_unix_handle_t *handle)
STATIC void stderr_read_callback(evutil_socket_t fd, short event, void *data)
STATIC void process_unix_waitpid_callback(int status, void *data)
STATIC void process_unix_start_reading(process_unix_handle_t *handle)
STATIC int process_unix_read_handle(process_t *process, process_unix_handle_t *handle, buf_t *buffer)
STATIC void process_unix_stop_writing(process_unix_handle_t *handle)
STATIC bool process_unix_close_file_descriptors(process_unix_t *unix_process)
int process_unix_read_stdout(struct process_t *process, buf_t *buffer)
process_pid_t process_unix_get_pid(struct process_t *process)
process_status_t process_unix_exec(struct process_t *process)
int process_unix_read_stderr(struct process_t *process, buf_t *buffer)
int process_unix_write(struct process_t *process, buf_t *buffer)
void process_unix_free_(process_unix_t *unix_process)
process_unix_t * process_unix_new(void)
bool process_unix_terminate(struct process_t *process)