Mock tcsetpgrp() and getpgrp() for tests.
[oweals/dinit.git] / src / includes / baseproc-sys.h
1 /*
2  * This header implements a namespace, bp_sys, which wraps various system calls used by baseproc-service.cc.
3  *
4  * When running tests, another header is substituted in place of this one. The substitute provides mocks/stubs
5  * for the functions, to avoid calling the real functions and thus allow for unit-level testing.
6  */
7
8 namespace bp_sys {
9
10 using dasynq::pipe2;
11
12 using ::fcntl;
13 using ::close;
14 using ::kill;
15 using ::getpgid;
16 using ::tcsetpgrp;
17 using ::getpgrp;
18
19 }