mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Rename FileDescripter to FileDesc
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5d28f29a11
commit
c2d09675b3
@ -2,11 +2,11 @@
|
||||
|
||||
use super::{SyscallReturn, SYS_SHUTDOWN};
|
||||
use crate::{
|
||||
fs::file_table::FileDescripter, log_syscall_entry, net::socket::SockShutdownCmd, prelude::*,
|
||||
fs::file_table::FileDesc, log_syscall_entry, net::socket::SockShutdownCmd, prelude::*,
|
||||
util::net::get_socket_from_fd,
|
||||
};
|
||||
|
||||
pub fn sys_shutdown(sockfd: FileDescripter, how: i32) -> Result<SyscallReturn> {
|
||||
pub fn sys_shutdown(sockfd: FileDesc, how: i32) -> Result<SyscallReturn> {
|
||||
log_syscall_entry!(SYS_SHUTDOWN);
|
||||
let shutdown_cmd = SockShutdownCmd::try_from(how)?;
|
||||
debug!("sockfd = {sockfd}, cmd = {shutdown_cmd:?}");
|
||||
|
Reference in New Issue
Block a user