diff options
| author | John Polstra <jdp@FreeBSD.org> | 1999-04-07 02:43:11 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1999-04-07 02:43:11 +0000 |
| commit | 14f5fa0596e0036d478bfa9a560e7d14ba6091e0 (patch) | |
| tree | ec7f016d0db8c362aba356cb806671bf3b533ad5 /libexec | |
| parent | b2e2337ba1ba2558fdbedb475102d80b259e422f (diff) | |
Notes
Diffstat (limited to 'libexec')
| -rw-r--r-- | libexec/rtld-elf/rtld.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/libexec/rtld-elf/rtld.c b/libexec/rtld-elf/rtld.c index f5bad8344e56..dc2c83b973ac 100644 --- a/libexec/rtld-elf/rtld.c +++ b/libexec/rtld-elf/rtld.c @@ -22,7 +22,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.16 1999/04/04 06:01:09 peter Exp $ + * $Id: rtld.c,v 1.17 1999/04/05 02:36:40 jdp Exp $ */ /* @@ -52,6 +52,14 @@ #include "rtld.h" /* + * Version number queried by dlversion(). The first 3 digits represent + * the base FreeBSD release. The last 3 digits are a serial number. + * Increase this when you fix a significant bug or add a significant + * feature. + */ +#define DL_VERSION 400001 + +/* * Debugging support. */ @@ -152,6 +160,7 @@ static func_ptr_type exports[] = { (func_ptr_type) &dlopen, (func_ptr_type) &dlsym, (func_ptr_type) &dladdr, + (func_ptr_type) &dlversion, NULL }; @@ -1273,6 +1282,12 @@ dlsym(void *handle, const char *name) } int +dlversion(void) +{ + return DL_VERSION; +} + +int dladdr(const void *addr, Dl_info *info) { const Obj_Entry *obj; |
