starry-kernel 0.9.0

A Linux-compatible OS kernel built on ArceOS unikernel
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::{StarryResult, task::do_exit};

pub fn sys_exit(exit_code: i32) -> StarryResult<isize> {
    do_exit(exit_code << 8, false);
    Ok(0)
}

pub fn sys_exit_group(exit_code: i32) -> StarryResult<isize> {
    do_exit(exit_code << 8, true);
    Ok(0)
}