mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-21 23:56:18 +04:00
Fix typo in ioctl
This commit is contained in:
parent
2a4747abaa
commit
6d14fbf3db
@ -28,7 +28,7 @@ pub const TIOCGWINSZ: usize = 0x4_008_74_68;
|
||||
#[cfg(not(target_arch = "mips"))]
|
||||
pub const FIONCLEX: usize = 0x5450;
|
||||
#[cfg(target_arch = "mips")]
|
||||
pub const FIOCLEX: usize = 0x6602;
|
||||
pub const FIONCLEX: usize = 0x6602;
|
||||
|
||||
#[cfg(not(target_arch = "mips"))]
|
||||
pub const FIOCLEX: usize = 0x5451;
|
||||
|
@ -45,9 +45,9 @@ pub fn add_user_shell() {
|
||||
let inode = ROOT_INODE.lookup(&cmdline).unwrap();
|
||||
processor().manager().add(Thread::new_user(
|
||||
&inode,
|
||||
"/busybox",
|
||||
cmdline.split(' ').map(|s| s.into()).collect(),
|
||||
Vec::new(),
|
||||
Vec::new()
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user