Change unreachable to enosys

This commit is contained in:
Jeremy Soller
2017-09-17 16:49:34 -06:00
parent 5839641b41
commit bec9610947

View File

@@ -74,7 +74,7 @@ pub extern fn syscall(a: usize, b: usize, c: usize, d: usize, e: usize, f: usize
SYS_CHMOD => chmod(validate_slice(b as *const u8, c)?, d as u16),
SYS_RMDIR => rmdir(validate_slice(b as *const u8, c)?),
SYS_UNLINK => unlink(validate_slice(b as *const u8, c)?),
_ => unreachable!()
_ => Err(Error::new(ENOSYS))
},
_ => match a {
SYS_YIELD => sched_yield(),