- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyFileSystem.h
More file actions
Latest commit
37 lines (28 loc) · 789 Bytes
/
Copy pathMyFileSystem.h
File metadata and controls
37 lines (28 loc) · 789 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
#pragma once
#ifndefMYFILESYSTEM_H_INCLUDED
#defineMYFILESYSTEM_H_INCLUDED
#include"DirectoryEntry.h"
#include"SuperBlock.h"
#include"DirectoryEntry.h"
#include"Buffer.h"
#defineNBUF 15
#defineBUFFER_SIZE 512
voidInitialize();
intStrategy(Buffer*bp, intnum);
intDevStart(Buffer*bp);
voidCopy(char*src, char*dst, intcount);
intGetbuf(intnum);
voidls();
intfopen(char*fname, intmode);
intfclose(intfd);
intfread(intfd, char*buffer, intlength);
intfwrite(intfd, char*buffer, intlength);
intcopyin(char*src, char*name);
intcopyout(char*dst, char*name);
intfcreate(char*fname, intmode);
intfdelete(char*fname);
intflseek(intfd, intposition);
inticopy(intfd);
intGetaddr(intfd, intnum);
voidLoadSuperBlock();
#endif// !1