-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
46 lines (39 loc) · 856 Bytes
/
header.h
File metadata and controls
46 lines (39 loc) · 856 Bytes
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
#include<stdio.h>
#include<string.h>
#include<unistd.h>
#include<stdlib.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<pwd.h>
typedef struct running_jobs{
char jobName[100];
pid_t pid;
struct running_jobs *next;
}running_jobs;
int main(int argc, char **argv);
void displayprompt();
void loop(void);
void getdirectory();
//builtin functions
int cd(char **args);
int pwd(char **args);
int echo(char **args);
int pinfo(char **args);
int jobs();
int fg(char **args);
int killallbg();
int quit();
int kjob(char **args);
int execute(char **args);
int commandRun(char **args);
char *read_line(void);
char **split_line(char *line);
int split_command(char* line);
void sig_chld(int signo);
int launch(char **args);
int add_job(pid_t pid,char * jobName);
int delete_job(pid_t pid);
void ctrlC();
void ctrlD();