-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.hpp
More file actions
65 lines (56 loc) · 1.38 KB
/
header.hpp
File metadata and controls
65 lines (56 loc) · 1.38 KB
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
#ifndef HEADER_H_INCLUDES
#define HEADER_H_INCLUDES
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <sys/types.h>
#include <sys/wait.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <cstdarg>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <glob.h>
#include <errno.h>
#include "histo.hpp"
#define EQUAL 0
#define TIRET '-'
#define SPACE ' '
#define TAB '\t'
#define POSITIF 1
#define NEGATIF -1
#define HISTORY_NAME ".msh_history"
#define HISTORY_MAX_LENGTH 2000
#define TOK_BUFSIZE 64
#define TOK_DELIM " \t\r\n\a"
#define RL_BUFSIZE 1024
/*
Function Declarations for builtin shell commands:
*/
int cd(char **);
int help(char **);
int _exit(char **);
int history(char **);
int ls(char **);
int grep(char **);
int rm(char **);
int back(char **args);
long unsigned_convertion(char *);
long convertion(char *);
std::string directory(void);
void loop(void);
std::string cat_many(int , ...);
char **split_line(char *);
char * copier(char * );
bool is_separator(char );
int num_in(char ** );
void init(void);
std::string erro_mes(char * cmd);
void regex(char ** args , int &position);
/*
List of builtin commands, followed by their corresponding functions.
*/
#endif