forked from kcdon/File-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmds.h
More file actions
executable file
·60 lines (46 loc) · 958 Bytes
/
cmds.h
File metadata and controls
executable file
·60 lines (46 loc) · 958 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef _CMDS_H_
#define _CMDS_H_
/**
* I pledge my honor that I have abided by the Stevens Honor System.
* Christopher Hittner
* James Romph
*/
typedef int (*SimCmd)(char**);
char** str_to_vec(char*, char);
void free_str_vec(char**);
void mergesort_longs(long*, int, int);
/**
* Executes a command in the file system.
*/
void cmd_exec(char *argv[]);
/**
* Modifies the working directory.
*/
int cmd_cd(char *argv[]);
int cmd_ls(char *argv[]);
/**
* File/directory creators.
*/
int cmd_mkdir(char *argv[]);
int cmd_create(char *argv[]);
/**
* Modifying the size of a file.
*/
int cmd_append(char *argv[]);
int cmd_remove(char *argv[]);
int cmd_delete(char *argv[]);
/**
* Terminate program.
*/
int cmd_exit(char *argv[]);
/**
* Breadth-first print of file structure.
*/
int cmd_dir(char *argv[]);
/**
* Print file/disk info.
*/
int cmd_prfiles(char *argv[]);
int cmd_prdisk(char *argv[]);
int cmd_defrag(char *argv[]);
#endif