Module Name: src
Committed By: christos
Date: Thu Mar 7 22:14:20 UTC 2024
Modified Files:
src/share/man/man3: Makefile dlfcn.3
Log Message:
Add _dlauxinfo
To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/share/man/man3/Makefile
cvs rdiff -u -r1.39 -r1.40 src/share/man/man3/dlfcn.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man3/Makefile
diff -u src/share/man/man3/Makefile:1.91 src/share/man/man3/Makefile:1.92
--- src/share/man/man3/Makefile:1.91 Sat Jan 22 03:58:48 2022
+++ src/share/man/man3/Makefile Thu Mar 7 17:14:20 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.91 2022/01/22 08:58:48 skrll Exp $
+# $NetBSD: Makefile,v 1.92 2024/03/07 22:14:20 christos Exp $
# @(#)Makefile 8.2 (Berkeley) 12/13/93
MAN= _DIAGASSERT.3 __CONCAT.3 __FPTRCAST.3 __UNCONST.3 __USE.3 CMSG_DATA.3 \
@@ -243,7 +243,8 @@ MLINKS+=param.3 MAX.3 \
MLINKS+=dirent.3 dir.3 \
dirent.3 IFTODT.3 \
dirent.3 DTTOIF.3
-MLINKS+=dlfcn.3 dlopen.3 dlfcn.3 dlclose.3 dlfcn.3 dlsym.3 dlfcn.3 dlctl.3 \
+MLINKS+=dlfcn.3 _dlauxinfo.3 dlfcn.3 dlopen.3 dlfcn.3 \
+ dlclose.3 dlfcn.3 dlsym.3 dlfcn.3 dlctl.3 \
dlfcn.3 dlerror.3 dlfcn.3 dladdr.3 dlfcn.3 dlvsym.3
MLINKS+=timeradd.3 timersub.3 \
timeradd.3 timerclear.3 \
Index: src/share/man/man3/dlfcn.3
diff -u src/share/man/man3/dlfcn.3:1.39 src/share/man/man3/dlfcn.3:1.40
--- src/share/man/man3/dlfcn.3:1.39 Mon Jan 13 11:01:37 2020
+++ src/share/man/man3/dlfcn.3 Thu Mar 7 17:14:20 2024
@@ -1,4 +1,4 @@
-.\" $NetBSD: dlfcn.3,v 1.39 2020/01/13 16:01:37 uwe Exp $
+.\" $NetBSD: dlfcn.3,v 1.40 2024/03/07 22:14:20 christos Exp $
.\"
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,10 +27,11 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 13, 2020
+.Dd March 7, 2024
.Dt DLFCN 3
.Os
.Sh NAME
+.Nm _dlauxinfo ,
.Nm dlopen ,
.Nm dlclose ,
.Nm dlsym ,
@@ -46,6 +47,10 @@ dynamically linked program automatically
.Sh SYNOPSIS
.In dlfcn.h
.Ft "void *"
+.Fn _dlauxinfo "void"
+.Ft "void *"
+.Fn dlopen "const char *path" "int mode"
+.Ft "void *"
.Fn dlopen "const char *path" "int mode"
.Ft "int"
.Fn dlclose "void *handle"
@@ -66,6 +71,12 @@ They allow new shared objects to be load
under program control.
.Pp
The
+.Fn _dlauxinfo
+function returns a pointer to the
+.Xr elf 5
+array of AuxInfo structures for the current executable.
+.Pp
+The
.Fn dlopen
function takes the name of a shared object as the first argument.
The