-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.h
61 lines (49 loc) · 1.37 KB
/
shell.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
#ifndef SHELL_H
#define SHELL_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
#include <errno.h>
extern char **environ;
/*interactive.c*/
void interactive_mode(void);
void show_prompt(void);
/*_getline.c*/
char **_getline(void);
char **_getline_NIM(void);
/*non_interactive.c*/
void non_interactive_mode(void);
void interpeter_nim(char **command, int loop);
/*interpeter.c*/
void interpeter(char **command, int loop);
char *get_valid_exe(char *command);
int include_path(char *command);
char **path_tokenizer(void);
char *connect(char *msj1, char *msj2);
/*execute.c*/
void execute(char *command, char **args);
/*aux_strings.c*/
int _strlen(char *str);
int _strncmp(const char *s1, const char *s2, int n);
char **_strtok(char *str, char delimiter);
char *write_word(char *str, char delimiter);
int length_d(char *str, char delimiter);
/*aux_strings1.c*/
char *int_to_string(int number);
long absolute(long n);
int pot(int x, int y);
void *_calloc(unsigned int nmemb, unsigned int size);
int _strcmp(char *s1, char *s2);
/*leak_control.c*/
void free_dp(char **to_free);
void signal_handler(int signal);
void show_error(char **command, int loop);
void error_msg(char **command, int loop);
char *get_exe_name(void);
/*built_ins.c*/
int built_ins(char **command, int loop);
#endif /*SHELL_H*/