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 <
stdlib.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
(
int
status)
8
{
9
_exit
(
F
(
"%d"
, status));
10
}
exit
void exit(int status)
Definition
exit.c:7
exit_stack.h
F
#define F(format,...)
Format string macro.
Definition
io.h:83
_exit
_NORETURN void _exit(const char *status)
System call that handles pending notes for the current thread.
Definition
_exit.c:7
file.h
stdlib.h
syscalls.h
src
libstd
user
functions
stdlib
exit.c
Generated on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8