diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -5,9 +5,34 @@ #include <dirent.h> #include <unistd.h> +/* BOOLEANS */ #define true 1 #define false 0 +/* SIGNALS */ +#define SIGHUP 1 /* Hang up the process */ +#define SIGINT 2 /* Interrupt the process */ +#define SIGQUIT 3 /* Quit the process */ +#define SIGILL 4 /* Illegal instruction. */ +#define SIGTRAP 5 /* Trace trap. */ +#define SIGABRT 6 /* Abort. */ + +void PIPELING(); +void COMMAND_EXECUTION(); +void REDIRECTION(); +void SCRIPTING(); + +void ERROR_QUIT(char *CURRENT_COMMAND, char *COMMAND_INSTRUCTIONS) +{ + printf("%s", ); + +} + +void err_sys(char *string) +{ + printf("%s", string); +} + void PROCESS_PID() { printf("PID %ld\n", (long)getpid()); @@ -20,7 +45,7 @@ void LIST_CURRENT_DIRECTORY(int argc, char *argv[]) if (argc != 2) err_quit("usage: ls directory_name"); if ((dp = opendir(argv[1])) == NULL) - err_sys( argv[1]); + err_sys(argv[1]); while ((dirp = readdir(dp)) != NULL) printf("%s\n", dirp->d_name); closedir(dp); |
