|
|
@ -2,8 +2,26 @@ |
|
|
|
#define FUN_H_INCLUDED |
|
|
|
|
|
|
|
#define MAXLINE (80) |
|
|
|
#include "fun_2.c" |
|
|
|
#include "fun_1.c" |
|
|
|
void eval(char *cmdline); |
|
|
|
void sigint_handler(); |
|
|
|
pid_t getpid(void); |
|
|
|
pid_t main_proc_pid; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int Is_pipe(char **argv); |
|
|
|
int pipe(int *fd); |
|
|
|
int Is_redirect(char **argv); |
|
|
|
void history(char *cmdline); |
|
|
|
void print_history(char *argv); |
|
|
|
int fork(); |
|
|
|
int close(int arg); |
|
|
|
int dup(int fd); |
|
|
|
int execvp(const char *, char * const *); |
|
|
|
int wait(int arg); |
|
|
|
int parseline(const char *cmdline, char **argv); |
|
|
|
int builtin_cmd(char **argv); |
|
|
|
int dup2(int fd, int arg); |
|
|
|
int chdir(const char *path ); |
|
|
|
|
|
|
|
#endif // FUN_H_INCLUDED |