rusl 0.5.0

Rust linux interface layer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::hint::unreachable_unchecked;

use sc::syscall;

/// Causes normal process termination and returns the least significant byte
/// of the code to the parent
#[inline]
pub fn exit(code: i32) -> ! {
    unsafe {
        syscall!(EXIT, code);
        unreachable_unchecked();
    }
}