-
Notifications
You must be signed in to change notification settings - Fork 0
/
headers.h
51 lines (46 loc) · 983 Bytes
/
headers.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
#ifndef ISH
#define ISH
#include <stdio.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <fcntl.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <dirent.h>
#include <pwd.h>
#include <time.h>
#include <assert.h>
#include <signal.h>
#include <termios.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#define MY_LEN 10000
#define debug 0
#define pdebug 0
extern char HomeDirectory[MY_LEN];
extern char PreviousDirectory[MY_LEN];
extern char hispath[MY_LEN];
extern char extension[MY_LEN];
extern int QUIT;
extern int errno;
extern char *bgp[MY_LEN];
extern int bgpid[MY_LEN];
extern int bexists[MY_LEN];
extern int bgpno;
extern char *fgp[MY_LEN];
extern int fgpid[MY_LEN];
extern int fexists[MY_LEN];
extern int fgpno;
extern int initSTDIN;
extern int initSTDOUT;
extern int fd1;
extern int fd2;
extern int redirread;
extern int redirwrite;
#endif