aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.h')
-rw-r--r--cmd.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/cmd.h b/cmd.h
index ce1d44c..7364936 100644
--- a/cmd.h
+++ b/cmd.h
@@ -30,16 +30,19 @@ typedef struct Command {
30 bool background; 30 bool background;
31} Command; 31} Command;
32 32
33extern char hostname[100];
34extern char *username;
35extern char pwd[100];
36
33void showPrompt(); 37void showPrompt();
34Command *newCmd(); 38void argInsert(struct Command *cmd, char *s, bool isStr);
35 39
40Command *newCmd();
41void freeCmd(Command *cmd);
36int runCmd(Command *cmd); 42int runCmd(Command *cmd);
37int runNormalCmd(Command *cmd); 43int runNormalCmd(Command *cmd);
38int runPipeCmd(Command *cmd); 44int runPipeCmd(Command *cmd);
39int runAndOrCmd(Command *cmd); 45int runAndOrCmd(Command *cmd);
40
41void freeCmd(Command *cmd);
42
43void redirect(Command *cur); 46void redirect(Command *cur);
44 47
45#endif \ No newline at end of file 48#endif \ No newline at end of file