Volume-centric VFS implementation
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m41s
This commit is contained in:
@@ -39,18 +39,18 @@ int device_do (int device_id, int cmd, void* a1, void* a2, void* a3, void* a4) {
|
||||
return (int)do_syscall (SYS_DEVICE_DO, device_id, cmd, a1, a2, a3, a4);
|
||||
}
|
||||
|
||||
int exec (const char* path) { return (int)do_syscall (SYS_EXEC, path); }
|
||||
int exec (const char* volume, const char* path) { return (int)do_syscall (SYS_EXEC, volume, path); }
|
||||
|
||||
int open (const char* path) { return (int)do_syscall (SYS_OPEN, path); }
|
||||
int volume_open (const char* volume) { return (int)do_syscall (SYS_VOLUME_OPEN, volume); }
|
||||
|
||||
int close (int handle) { return (int)do_syscall (SYS_CLOSE, handle); }
|
||||
int volume_close (void) { return (int)do_syscall (SYS_VOLUME_CLOSE, 0); }
|
||||
|
||||
int read (int handle, size_t off, uint8_t* buffer, size_t size) {
|
||||
return (int)do_syscall (SYS_READ, handle, off, buffer, size);
|
||||
int read (const char* path, size_t off, uint8_t* buffer, size_t size) {
|
||||
return (int)do_syscall (SYS_READ, path, off, buffer, size);
|
||||
}
|
||||
|
||||
int describe (int handle, struct desc* desc) {
|
||||
return (int)do_syscall (SYS_DESCRIBE, handle, desc);
|
||||
int describe (const char* path, struct desc* desc) {
|
||||
return (int)do_syscall (SYS_DESCRIBE, path, desc);
|
||||
}
|
||||
|
||||
int mail_send (int pgid, void* mesg, size_t mesg_size) {
|
||||
|
||||
@@ -51,19 +51,19 @@ void* argument_ptr (void);
|
||||
int device_do (int device_id, int cmd, void* a1, void* a2, void* a3, void* a4);
|
||||
|
||||
/* Run external ELF program */
|
||||
int exec (const char* path);
|
||||
int exec (const char* volume, const char* path);
|
||||
|
||||
/* Open a file */
|
||||
int open (const char* path);
|
||||
int volume_open (const char* volume);
|
||||
|
||||
/* Close a file */
|
||||
int close (int handle);
|
||||
int volume_close (void);
|
||||
|
||||
/* Read a file */
|
||||
int read (int handle, size_t off, uint8_t* buffer, size_t size);
|
||||
int read (const char* path, size_t off, uint8_t* buffer, size_t size);
|
||||
|
||||
/* describe a file */
|
||||
int describe (int handle, struct desc* desc);
|
||||
int describe (const char* path, struct desc* desc);
|
||||
|
||||
/* send a message to a procgroup's mail */
|
||||
int mail_send (int pgid, void* mesg, size_t mesg_size);
|
||||
|
||||
Reference in New Issue
Block a user