-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.h
65 lines (63 loc) · 1.16 KB
/
header.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
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
62
63
64
65
//header files...
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <sys/stat.h>
#include <stdbool.h>
#include <pwd.h>
#include <fcntl.h>
#include <time.h>
#include <grp.h>
#include <dirent.h>
#include <stdlib.h>
#include <stdlib.h>
#include <sys/wait.h>
#include <sys/select.h>
//colors
#define TANGO_RED "\033[0;31m"
#define TANGO_GREEN "\033[0;32m"
#define TANGO_YELLOW "\033[0;33m"
#define TANGO_BLUE "\033[0;34m"
#define TANGO_PURPLE "\033[0;35m"
#define TANGO_CYAN "\033[0;36m"
#define TANGO_WHITE "\033[0m"
//functions
void loop(); //main loop..
void print_PS1(); //print the PS1..
int cd();
void cdInit();
int pwd();
int echo();
int ls();
void assignPermissions();
int foregnd();
int backgnd();
int clear();
int pinfo();
int strToNum();
void bgProcessEnd();
void historyInit();
int printHis();
void pushHisQ();
void updateHistory();
int nightswatch();
int newBorn();
int interr();
int execCmd();
int jobs();
bool pipeChk();
int Pipe();
int unSetVar();
int setVar();
int kjob();
void getshPid();
void setChPid();
void ctrlCZinit();
void addToJobArr();
int overkill();
int killall();
int bg();
int fg();
void quit();
void overKillFlagTrue();