mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 19:03:27 +00:00
Rename FileDescripter to FileDesc
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5d28f29a11
commit
c2d09675b3
@ -3,7 +3,7 @@
|
||||
use super::{SyscallReturn, SYS_FTRUNCATE, SYS_TRUNCATE};
|
||||
use crate::{
|
||||
fs::{
|
||||
file_table::FileDescripter,
|
||||
file_table::FileDesc,
|
||||
fs_resolver::{FsPath, AT_FDCWD},
|
||||
utils::PATH_MAX,
|
||||
},
|
||||
@ -13,7 +13,7 @@ use crate::{
|
||||
util::read_cstring_from_user,
|
||||
};
|
||||
|
||||
pub fn sys_ftruncate(fd: FileDescripter, len: isize) -> Result<SyscallReturn> {
|
||||
pub fn sys_ftruncate(fd: FileDesc, len: isize) -> Result<SyscallReturn> {
|
||||
log_syscall_entry!(SYS_FTRUNCATE);
|
||||
debug!("fd = {}, lentgh = {}", fd, len);
|
||||
|
||||
|
Reference in New Issue
Block a user