diff options
Diffstat (limited to 'third_party/rust/redox_syscall/src/arch/nonredox.rs')
-rw-r--r-- | third_party/rust/redox_syscall/src/arch/nonredox.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/rust/redox_syscall/src/arch/nonredox.rs b/third_party/rust/redox_syscall/src/arch/nonredox.rs new file mode 100644 index 0000000000..f99a7148cf --- /dev/null +++ b/third_party/rust/redox_syscall/src/arch/nonredox.rs @@ -0,0 +1,26 @@ +use super::error::{Error, Result, ENOSYS}; + +pub unsafe fn syscall0(_a: usize) -> Result<usize> { + Err(Error::new(ENOSYS)) +} + +pub unsafe fn syscall1(_a: usize, _b: usize) -> Result<usize> { + Err(Error::new(ENOSYS)) +} + +pub unsafe fn syscall2(_a: usize, _b: usize, _c: usize) -> Result<usize> { + Err(Error::new(ENOSYS)) +} + +pub unsafe fn syscall3(_a: usize, _b: usize, _c: usize, _d: usize) -> Result<usize> { + Err(Error::new(ENOSYS)) +} + +pub unsafe fn syscall4(_a: usize, _b: usize, _c: usize, _d: usize, _e: usize) -> Result<usize> { + Err(Error::new(ENOSYS)) +} + +pub unsafe fn syscall5(_a: usize, _b: usize, _c: usize, _d: usize, _e: usize, _f: usize) + -> Result<usize> { + Err(Error::new(ENOSYS)) +} |