Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/common_elf When calling dlerror() in a non-dynamical...



details:   https://anonhg.NetBSD.org/src/rev/ced798c1d690
branches:  trunk
changeset: 473083:ced798c1d690
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed May 19 14:47:12 1999 +0000

description:
When calling dlerror() in a non-dynamically linked executable, return a pointer
to an error string rather than NULL (`no errors occured) to indicate the cause
of failure return values of other dl*() interfaces.

diffstat:

 lib/csu/common_elf/common.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bb6f082e94a3 -r ced798c1d690 lib/csu/common_elf/common.c
--- a/lib/csu/common_elf/common.c       Wed May 19 14:41:54 1999 +0000
+++ b/lib/csu/common_elf/common.c       Wed May 19 14:47:12 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: common.c,v 1.1 1999/03/19 23:34:49 thorpej Exp $       */
+/*     $NetBSD: common.c,v 1.2 1999/05/19 14:47:12 kleink Exp $        */
 
 /*
  * Copyright (c) 1995 Christopher G. Demetriou
@@ -121,7 +121,7 @@
 {
 
        if (__mainprog_obj == NULL)
-               return NULL;
+               return ("Dynamic linker interface not available");
        return (__mainprog_obj->dlerror)();
 }
 #endif /* DYNAMIC */



Home | Main Index | Thread Index | Old Index