Noted use of atexit() to register a function that is

automatically called when a library is unloaded.
This commit is contained in:
Michael Kerrisk 2006-01-14 05:37:06 +00:00
parent bba0618959
commit 0ed29c540c
1 changed files with 5 additions and 0 deletions

View File

@ -408,6 +408,11 @@ only when _GNU_SOURCE was defined before including it.
.\" .in +5
.\" .B "const char *dlerror(void);"
.\" .in
Since glibc 2.2.3,
.BR atexit (3)
can be used to register an exit handler that is automatically
called when a library is unloaded.
.SH HISTORY
The dlopen interface standard comes from SunOS. That system also has
.BR dladdr (),