-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
42 lines (34 loc) · 893 Bytes
/
header.h
File metadata and controls
42 lines (34 loc) · 893 Bytes
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
#ifndef HEADERS_H
#define HEADERS_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <pwd.h>
#include <sys/wait.h> // For waitpid
#include <signal.h> // For signal handling
#include <sys/stat.h> // For stat()
#include <dirent.h> // For opendir(), readdir()
#include <grp.h> // For getgrgid()
#include <time.h> // For strftime()
#include <fcntl.h> // Added for I/O Redirection
#include <termios.h>
// Networking Headers for iMan
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#define COLOR_GREEN "\033[1;32m"
#define COLOR_BLUE "\033[1;34m"
#define COLOR_WHITE "\033[1;37m"
#define COLOR_RESET "\033[0m"
#define PATH_MAX 4096
#define MAX_BG 1024
typedef struct {
pid_t pid;
char name[256];
} bg_job;
extern bg_job bg_jobs[MAX_BG];
extern int bg_count;
#endif