diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-12-11 10:28:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 10:28:47 -0500 |
commit | 3078519379ffcdc45811431336547d7df31a24ee (patch) | |
tree | 2b5be989ca839bd97f55f40605e23d7019397be7 /include/system.h | |
parent | 456c5a481a7dabb53434a696488ac6eecb962d5b (diff) | |
parent | 4fd92ec6b203d6b94b9e9f9531fd60a65736e810 (diff) | |
download | stasis-3078519379ffcdc45811431336547d7df31a24ee.tar.gz |
Merge pull request #75 from jhunkeler/delivery-lib
Move delivery_*.c sources into their own library
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/include/system.h b/include/system.h deleted file mode 100644 index 7019b92..0000000 --- a/include/system.h +++ /dev/null @@ -1,34 +0,0 @@ -/** - * System functions - * @file system.h - */ -#ifndef STASIS_SYSTEM_H -#define STASIS_SYSTEM_H - -#include <stdio.h> -#include <stdlib.h> -#include <string.h> -#include <errno.h> -#include <unistd.h> -#include <limits.h> -#include <sys/wait.h> -#include <sys/stat.h> - -#define STASIS_SHELL_SAFE_RESTRICT ";&|()" - -struct Process { - // Write stdout stream to file - char f_stdout[PATH_MAX]; - // Write stderr stream to file - char f_stderr[PATH_MAX]; - // Combine stderr and stdout (into stdout stream) - int redirect_stderr; - // Exit code from program - int returncode; -}; - -int shell(struct Process *proc, char *args); -int shell_safe(struct Process *proc, char *args); -char *shell_output(const char *command, int *status); - -#endif //STASIS_SYSTEM_H |