4 // Mock system functions for testing.
8 int pipe2(int pipefd[2], int flags);
11 inline int fcntl(int fd, int cmd, ...)
13 // This is used for setting the CLOEXEC flag, we can just return 0:
17 inline int kill(pid_t pid, int sig)
19 // No proper mock implemented yet:
20 std::cout << "(kill; aborting)" << std::endl;
25 inline pid_t getpgid(pid_t pid)