mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Rename FileDescripter to FileDesc
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5d28f29a11
commit
c2d09675b3
@ -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}",
|
||||
|
Reference in New Issue
Block a user