-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.h
More file actions
38 lines (34 loc) · 745 Bytes
/
header.h
File metadata and controls
38 lines (34 loc) · 745 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
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <dirent.h>
#include <sys/stat.h>
#include <time.h>
#include <pwd.h>
#include <grp.h>
#include <fcntl.h>
#include <signal.h>
#include <errno.h>
#include <sys/utsname.h>
#include <libgen.h>
#include <termios.h>
// Clearing the shell using escape sequences
#define clear() printf("\033[H\033[J")
char tilde[1024];
char cwd[1024];
char prev_dir[1024];
char exe_part[1000];
char main_input[1000];
void prompt();
void takeinput();
void echo(char *text);
void pwd();
void cd(char *text);
void ls(char *text);
void setenvv(char *text);
void unsetenvv(char *text);
void others(char *text);
void pinfo(char *pt);