]> git.itanic.dy.fi Git - rrdd/blob - process.h
process: Remove get_sibling_count()
[rrdd] / process.h
1 #ifndef _PROCESS_H
2 #define _PROCESS_H
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <unistd.h>
7 #include <string.h>
8 #include <sys/wait.h>
9 #include <error.h>
10 #include <errno.h>
11
12 int get_child_count(void);
13 int get_parent_count(void);
14
15 int do_fork(void);
16 int run(const char *p, char *const argv[]);
17 int harvest_zombies(int pid);
18 int run_piped(const char *cmd, char *const argv[],
19               int *stdinfd, int *stdoutfd, int *stderrfd);
20 int run_piped_stream(const char *cmd, char *const argv[],
21                      FILE **stdinf, FILE **stdoutf, FILE **stderrf);
22
23
24 #endif