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
|
module NetFSComms {
// Exceptions
exception SystemError {
int syserrno;
};
// Types
struct VFS {
long blockSize;
long fragmentSize;
long blocks;
long freeBlocks;
long availBlocks;
long files;
long freeFiles;
long availFiles;
long FSID;
long flags;
long maxNameLen;
};
struct Attr {
int dev;
long inode;
int mode;
int links;
int uid;
int gid;
int rdev;
long size;
long blockSize;
long blocks;
long atime;
long mtime;
long ctime;
};
sequence<byte> Buffer;
sequence<string> NameList;
// Interfaces
interface Files {
void truncate(string path, long size);
void ftruncate(int id, long size);
Attr fgetattr(int id);
void unlink(string path);
int open(string path, int flags);
int create(string path, int flags, int mode);
void close(int id);
Buffer read(int id, long offset, long size);
void write(int id, long offset, long size, Buffer data);
};
interface Dirs {
int opendir(string path) throws SystemError;
void closedir(int id) throws SystemError;
NameList readdir(int id) throws SystemError;
void mkdir(string path, int mode) throws SystemError;
void rmdir(string path) throws SystemError;
};
interface System {
VFS statfs(string path);
};
interface Misc {
int access(string path, int mode);
Attr getattr(string path);
void symlink(string path1, string path2);
void link(string path1, string path2);
void rename(string from, string to);
string readlink(string path);
void chmod(string path, int mode);
void chown(string path, int uid, int gid);
};
interface Service {
};
};
|