X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=man3%2Fexit.3;h=4d9860ee7abf5c3c04b139cc1c67fe8f2e0a9350;hp=ac8ae99403bcf842a0718c77db5e7b94c5613ec3;hb=4a3ef8e66ad07656caa1e6a2bc69823926b880e3;hpb=b5b6c4a890795ea76f9b92b817b0a83c6bb4862c diff --git a/man3/exit.3 b/man3/exit.3 index ac8ae99..4d9860e 100644 --- a/man3/exit.3 +++ b/man3/exit.3 @@ -4,17 +4,17 @@ .Dd .Dt exit 3 .Os - +.\" .Sh NAME .Nm exit .Nd terminates the process - +.\" .Sh SYNOPSIS .In stdlib.h .Fn "noreturn void exit" "int status" .Fn "noreturn void quick_exit" "int status" .Fn "noreturn void _Exit" "int exitcode" - +.\" .Sh DESCRIPTION Calling any of these three functions terminates the current process, returning the exit code passed as a parameter. The interpretation of the exit code is @@ -23,7 +23,7 @@ undefined, except that 0 or shall indicate successful completion and .Dv EXIT_FAILURE shall indicate a non-successful completion. - +.\" .Pp .Fn exit first destroys all objects with C++ thread local storage duration (the C @@ -43,7 +43,7 @@ particular that functions registered with are .Sy not called. - +.\" .Pp .Fn quick_exit invokes any functions registered with @@ -53,7 +53,7 @@ environment by calling .Fn _Exit . No signal handlers are called, nor are any functions registered with .Fn atexit . - +.\" .Pp .Fn _Exit returns control to the controlling environment without invoking any functions @@ -64,7 +64,7 @@ any signal handlers, or the destructors of any thread local objects or C++ objects of static storage duration. Whether or not any open .Vt FILE streams with unwritten data are flushed or not is undefined. - +.\" .Pp The result of aborting a call to .Fn exit @@ -79,7 +79,7 @@ or should throw, .Fn std::terminate is invoked. - +.\" .Pp Undefined behaviour results if, while a call to .Fn exit @@ -90,7 +90,7 @@ is in progress, a call to or .Fn quick_exit is made. - +.\" .Sh IMPLEMENTATION NOTES PDCLib implements the process of flushing streams in .Fn _Exit , @@ -99,12 +99,12 @@ and therefore calls it after all .Fn atexit handlers have been invoked. - +.\" .Sh SEE ALSO .Xr abort 3 .Xr atexit 3 .Xr at_quick_exit 3 - +.\" .Sh STANDARDS .Fn exit is first defined in