man.bsd.lv manual page server

Manual Page Search Parameters

AT_QUICK_EXIT(3) Library Functions Manual AT_QUICK_EXIT(3)

at_quick_exitregisters a cleanup function to run on quick exit

library “libc”

#include <stdlib.h>

int
at_quick_exit(void (*func)(void));

The () function registers a cleanup function to be called when the program exits as a result of calling quick_exit(3). The cleanup functions are called in the reverse order and will not be called if the program exits by calling exit(3), _Exit(3), or abort(3).

The at_quick_exit() function returns the value 0 if successful and a non-zero value on failure.

The function is registered unless:

[]
An allocation to register the function failed.

exit(3), quick_exit(3)

The at_quick_exit() function conforms to ISO/IEC 9899:2011 (“ISO C11”).

August 9, 2012 DragonFly-5.6.1