9.3 exit

void exit(uint64_t status);

This syscall terminates the calling process "immediately". Any open file descriptors belonging to the process to be closed, and any threads of execution are terminated. SIGCHLD will be sent to the parent if any.

This syscall does not return any value, but it sets errno on failure: