-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.h
More file actions
40 lines (31 loc) · 678 Bytes
/
main.h
File metadata and controls
40 lines (31 loc) · 678 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
/* **************************
* The head file of shell
* *************************/
#ifndef SHELL_HEAD_FILE
#define SHELL_HEAD_FILE
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<string.h>
#include<time.h>
#include<dirent.h>
#include<pwd.h>
#include<grp.h>
#include<sys/stat.h>
#include<sys/types.h>
#include<fcntl.h>
#define BUF_SIZE 64
#define PATH_SIZE 256
typedef struct _command_type
{
char * str; // the value of input
int size; // the length of value
}command_type;
int cds(const char * p);
int lss(const char * p);
int dates(const char * p);
int cats(const char * p);
int pwds();
int lesss(const char *p);
int cps(const char *p);
#endif