1
0
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:
Jiajie Chen 2019-05-03 14:32:06 +08:00
parent 2a4747abaa
commit 6d14fbf3db
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ pub const TIOCGWINSZ: usize = 0x4_008_74_68;
#[cfg(not(target_arch = "mips"))] #[cfg(not(target_arch = "mips"))]
pub const FIONCLEX: usize = 0x5450; pub const FIONCLEX: usize = 0x5450;
#[cfg(target_arch = "mips")] #[cfg(target_arch = "mips")]
pub const FIOCLEX: usize = 0x6602; pub const FIONCLEX: usize = 0x6602;
#[cfg(not(target_arch = "mips"))] #[cfg(not(target_arch = "mips"))]
pub const FIOCLEX: usize = 0x5451; pub const FIOCLEX: usize = 0x5451;

View File

@ -45,9 +45,9 @@ pub fn add_user_shell() {
let inode = ROOT_INODE.lookup(&cmdline).unwrap(); let inode = ROOT_INODE.lookup(&cmdline).unwrap();
processor().manager().add(Thread::new_user( processor().manager().add(Thread::new_user(
&inode, &inode,
"/busybox",
cmdline.split(' ').map(|s| s.into()).collect(), cmdline.split(' ').map(|s| s.into()).collect(),
Vec::new(), Vec::new(),
Vec::new()
)); ));
} }