]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
dlopen.3: Clarify that constructors are called only when library is first loaded
authorMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 2 Jul 2019 13:01:20 +0000 (15:01 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 2 Jul 2019 13:01:20 +0000 (15:01 +0200)
And fix a wording error that I introduced back in 2015.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/dlopen.3

index 331d3162c492c10a50948b577fbec31f37f897e8..2a32690f7192a1d88fc861a2545b9de323a88cf2 100644 (file)
@@ -212,7 +212,7 @@ If the executable was linked with the flag "\-rdynamic"
 then the global symbols in the executable will also be used
 to resolve references in a dynamically loaded shared object.
 .PP
-If the same shared object is loaded again with
+If the same shared object is opened again with
 .BR dlopen (),
 the same object handle is returned.
 The dynamic linker maintains reference
@@ -222,7 +222,8 @@ deallocated until
 has been called on it as many times as
 .BR dlopen ()
 has succeeded on it.
-Any initialization returns (see below) are called just once.
+Constructors (see below) are called only when the library is actually loaded
+into memory (i.e., when the reference count increases to 1).
 However, a subsequent
 .BR dlopen ()
 call that loads the same shared object with