-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheaders.h
More file actions
82 lines (62 loc) · 1.76 KB
/
Copy pathheaders.h
File metadata and controls
82 lines (62 loc) · 1.76 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#include <stdio.h> // fflush(), perror(), sprintf()
#include <stdlib.h> // calloc(), malloc()
#include <string.h> // strtok(), strstr(), strlen()
#include <time.h>
#include <unistd.h> // system calls: open(), read(), write(), lseek(), gethostname()
#include <fcntl.h> // use of flags O_CREAT, SEEK_SET, etc.
#include <sys/stat.h> // mkdir(), stat(), _exit()
#include <sys/types.h>
#include <sys/wait.h> // wait()
#include <sys/utsname.h> // uname()
#include <pwd.h>
#include <grp.h>
#include <errno.h>
#include <dirent.h>
#include <signal.h>
#include <limits.h>
// Function Headfiles
#include "core/prompt.h"
#include "core/execute.h"
#include "core/parse.h"
#include "builtins/cd.h"
#include "builtins/pwd.h"
#include "builtins/echo.h"
#include "builtins/ls.h"
#include "builtins/pinfo.h"
#include "builtins/history.h"
#include "builtins/repeat.h"
#include "builtins/jobs.h"
#include "builtins/sig.h"
#include "builtins/fg.h"
#include "builtins/bg.h"
#include "io/redirect.h"
#include "io/piped_command.h"
#include "process/list.h"
#include "signals/handler1.h"
#include "signals/handler2.h"
#include "signals/handler3.h"
#include "utils/read_details.h"
#include "utils/pinfo2.h"
// colors
#define ANSI_COLOR_RED "\x1b[31m"
#define ANSI_COLOR_GREEN "\x1b[32m"
#define ANSI_COLOR_YELLOW "\x1b[33m"
#define ANSI_COLOR_BLUE "\x1b[34m"
#define ANSI_COLOR_MAGENTA "\x1b[35m"
#define ANSI_COLOR_CYAN "\x1b[36m"
#define ANSI_COLOR_RESET "\x1b[0m"
// extern variables
extern int errno;
extern int const_size;
extern char* root_dir;
extern char* prev_dir;
extern char* curr_dir;
extern char* RED;
extern char* NC;
extern struct Node* head;
extern char* hist_v[20];
extern int hist_c;
extern int standard_input;
extern int stadard_output;
extern int fg_pid;
extern char* fg_name;