Каталог требований LSB Core 3.1

Требования для функции '__cxa_atexit'
StandardIDDescription
SUSv3__cxa_atexit.07.01 Upon successful completion, atexit() shall return 0
SUSv3__cxa_atexit.07.02 otherwise, it shall return a non-zero value
LSB__cxa_atexit.01 As described in the Itanium C++ ABI, __cxa_atexit() registers a destructor function to be called by exit() or when a shared library is unloaded.
LSB__cxa_atexit.02 When a shared library is unloaded, any destructor function associated with that shared library, identified by dso_handle, shall be called with the single argument arg, and then that function shall be removed, or marked as complete, from the list of functions to run at exit().
LSB__cxa_atexit.03 On a call to exit(), any remaining functions registered shall be called with the single argument arg.
LSB__cxa_atexit.04 Destructor functions shall always be called in the reverse order to their registration (i.e. the most recently registered function shall be called first),
LSB__cxa_atexit.05 The __cxa_atexit() function is used to implement atexit(), as described in ISO POSIX (2003).
LSB__cxa_atexit.06 Calling atexit(func) from the statically linked part of an application shall be equivalent to __cxa_atexit(func, NULL, NULL).
The text in the Description column of SUSv3 requirements is reproduced from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html