From 17178535cc9df5e834dfd43e3b2b919e02e5798d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 26 Oct 2023 19:53:29 -0400 Subject: Initial commit --- include/system.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/system.h (limited to 'include/system.h') diff --git a/include/system.h b/include/system.h new file mode 100644 index 0000000..a922c69 --- /dev/null +++ b/include/system.h @@ -0,0 +1,28 @@ +// +// Created by jhunk on 10/4/23. +// + +#ifndef OHMYCAL_SYSTEM_H +#define OHMYCAL_SYSTEM_H + +#include +#include +#include +#include +#include +#include +#include +#include + +struct Process { + char stdout[PATH_MAX]; + char stderr[PATH_MAX]; + int redirect_stderr; + int returncode; +}; + +int shell(struct Process *proc, char *args[]); +int shell2(struct Process *proc, char *args); +int shell_safe(struct Process *proc, char *args[]); + +#endif //OHMYCAL_SYSTEM_H -- cgit