38 |
38 |
39 typedef struct SysVFSDir { |
39 typedef struct SysVFSDir { |
40 DIR *dir; |
40 DIR *dir; |
41 struct dirent *cur; |
41 struct dirent *cur; |
42 } SysVFSDir; |
42 } SysVFSDir; |
|
43 |
|
44 enum VFSAioOp { |
|
45 VFS_AIO_READ = 0, |
|
46 VFS_AIO_WRITE |
|
47 }; |
|
48 typedef enum VFSAioOp VFSAioOp; |
43 |
49 |
44 int vfs_init(); |
50 int vfs_init(); |
45 |
51 |
46 typedef int(*vfs_op_f)(VFSContext *, char *); |
52 typedef int(*vfs_op_f)(VFSContext *, char *); |
47 typedef int(*sys_op_f)(VFSContext *, char *, SysACL *); |
53 typedef int(*sys_op_f)(VFSContext *, char *, SysACL *); |
69 void sys_dir_close(VFS_DIR dir); |
75 void sys_dir_close(VFS_DIR dir); |
70 |
76 |
71 int sys_mkdir(VFSContext *ctx, char *path, SysACL *sysacl); |
77 int sys_mkdir(VFSContext *ctx, char *path, SysACL *sysacl); |
72 int sys_unlink(VFSContext *ctx, char *path, SysACL *sysacl); |
78 int sys_unlink(VFSContext *ctx, char *path, SysACL *sysacl); |
73 |
79 |
|
80 void vfs_queue_aio(aiocb_s *aiocb, VFSAioOp op); |
|
81 |
74 #ifdef __cplusplus |
82 #ifdef __cplusplus |
75 } |
83 } |
76 #endif |
84 #endif |
77 |
85 |
78 #endif /* VFS_H */ |
86 #endif /* VFS_H */ |