-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhsh.h
50 lines (38 loc) · 984 Bytes
/
hsh.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
#ifndef SHELL_H
#define SHELL_H
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <signal.h>
#include <errno.h>
#include <fcntl.h>
#include "alias.h"
#include "builtins.h"
#include "command.h"
#include "ctype.h"
#include "dict.h"
#include "env.h"
#include "error.h"
#include "info.h"
#include "list.h"
#include "path.h"
#include "quote.h"
#include "string.h"
#include "tokens.h"
#include "types.h"
extern char **environ;
bool read_input(info_t *info);
quote_state_t _read_input(char **lineptr, int fd);
int parse(info_t *info);
int execute(info_t *info);
int _execute(info_t *info);
void expand_aliases(alias_t *aliases, char ***tokptr);
char *expand_alias(alias_t *aliases, char ***tokptr);
void expand_vars(info_t *info, char ***tokptr);
char **_expand_vars(info_t *info, char ***tokptr);
void remove_comments(cmdlist_t *cmd);
void open_script(info_t *info);
void _sigint(int signal);
#endif /* SHELL_H */