Go to the documentation of this file.
43 #ifndef CCXX_PROCESS_H_
44 #define CCXX_PROCESS_H_
46 #ifndef CCXX_CONFIG_H_
50 #ifndef CCXX_THREAD_H_
54 #ifdef CCXX_NAMESPACES
82 static void detach(
void);
91 static void attach(
const char *devname);
100 static Trap setPosixSignal(
int signo, Trap handler);
109 static Trap setInterruptSignal(
int signo, Trap handler);
119 bool lock(
bool future =
true);
143 static int spawn(
const char *exec,
const char **argv,
bool wait =
true);
152 static int join(
int pid);
161 static bool cancel(
int pid,
int sig = 0);
169 static const char *getEnv(
const char *name);
178 static void setEnv(
const char *name,
const char *value,
bool overwrite);
185 static const char *getConfigDir(
void);
192 static const char *getHomeDir(
void);
199 static const char *getUser(
void);
206 static bool setUser(
const char *
id,
bool grp =
true);
213 static bool setGroup(
const char *
id);
220 static size_t getPageSize(
void);
225 static void setPriority(
int pri);
230 static void setScheduler(
const char *policy);
235 static void setRealtime(
int pri = 0);
240 static bool isScheduler(
void);
245 static inline bool isRealtime(
void)
295 bool lock(
const char *name);
310 #ifdef CCXX_NAMESPACES