You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
639 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #ifndef FUN_H_INCLUDED
  2. #define FUN_H_INCLUDED
  3. #define MAXLINE (80)
  4. void eval(char *cmdline);
  5. void sigint_handler();
  6. pid_t getpid(void);
  7. pid_t main_proc_pid;
  8. int Is_pipe(char **argv);
  9. int pipe(int *fd);
  10. int Is_redirect(char **argv);
  11. void history(char *cmdline);
  12. void print_history(char *argv);
  13. void mytop();
  14. int fork();
  15. int close(int arg);
  16. int dup(int fd);
  17. int execvp(const char *, char * const *);
  18. int wait(int arg);
  19. int parseline(const char *cmdline, char **argv);
  20. int builtin_cmd(char **argv);
  21. int dup2(int fd, int arg);
  22. int chdir(const char *path );
  23. #include "fun_1.h"
  24. #include "fun_2.h"
  25. #include "mytop.h"
  26. #endif // FUN_H_INCLUDED