diff options
author | jdp <jdp@FreeBSD.org> | 1999-04-07 02:43:11 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-04-07 02:43:11 +0000 |
commit | fd4074472e9ad1ab43fe3c0be1485762859d7254 (patch) | |
tree | f346235f0243c542ee429cf4148837fc8c63fced /lib/libc/gen/dlfcn.c | |
parent | 7c9bf17e255d3dab0dd8586726cc51fedda0b184 (diff) | |
download | FreeBSD-src-fd4074472e9ad1ab43fe3c0be1485762859d7254.zip FreeBSD-src-fd4074472e9ad1ab43fe3c0be1485762859d7254.tar.gz |
Add a new function dlversion() which returns the version number of
the dynamic linker in the same form as __FreeBSD_version. This is
mainly intended for checking the dynamic linker version during a make
world.
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r-- | lib/libc/gen/dlfcn.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c index 79021e7..38b9553 100644 --- a/lib/libc/gen/dlfcn.c +++ b/lib/libc/gen/dlfcn.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: dlfcn.c,v 1.1 1998/02/09 06:05:24 jdp Exp $ + * $Id: dlfcn.c,v 1.2 1998/03/07 19:57:05 jdp Exp $ */ /* @@ -94,6 +94,14 @@ 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> @@ -165,4 +173,11 @@ 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__ */ |