PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
_exit.c
Go to the documentation of this file.
1
#include <
sys/proc.h
>
2
3
#include "
user/common/exit_stack.h
"
4
#include "
user/common/file.h
"
5
#include "
user/common/syscalls.h
"
6
7
void
_exit
(
const
char
* status)
8
{
9
_exit_stack_dispatch
();
10
_files_close
();
11
_syscall_process_exit
(status);
12
}
_exit_stack_dispatch
void _exit_stack_dispatch(void)
Definition
exit_stack.c:27
exit_stack.h
_exit
void _exit(const char *status)
System call that handles pending notes for the current thread.
Definition
_exit.c:7
_files_close
void _files_close(void)
Definition
file.c:278
proc.h
file.h
syscalls.h
_syscall_process_exit
static _NORETURN void _syscall_process_exit(const char *status)
Definition
syscalls.h:89
src
libstd
user
functions
proc
_exit.c
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8