Rename read syscall, vfs_read and so to xxx_read_file
This commit is contained in:
@@ -354,8 +354,8 @@ DEFINE_SYSCALL (sys_volume_close) {
|
||||
return SYSRESULT (ret);
|
||||
}
|
||||
|
||||
/* int read (char* path, size_t off, uint8_t* buffer, size_t size) */
|
||||
DEFINE_SYSCALL (sys_read) {
|
||||
/* int read_file (char* path, size_t off, uint8_t* buffer, size_t size) */
|
||||
DEFINE_SYSCALL (sys_read_file) {
|
||||
uintptr_t uvaddr_path = a1;
|
||||
size_t off = (size_t)a2;
|
||||
uintptr_t uvaddr_buffer = a3;
|
||||
@@ -380,7 +380,7 @@ DEFINE_SYSCALL (sys_read) {
|
||||
return SYSRESULT (-ST_BAD_ADDRESS_SPACE);
|
||||
|
||||
spin_lock (&proc->lock);
|
||||
int ret = vfs_read (proc, proc->cwv, path, buffer, off, size);
|
||||
int ret = vfs_read_file (proc, proc->cwv, path, buffer, off, size);
|
||||
spin_unlock (&proc->lock);
|
||||
|
||||
return SYSRESULT (ret);
|
||||
@@ -478,7 +478,7 @@ static syscall_handler_func_t handler_table[] = {
|
||||
[SYS_EXEC] = &sys_exec,
|
||||
[SYS_VOLUME_OPEN] = &sys_volume_open,
|
||||
[SYS_VOLUME_CLOSE] = &sys_volume_close,
|
||||
[SYS_READ] = &sys_read,
|
||||
[SYS_READ_FILE] = &sys_read_file,
|
||||
[SYS_DESCRIBE] = &sys_describe,
|
||||
[SYS_MAIL_SEND] = &sys_mail_send,
|
||||
[SYS_MAIL_RECEIVE] = &sys_mail_receive,
|
||||
|
||||
Reference in New Issue
Block a user