PatchworkOS
19e446b
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
exits
(
F
(
"%d"
, status));
10
}
exit
void exit(int status)
Definition
exit.c:7
exit_stack.h
F
#define F(format,...)
Allocates a formatted string on the stack.
Definition
fs.h:67
exits
_NORETURN void exits(const char *status)
System call that handles pending notes for the current thread.
Definition
proc_exit.c:7
file.h
stdlib.h
syscalls.h
src
libstd
user
functions
stdlib
exit.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8