4#ifndef RUDIMENTS_PROCESS_H
5#define RUDIMENTS_PROCESS_H
7#include <rudiments/private/processincludes.h>
10 EXIT_CHILDSTATECHANGE=0,
11 TERMINATED_CHILDSTATECHANGE,
12 STOPPED_CHILDSTATECHANGE,
13 CONTINUED_CHILDSTATECHANGE
186 const char *
const *
args);
199 const char *
const *
args,
525 #include <rudiments/private/process.h>
Definition permissions.h:28
static bool setEffectiveUser(const char *username)
static int32_t getShutDownSignal()
static bool registerExitHandler(void(*handler)(void))
static pid_t getProcessGroupId(pid_t pid)
static pid_t createNewSession()
static bool exec(const char *command, const char *const *args)
static bool setEffectiveUserId(uid_t uid)
static void exitImmediately(int32_t status)
static pid_t getSessionId()
static bool setUserId(uid_t uid)
static void writeBacktrace(output *out)
static bool setRealAndEffectiveGroupId(gid_t gid, gid_t egid)
static bool setEffectiveGroup(const char *groupname)
static bool setUser(const char *username)
static void setShutDownSignal(int32_t signum)
static gid_t getGroupId()
static signalhandler * getShutDownSignalHandler()
static gid_t getEffectiveGroupId()
static pid_t getSessionId(pid_t pid)
static void exitOnCrash()
static void setRetryFailedFork(bool retry)
static bool setGroupId(gid_t gid)
static bool setProcessGroupId(pid_t pid, pid_t pgid)
static pid_t getChildStateChange(pid_t pid, bool wait, bool ignorestop, bool ignorecontinue, childstatechange *newstate, int32_t *exitstatus, int32_t *signum, bool *coredump)
static void setShutDownHandler(void(*shutdownhandler)(int32_t))
static void setWaitForChildren(bool wait)
static void writeBacktrace(const char *filename, mode_t perms, uint32_t maxframes)
static signalhandler * getCrashSignalHandler()
static bool setEffectiveGroupId(gid_t gid)
static bool supportsFork()
static bool wait(pid_t pid)
static bool setGroup(const char *groupname)
static void writeBacktrace(const char *filename)
static void exit(int32_t status)
static pid_t getParentProcessId()
static void setShutDownFlagOnCrash()
static void writeBacktrace(output *out, uint32_t maxframes)
static bool setProcessGroupId(pid_t pgid)
static pid_t spawn(const char *command, const char *const *args, bool detached)
static void exitOnCrashOrShutDown()
static void setShutDownFlagOnShutDown()
static uid_t getEffectiveUserId()
static bool setProcessGroupId()
static bool sendSignal(pid_t processid, int32_t signum)
static int64_t checkForPidFile(const char *filename)
static bool getRetryFailedFork()
static bool setRealAndEffectiveUserId(uid_t uid, uid_t euid)
static bool raiseSignal(int32_t signum)
static bool wait(pid_t pid, int32_t *exitstatus)
static pid_t getProcessGroupId()
static bool supportsGetChildStateChange()
static void exitOnShutDown()
static bool getShutDownFlag()
static bool createPidFile(const char *filename, mode_t permissions)
static void setShutDownFlagOnCrashOrShutDown()
static void setShutDownFlag(bool shutdownflag)
static pid_t getProcessId()
static mode_t setFileCreationMask(mode_t mask)
static void setCrashHandler(void(*crashhandler)(int32_t))
Definition signalclasses.h:89