mirror of
https://github.com/google/nsjail.git
synced 2026-08-30 18:41:30 -07:00
cgroup: move to C++
This commit is contained in:
10
cgroup.h
10
cgroup.h
@@ -27,8 +27,12 @@
|
||||
|
||||
#include "nsjail.h"
|
||||
|
||||
bool cgroupInitNsFromParent(struct nsjconf_t* nsjconf, pid_t pid);
|
||||
bool cgroupInitNs(void);
|
||||
void cgroupFinishFromParent(struct nsjconf_t* nsjconf, pid_t pid);
|
||||
namespace cgroup {
|
||||
|
||||
bool initNsFromParent(struct nsjconf_t* nsjconf, pid_t pid);
|
||||
bool initNs(void);
|
||||
void finishFromParent(struct nsjconf_t* nsjconf, pid_t pid);
|
||||
|
||||
} // namespace cgroup
|
||||
|
||||
#endif /* _CGROUP_H */
|
||||
|
||||
Reference in New Issue
Block a user