We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustup 1.21.1 (7832b2ebe 2019-12-20)
rustc 1.44.0-nightly (b543afca9 2020-04-05)
README.md
cargo run --release -p linux-loader /bin/busybox uname -a
rCore orz 0.1.0 1 machine Linux
Should zCore kernel have a uname starting with zCore?
zCore
The text was updated successfully, but these errors were encountered:
It seems the uname string is hard-coded:
in linux-syscall/src/misc.rs
linux-syscall/src/misc.rs
pub fn sys_uname(&self, buf: UserOutPtr<u8>) -> SysResult { info!("uname: buf={:?}", buf); let strings = ["rCore", "orz", "0.1.0", "1", "machine", "domain"]; for (i, &s) in strings.iter().enumerate() { const OFFSET: usize = 65; buf.add(i * OFFSET).write_cstring(s)?; } Ok(0) }
Sorry, something went wrong.
linux-syscall
The uname should start with Linux because some programs will check this field.
Linux
Successfully merging a pull request may close this issue.
rustup 1.21.1 (7832b2ebe 2019-12-20)
rustc 1.44.0-nightly (b543afca9 2020-04-05)
README.md
to build zCorecargo run --release -p linux-loader /bin/busybox uname -a
rCore orz 0.1.0 1 machine Linux
Should zCore kernel have a uname starting with
zCore
?The text was updated successfully, but these errors were encountered: