From 4fd92ec6b203d6b94b9e9f9531fd60a65736e810 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 11 Dec 2024 09:30:07 -0500 Subject: Restructure project * 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 --- include/system.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 include/system.h (limited to 'include/system.h') 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 -#include -#include -#include -#include -#include -#include -#include - -#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 -- cgit