#[repr(u16)]pub enum SyscallNum {
Show 32 variants
SysPExit = 0,
SysTYield = 1,
SysOpenAll = 2,
SysOpen = 25,
SysRemovePath = 28,
SysDirIterOpen = 8,
SysDestroyResource = 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,
SysTSpawn = 29,
SysTExit = 30,
SysTSleep = 31,
SysPWait = 11,
SysTWait = 32,
SysShutdown = 20,
SysReboot = 21,
SysUptime = 27,
}Expand description
defines Syscall numbers
Variants§
SysPExit = 0
SysTYield = 1
SysOpenAll = 2
Opens a file or directory with all permissions
SysOpen = 25
Opens a file or directory with given mode (permissions and flags)
SysRemovePath = 28
Deletes a path
SysDirIterOpen = 8
SysDestroyResource = 5
Destroys (closes) an open resource whether it is a file, directory, directory iterator, or any other resource
SysDirIterClose = 9
Legacy system call to close a directory iterator, use [SysDestroy] instead
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
Spawns a process (task)
SysTSpawn = 29
Spawns a thread (context) inside the current process (task) with the given entry point
SysTExit = 30
SysTSleep = 31
SysPWait = 11
Waits for a child process with a given PID to exit
SysTWait = 32
Waits for a child thread with a given TID to exit
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 duplicate 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