summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/dlinfo.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/dlinfo.3')
-rw-r--r--lib/libc/gen/dlinfo.314
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/gen/dlinfo.3 b/lib/libc/gen/dlinfo.3
index ef77e7c..9433fb6 100644
--- a/lib/libc/gen/dlinfo.3
+++ b/lib/libc/gen/dlinfo.3
@@ -193,6 +193,13 @@ argument is filled with the
pointer
.Pq Fa "char *p" .
.El
+.Sh RETURN VALUES
+The
+.Fn dlinfo
+function returns 0 on success, or \-1 if an error occurred.
+Whenever an error has been detected, a message detailing it can
+be retrieved via a call to
+.Xr dlerror 3 .
.Sh EXAMPLES
Example 1: Using
.Fn dlinfo
@@ -244,13 +251,6 @@ for (cnt = 1; cnt <= info->dls_cnt; cnt++, path++) {
(void) printf("%2d: %s\\n", cnt, path->dls_name);
}
.Ed
-.Sh RETURN VALUES
-The
-.Fn dlinfo
-function returns 0 on success, or \-1 if an error occurred.
-Whenever an error has been detected, a message detailing it can
-be retrieved via a call to
-.Xr dlerror 3 .
.Sh SEE ALSO
.Xr rtld 1 ,
.Xr dladdr 3 ,
OpenPOWER on IntegriCloud