-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmyshell.h
More file actions
45 lines (39 loc) · 761 Bytes
/
myshell.h
File metadata and controls
45 lines (39 loc) · 761 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
42
43
44
45
/*
* myshell.h
*
* Created on: 2017-7-17
* Author: c
*/
#ifndef MYSHELL_H_
#define MYSHELL_H_
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>
#include <sys/wait.h>
#include <time.h>
#include <sys/time.h>
#include <sys/times.h>
#include <signal.h>
#include <sys/stat.h>
#include <dirent.h>
#include <fcntl.h>
#include <getopt.h>
#include <limits.h>
#include <utime.h>
// #include "my_ls.h"
#include <sys/ioctl.h>
#include <termios.h>
#include <errno.h>
#define MAXLINE 128
#define MAXSIZE 1024
sigset_t son_set;
struct sigaction pact;
void sig_handler(int);
char* get_display_path();
char** read_command();
void execute(char**);
void init();
#endif /* MYSHELL_H_ */