#ifndef _PROCESS_H #define _PROCESS_H #include #include #include #include #include #include #include int get_child_count(void); int get_parent_count(void); int get_sibling_count(void); /* Returns the number of older siblings */ int do_fork(void); int run(const char *p, char *const argv[]); int harvest_zombies(int pid); int run_piped(const char *cmd, char *const argv[], int *stdinfd, int *stdoutfd, int *stderrfd); int run_piped_stream(const char *cmd, char *const argv[], FILE **stdinf, FILE **stdoutf, FILE **stderrf); #endif