1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! System calls. /// Change the data segment. See `man brk`. /// /// On success, the new program break is returned. On failure, the old program break is returned. /// /// # Note /// /// This is the `brk` **syscall**, not the library function. pub unsafe fn brk(ptr: *const u8) -> *const u8 { syscall!(BRK, ptr) as *const u8 } /// Voluntarily give a time slice to the scheduler. pub fn sched_yield() -> usize { unsafe { syscall!(SCHED_YIELD) } }