summaryrefslogtreecommitdiffstats
path: root/02_exercise/process.h
diff options
context:
space:
mode:
Diffstat (limited to '02_exercise/process.h')
-rw-r--r--02_exercise/process.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/02_exercise/process.h b/02_exercise/process.h
index 3b7e833..6e9208c 100644
--- a/02_exercise/process.h
+++ b/02_exercise/process.h
@@ -1,7 +1,8 @@
#ifndef SHELL_PROCESS_H
#define SHELL_PROCESS_H
-#include <stdbool.h>
+
#include <stddef.h>
+#include <stdbool.h>
typedef struct {
char **argv;
@@ -10,20 +11,20 @@ typedef struct {
int out_fd;
int pid;
bool blocking;
-} Process;
+} 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);
+int parse_line(char const *line, process **processes);
/*
* returns the return code of the executed program
*/
-int exec_command(Process p);
+int exec_command(process p);
-void free_processes(Process ** processes);
+void free_processes(process **processes);
#endif // SHELL_PROCESS_H