forked from ParasharaRamesh/mySimpleFilesystem
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathutility.h
More file actions
36 lines (23 loc) · 687 Bytes
/
Copy pathutility.h
File metadata and controls
36 lines (23 loc) · 687 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
#ifndef UTILITY_H
#define UTILITY_H
#include "globalConstants.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//myshell utility functions
void printSupportedCommands();
char * getCommandFromInput(char * input);
char * getOtherPartFromInput(char * input);
char ** split(char * input,int noofwords);
//filesystem utility functions
inode * getInodeFromCurrDirectory(char *name,char *type);
//filetable utility functions
void showFileTableContents();
//inode utility functions
int getSizeOfFile(inode * file);
//datablock utility functions
//superblock utility functions
void showSuperBlockStatus();
//automount utility functions
//dumpfs utility functions
#endif