summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1999-04-22 01:54:38 +0000
committerjdp <jdp@FreeBSD.org>1999-04-22 01:54:38 +0000
commite206feb881b2449b788dd08966c4ee32cea05638 (patch)
tree45bafe2cb0f8177c8537709569f2cc035a17520a /lib
parent6b5c8c5794b0df9b362ef8854662a2fb79770d5d (diff)
downloadFreeBSD-src-e206feb881b2449b788dd08966c4ee32cea05638.zip
FreeBSD-src-e206feb881b2449b788dd08966c4ee32cea05638.tar.gz
Back out my change from 6 April PDT that added a new dlversion()
function. It was an ill-considered feature. It didn't solve the problem I wanted it to solve. And it added Yet Another Version Number that would have to be maintained at every release point. I'm nuking it now before anybody grows too fond of it.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/dlfcn.c15
-rw-r--r--lib/libc/gen/dlopen.319
2 files changed, 1 insertions, 33 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index 38b9553..d684fd9 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -94,14 +94,6 @@ dlsym(void *handle, const char *name)
return NULL;
}
-#pragma weak dlversion
-int
-dlversion(void)
-{
- _rtld_error(sorry);
- return 0;
-}
-
#else /* a.out format */
#include <sys/types.h>
@@ -173,11 +165,4 @@ dlsym(void *handle, const char *name)
return (__ldso_entry->dlsym)(handle, name);
}
-/* We don't support dlversion() on a.out systems. */
-int
-dlversion(void)
-{
- return 0;
-}
-
#endif /* __ELF__ */
diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3
index e56e3ae..9e848f9 100644
--- a/lib/libc/gen/dlopen.3
+++ b/lib/libc/gen/dlopen.3
@@ -34,7 +34,7 @@
.Os FreeBSD
.Dt DLOPEN 3
.Sh NAME
-.Nm dlopen, dlsym, dlerror, dlclose, dlversion
+.Nm dlopen, dlsym, dlerror, dlclose
.Nd programmatic interface to the dynamic linker
.Sh SYNOPSIS
.Fd #include <dlfcn.h>
@@ -46,8 +46,6 @@
.Fn dlerror "void"
.Ft int
.Fn dlclose "void *handle"
-.Ft int
-.Fn dlversion "void"
.Sh DESCRIPTION
These functions provide a simple programmatic interface to the services of the
dynamic linker.
@@ -221,19 +219,6 @@ The object-intrinsic functions
and
.Fn _fini
are called with no arguments, and are not expected to return values.
-.Pp
-.Fn dlversion
-returns the version number of the dynamic linker. Interpreted
-as a decimal number, the version number has the form
-.Em rrrsss .
-.Em rrr
-corresponds to the base operating system release version, e.g., 400
-for release 4.0.0.
-.Em sss
-is a serial number that increases monotonically within each release
-version. If the installed dynamic linker is too old to support
-.Fn dlversion ,
-0 is returned.
.Sh NOTES
ELF executables need to be linked
using the
@@ -249,8 +234,6 @@ and
return the null pointer in the event of errors.
.Fn dlclose
returns 0 on success, or -1 if an error occurred.
-.Fn dlversion
-returns 0 if the dynamic linker is too old to support it.
Whenever an error has been detected, a message detailing it can be
retrieved via a call to
.Fn dlerror .
OpenPOWER on IntegriCloud