Skip to main content

Module os

Module os 

Source

Re-exports§

pub use crate::kernel::*;

Functions§

clone⚠
clone with its arguments in the kernel’s order
dup2⚠
dup2, by dup3: ARM64 has no dup2. dup3 refuses old == new, dup2 only looks whether old is open then
exit
fork⚠
fork, by clone with only the child’s exit signal (SIGCHLD): ARM64 has no fork
pages_alloc⚠
zeroed pages, or null
pages_free⚠
Safety
poll⚠
poll with the timeout in milliseconds (negative: none), by ppoll: ARM64 has no poll
rename⚠
rename, replacing new, by renameat2 (renameat before Linux 3.15): ARM64 has no rename
syscall3⚠
Safety
syscall6⚠
Safety
write_fd
write_fd_within
write_fd for crash paths: a non-blocking descriptor that takes nothing for wait_ms is given up (false) instead of waited for without end; true: all written or the descriptor failed
write_stderr
write_stderr_crash
stderr for crash paths, which neither allocate nor wait without end: a non-blocking stderr that takes nothing for half a second is given up for the rest of the crash. (A blocking one whose reader stopped reading still blocks, as for any program.)
write_stdout
yield_now
give the rest of the time slice to another ready thread