-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaders.h
More file actions
61 lines (57 loc) · 1.11 KB
/
headers.h
File metadata and controls
61 lines (57 loc) · 1.11 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <pwd.h>
#include <time.h>
#include <grp.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/wait.h>
struct pid_datapoint
{
int id;
char cmd[100];
};
struct job
{
int pid;
char command[100];
int status;
int id;
};
struct job jobs[1000];
int job_seq_no;
struct job foreground_job;
char lwd[10000];
char history_data[20][1000];
int hist_len;
extern void pinfo();
extern void display();
extern void input();
extern void echo();
extern void cd();
extern void pwd();
extern void ls();
extern void sys_cmd();
extern void add_history();
extern void history();
extern void fetch_history();
extern void save_history();
extern void command_selector();
extern char * trim();
extern void redirection();
extern void piping();
extern void setenvi();
extern void unsetenvi();
extern void jobs_func();
// extern void check_job_stat();
extern void kjob();
extern void child_killed();
extern void fg();
extern void bg();
extern void overkill();
extern void signal_control();