-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
65 lines (63 loc) · 1.15 KB
/
global.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
#include <stdio.h>
#include <sys/utsname.h>
#include <sys/resource.h>
#include <unistd.h>
#include <pwd.h>
#include <string.h>
#include <stdlib.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <grp.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <sys/wait.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define RED "\x1b[31m"
#define GREEN "\x1b[32m"
#define YELLOW "\x1b[33m"
#define BLUE "\x1b[34m"
#define MAGENTA "\x1b[35m"
#define CYAN "\x1b[36m"
#define RESET "\x1b[0m"
int i,j,k;
char a;
char pr_dir[1024];
char pwd[1024];
char modified[1024];
char arg[100][1024];
struct passwd *pw;
struct passwd *uidnm;
struct group *gidnm;
uid_t uid;
struct utsname unm;
DIR *mydir;
DIR *mydir1;
struct dirent *entry;
struct dirent *entry1;
struct stat sb1;
struct stat sb;
int tempvar;
int ampcount;
int hid;
int lng;
int ap;
char exec_path[2000];
char exec[2000];
char new_dir[2000];
char procid[20];
char line[1000];
char proc;
int chpids[100001];
int chpids_counter;
int oin;
int oout;