-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.h
70 lines (62 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
66
67
68
69
70
#include<grp.h>
#include<time.h>
#include<dirent.h>
#include<string.h>
#include<fcntl.h>
#include<math.h>
#include<signal.h>
#include<setjmp.h>
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/utsname.h>
#include<sys/stat.h>
#include<sys/socket.h>
#include<netdb.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<pwd.h>
#define KBLU "\x1B[34m"
#define KGRN "\x1B[32m"
#define KWHT "\x1B[37m"
int calculater(char *arr,int l);
void fz(char *sz,long int val);
char inp[10005];
char cwd[1024];
char *input2[1024];
char input[1005][1005];
char pwd[1024];
char paths[1023]={'\0'};
int cnt=0,len=0;
int in;
int out;
int pname=0;
int calculater(char *arr,int l){
int i,val=0,count=0,pwr=1;;
for (i = l-2; i>=0; i--) {
val+=(arr[i]-'0')*pwr;
pwr*=10;
}
return val;
}
void fz(char *sz,long int val){
if (val == 0)
return ;
len--;
fz(sz,val/10);
int x=val%10;
sz[++len]=x+48;
}
sigjmp_buf ctrlc_buf;
#include "errhandler.h"
#include "echo.h"
#include "pinfo.h"
#include "cd.h"
#include "execute.h"
#include "ls.h"
#include "jobs.h"
#include "fgbg.h"
#include "overkill.h"
#include "kjob.h"
#include "verifycmd.h"
#include "pipeslin.h"