-
Notifications
You must be signed in to change notification settings - Fork 0
/
ssnfs.x
78 lines (66 loc) · 991 Bytes
/
ssnfs.x
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
struct open_input
{
char user_name[10];
char file_name[10];
};
struct open_output
{
int fd;
};
struct read_input
{
char user_name[10];
int fd;
int numbytes;
};
struct read_output
{
char out_msg<>;
};
struct write_input
{
char user_name[10];
int fd;
int numbytes;
char buffer<>;
};
struct write_output
{
char out_msg<>;
};
struct list_input
{
char user_name[10];
};
struct list_output
{
char out_msg<>;
};
struct delete_input
{
char user_name[10];
char file_name[10];
};
struct delete_output
{
char out_msg<>;
};
struct close_input
{
char user_name[10];
int fd;
};
struct close_output
{
char out_msg<>;
};
program SSNFSPROG{
version SSNFSVER{
open_output open_file(open_input) = 1;
read_output read_file(read_input) = 2;
write_output write_file(write_input) = 3;
list_output list_files(list_input) = 4;
delete_output delete_file(delete_input) = 5;
close_output close_file(close_input) = 6;
} = 1;
}=0x31110023;