-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.h
More file actions
41 lines (31 loc) · 661 Bytes
/
shell.h
File metadata and controls
41 lines (31 loc) · 661 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
#ifndef SHELL_H
#define SHELL_H
//LIBRARIES
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/wait.h>
//Macros
#define TOK_DELIM " \t\r\n\a\""
extern char **environ;
//PROTOTYPES
// main.c
void shell_interactive(void);
void shell_no_interactive(void);
// read_line.c
char *read_line(void);
// split_line.c
char **split_line(char *line);
// execute_args.c
int execute_args(char **args);
// new_process.c
int new_process(char **args);
// read_stream.c
char *read_stream(void);
//---Builtin func---
int own_cd(char **args);
int own_exit(char **args);
int own_env(char **args);
int own_help(char **args);
#endif