void exit_thread(void);
This syscall terminates the calling thread "immediately". Any open file descriptors belonging to the process to be closed, and any threads of execution are terminated.
This syscall does not return any value, but it sets errno on failure:
EACCES
: MAC disallowed this.