-
Notifications
You must be signed in to change notification settings - Fork 0
/
myfilesystem.c
61 lines (45 loc) · 1.11 KB
/
myfilesystem.c
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
61
https://powcoder.com
代写代考加微信 powcoder
Assignment Project Exam Help
Add WeChat powcoder
#include <stdlib.h>
#include "myfilesystem.h"
void * init_fs(char * f1, char * f2, char * f3, int n_processors) {
return NULL;
}
void close_fs(void * helper) {
return;
}
int create_file(char * filename, size_t length, void * helper) {
return 0;
}
int resize_file(char * filename, size_t length, void * helper) {
return 0;
};
void repack(void * helper) {
return;
}
int delete_file(char * filename, void * helper) {
return 0;
}
int rename_file(char * oldname, char * newname, void * helper) {
return 0;
}
int read_file(char * filename, size_t offset, size_t count, void * buf, void * helper) {
return 0;
}
int write_file(char * filename, size_t offset, size_t count, void * buf, void * helper) {
return 0;
}
ssize_t file_size(char * filename, void * helper) {
return 0;
}
void fletcher(uint8_t * buf, size_t length, uint8_t * output) {
return;
}
void compute_hash_tree(void * helper) {
return;
}
void compute_hash_block(size_t block_offset, void * helper) {
return;
}