Create example userspace scheme. Remove kernel duplication of syscalls, use syscall crate instead
This commit is contained in:
parent
941fc0b494
commit
f60661820d
25 changed files with 374 additions and 414 deletions
|
@ -24,6 +24,6 @@ fn stdio() {
|
|||
/// Test that invalid reads/writes cause errors
|
||||
#[test]
|
||||
fn invalid_path() {
|
||||
assert_eq!(syscall::read(999, &mut []), Err(Error::BadFile));
|
||||
assert_eq!(syscall::write(999, &[]), Err(Error::BadFile));
|
||||
assert_eq!(syscall::read(999, &mut []), Err(Error::new(EBADF)));
|
||||
assert_eq!(syscall::write(999, &[]), Err(Error::new(EBADF)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue