-
Notifications
You must be signed in to change notification settings - Fork 0
/
headerfile.h
35 lines (26 loc) · 1 KB
/
headerfile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#define ARG_MAX 2048
int global_child;
char myroot[ARG_MAX];
char delimit[6];
char* process[ARG_MAX*20+1];
int run_or_stop[ARG_MAX*20+1];
int main_pid;
void sigHandler(int sig_num);
void prompt();
void individual_command(char *inp);
void fork_execute(char *argv[ARG_MAX], int argc,int bgproc);
void run_pwd (char *argv[ARG_MAX],int argc);
void run_echo (char *argv[ARG_MAX],int argc);
void run_cd (char *argv[ARG_MAX] , int argc);
void run_ls (char *argv[ARG_MAX] , int argc);
void run_pinfo (char *argv[ARG_MAX] , int argc);
void run_remindme(char *argv[ARG_MAX] , int argc);
void run_setenv (char *argv[ARG_MAX] , int argc);
void run_unsetenv(char *argv[ARG_MAX] , int argc);
void run_clock (char *argv[ARG_MAX] , int argc);
void run_jobs (char *argv[ARG_MAX] , int argc);
void run_killjob (char *argv[ARG_MAX] , int argc);
void run_overkill(char *argv[ARG_MAX] , int argc);
void run_bg (char *argv[ARG_MAX] , int argc);
void run_fg (char *argv[ARG_MAX] , int argc);
int checkstatus (int my_pid);