aboutsummaryrefslogtreecommitdiff
path: root/include/system.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 09:30:07 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 09:45:04 -0500
commit4fd92ec6b203d6b94b9e9f9531fd60a65736e810 (patch)
tree2b5be989ca839bd97f55f40605e23d7019397be7 /include/system.h
parent1bec4776252cec88ec3336602c0c477c20a1292f (diff)
downloadstasis-4fd92ec6b203d6b94b9e9f9531fd60a65736e810.tar.gz
Restructure projectdelivery-lib
* Move headers to relevant include directories within the target tree(s) * Adjust doxygen configuration to search correct paths * Adjust CMake configuration to use new include paths
Diffstat (limited to 'include/system.h')
-rw-r--r--include/system.h34
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