From 65966ded0cc15c5966c6568cf0ff2f2bbe1fc29a Mon Sep 17 00:00:00 2001 From: Stefan Zabka Date: Sun, 24 May 2020 12:09:46 +0200 Subject: Big remodelling --- 02_exercise/process.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 02_exercise/process.h (limited to '02_exercise/process.h') diff --git a/02_exercise/process.h b/02_exercise/process.h deleted file mode 100644 index 3b7e833..0000000 --- a/02_exercise/process.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef SHELL_PROCESS_H -#define SHELL_PROCESS_H -#include -#include - -typedef struct { - char **argv; - size_t argc; - int in_fd; - int out_fd; - int pid; - bool blocking; -} Process; - -/* - * Parses the given line and creates an array of processes at *processes - * Expects tail -F file | grep panic & to mean that both processes should - * run in the background - */ -int parse_line(char const *line, Process ** processes); - -/* - * returns the return code of the executed program - */ -int exec_command(Process p); - -void free_processes(Process ** processes); - -#endif // SHELL_PROCESS_H -- cgit v1.2.3-54-g00ecf