#[non_exhaustive]#[repr(u16)]pub enum SyscallNum {
Show 27 variants
SysExit = 0,
SysYield = 1,
SysOpen = 2,
SysDirIterOpen = 8,
SysClose = 5,
SysDirIterClose = 9,
SysDirIterNext = 10,
SysWrite = 3,
SysRead = 4,
SysCreate = 6,
SysCreateDir = 7,
SysSync = 16,
SysTruncate = 17,
SysCtl = 12,
SysDup = 26,
SysFSize = 22,
SysFAttrs = 24,
SysGetDirEntry = 23,
SysCHDir = 14,
SysGetCWD = 15,
SysSbrk = 18,
SysPSpawn = 19,
SysWait = 11,
SysMetaTake = 25,
SysShutdown = 20,
SysReboot = 21,
SysUptime = 27,
}Expand description
defines Syscall numbers
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SysExit = 0
SysYield = 1
SysOpen = 2
SysDirIterOpen = 8
SysClose = 5
SysDirIterClose = 9
SysDirIterNext = 10
SysWrite = 3
SysRead = 4
SysCreate = 6
SysCreateDir = 7
SysSync = 16
SysTruncate = 17
SysCtl = 12
SysDup = 26
SysFSize = 22
SysFAttrs = 24
SysGetDirEntry = 23
SysCHDir = 14
SysGetCWD = 15
SysSbrk = 18
SysPSpawn = 19
SysWait = 11
SysMetaTake = 25
SysShutdown = 20
SysReboot = 21
SysUptime = 27
returns the Uptime of the system in milliseconds
Trait Implementations§
Source§impl Clone for SyscallTable
impl Clone for SyscallTable
Source§fn clone(&self) -> SyscallTable
fn clone(&self) -> SyscallTable
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyscallTable
impl Debug for SyscallTable
Source§impl PartialEq for SyscallTable
impl PartialEq for SyscallTable
Source§impl TryFrom<u16> for SyscallTable
impl TryFrom<u16> for SyscallTable
impl Copy for SyscallTable
impl Eq for SyscallTable
impl StructuralPartialEq for SyscallTable
Auto Trait Implementations§
impl Freeze for SyscallTable
impl RefUnwindSafe for SyscallTable
impl Send for SyscallTable
impl Sync for SyscallTable
impl Unpin for SyscallTable
impl UnwindSafe for SyscallTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more