-
Notifications
You must be signed in to change notification settings - Fork 0
/
myheader.h
54 lines (52 loc) · 1.21 KB
/
myheader.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
51
52
53
54
/*============================================================
@author - Rushitkumar Jasani @rollno - 2018201034
=============================================================*/
#include <bits/stdc++.h>
#include <stdio.h>
#include <dirent.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <pwd.h>
#include <grp.h>
using namespace std;
#ifndef MYHEADER_H
#define MYHEADER_H
#endif
int listdir(const char*);
void display(const char*);
void enableNCanon();
string SplitFilename(string);
void UpArrow();
void DownArrow();
void LeftArrow();
void RightArrow();
void HomeKey();
void EnterKey();
void BackspaceKey();
int command_mode();
void split_command();
void function_call();
int my_copy();
void file_copy(string, string);
void directory_copy(string, string);
void my_move();
void my_rename();
void create_file();
void create_dir();
void delete_file();
void delete_recursive(string);
void delete_dir();
void my_goto();
void my_search();
void snapshot_file(string, string);
void snapshot();
string create_absolute_path(string);
void reset_curser_top();
void update_list();
bool isDirectory(string);
int isFileExist(string);