Rename FileDescripter to FileDesc

This commit is contained in:
Fabing Li
2024-05-08 20:01:11 +08:00
committed by Tate, Hongliang Tian
parent 5d28f29a11
commit c2d09675b3
50 changed files with 149 additions and 205 deletions

View File

@ -2,18 +2,13 @@
use super::{SyscallReturn, SYS_PREAD64};
use crate::{
fs::{file_table::FileDescripter, utils::SeekFrom},
fs::{file_table::FileDesc, utils::SeekFrom},
log_syscall_entry,
prelude::*,
util::write_bytes_to_user,
};
pub fn sys_pread64(
fd: FileDescripter,
buf_ptr: Vaddr,
count: usize,
pos: i64,
) -> Result<SyscallReturn> {
pub fn sys_pread64(fd: FileDesc, buf_ptr: Vaddr, count: usize, pos: i64) -> Result<SyscallReturn> {
log_syscall_entry!(SYS_PREAD64);
debug!(
"fd = {}, buf = 0x{:x}, count = 0x{:x}, pos = 0x{:x}",