.Dd\r
.Dt exit 3\r
.Os\r
-\r
+.\"\r
.Sh NAME\r
.Nm exit\r
.Nd terminates the process\r
-\r
+.\"\r
.Sh SYNOPSIS\r
.In stdlib.h\r
.Fn "noreturn void exit" "int status"\r
.Fn "noreturn void quick_exit" "int status"\r
.Fn "noreturn void _Exit" "int exitcode"\r
-\r
+.\"\r
.Sh DESCRIPTION\r
Calling any of these three functions terminates the current process, returning \r
the exit code passed as a parameter. The interpretation of the exit code is \r
shall indicate successful completion and\r
.Dv EXIT_FAILURE\r
shall indicate a non-successful completion.\r
-\r
+.\"\r
.Pp\r
.Fn exit\r
first destroys all objects with C++ thread local storage duration (the C \r
are\r
.Sy not\r
called.\r
-\r
+.\"\r
.Pp\r
.Fn quick_exit\r
invokes any functions registered with\r
.Fn _Exit .\r
No signal handlers are called, nor are any functions registered with\r
.Fn atexit .\r
-\r
+.\"\r
.Pp\r
.Fn _Exit\r
returns control to the controlling environment without invoking any functions\r
objects of static storage duration. Whether or not any open \r
.Vt FILE\r
streams with unwritten data are flushed or not is undefined.\r
-\r
+.\"\r
.Pp\r
The result of aborting a call to \r
.Fn exit\r
should throw, \r
.Fn std::terminate\r
is invoked.\r
-\r
+.\"\r
.Pp\r
Undefined behaviour results if, while a call to\r
.Fn exit\r
or\r
.Fn quick_exit\r
is made. \r
-\r
+.\"\r
.Sh IMPLEMENTATION NOTES\r
PDCLib implements the process of flushing streams in\r
.Fn _Exit ,\r
calls it after all\r
.Fn atexit\r
handlers have been invoked.\r
-\r
+.\"\r
.Sh SEE ALSO\r
.Xr abort 3\r
.Xr atexit 3\r
.Xr at_quick_exit 3\r
-\r
+.\"\r
.Sh STANDARDS\r
.Fn exit\r
is first defined in\r