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

@ -3,7 +3,7 @@
use super::{SyscallReturn, SYS_PIPE2};
use crate::{
fs::{
file_table::{FdFlags, FileDescripter},
file_table::{FdFlags, FileDesc},
pipe::{PipeReader, PipeWriter},
utils::{Channel, CreationFlags, StatusFlags},
},
@ -50,8 +50,8 @@ pub fn sys_pipe(fds: Vaddr) -> Result<SyscallReturn> {
#[derive(Debug, Clone, Copy, Pod)]
#[repr(C)]
struct PipeFds {
reader_fd: FileDescripter,
writer_fd: FileDescripter,
reader_fd: FileDesc,
writer_fd: FileDesc,
}
const PIPE_BUF_SIZE: usize = 1024 * 1024;