on_exit − register a function to be called at normal process termination
int on_exit(void (*function)(int , void *), void *arg);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
on_exit(): _BSD_SOURCE || _SVID_SOURCE
The on_exit() function registers the given function to be called at normal process termination, whether via exit(3) or via return from the program’s main(). The function is passed the status argument given to the last call to exit(3) and the arg argument from on_exit().
The same function may be registered multiple times: it is called once for each registration.
When a child process is created via fork(2), it inherits copies of its parent’s registrations. Upon a successful call to one of the exec(3) functions, all registrations are removed.
The on_exit() function returns the value 0 if successful; otherwise it returns a nonzero value.
This function comes from SunOS 4, but is also present in libc4, libc5 and glibc. It no longer occurs in Solaris (SunOS 5). Avoid this function, and use the standard atexit(3) instead.
This page is part of release 3.69 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http://www.kernel.org/doc/man−pages/.
More Linux Commands
expm1(3) - exponential minus 1 (Library - Linux man page)...
expm1(x) returns a value equivalent to exp(x) 1 It is computed in a way that is accurate even if the value of x is near zero-a case where exp(x) - 1 would be in
pthread_cleanup_push(3) - push and pop thread cancellation c
These functions manipulate the calling threads stack of thread-cancellation clean-up handlers. A clean-up handler is a function that is automatically executed w
cleanup_digikamdb(1) - Cleanup the digiKam databases to redu
cleanup_digikamdb will cleanup and optimize the digiKam database file. This will, in most cases, lead to a smaller database file size and an increased access sp
sigmask(3) - BSD signal API (Library - Linux man page)......
These functions are provided in glibc as a compatibility interface for programs that make use of the historical BSD signal API. This API is obsolete: new applic
gai.conf(5) - getaddrinfo(3) configuration file (Man Page)
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the highest success rate is f
setregid32(2) - set real and/or effective user or group ID
setreuid() sets real and effective user IDs of the calling process. Supplying a value of -1 for either the real or effective user ID forces the system to leave
Bootloader::Core::LILO(3pm) - LILO library for bootloader co
$obj_ref = Bootloader::Core::LILO->new (); Creates an instance of the Bootloader::Core::LILO class. $files_ref = Bootloader::Core::LILO->ListFiles (); Returns t
fmodl(3) - floating-point remainder function (Man Page).....
The fmod() function computes the floating-point remainder of dividing x by y. The return value is x - n * y, where n is the quotient of x / y, rounded toward ze
glPixelMap(3gl) - set up pixel transfer maps (Man Page).....
glPixelMap sets up translation tables, or maps, used by glCopyPixels, glCopyTexImage1D, glCopyTexImage2D, glCopyTexSubImage1D, glCopyTexSubImage2D, glCopyTexSub
pkttyagent(1) Textual authentication helper - Linux man page
pkttyagent is used to start a textual authentication agent for the subject specified by either --process or --system-bus-name. If neither of these options are g
tseng(4) - Tseng Labs video driver - Linux manual page......
tseng is an Xorg driver for Tseng Labs video cards. THIS MAN PAGE NEEDS TO BE FILLED IN. SUPPORTED HARDWARE The tseng driver supports... CONFIGURATION DETAILS P
waddchnstr(3ncurses) - add a string of characters (and attri
These functions copy the (null-terminated) chstr array into the window image structure starting at the current cursor position. The four functions with n as the