From af3878dff0963da299b6b54d3a76f9c1a68aac27 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Apr 1998 22:45:20 +0000 Subject: (dlerror): Don't assume that __libc_internal_tsd_get is defined. __libc_getspecific is already well-protected, so just use it directly. --- Makefile | 2 +- Makerules | 14 +++++++------- elf/dl-load.c | 15 +++++++++++---- elf/dlerror.c | 9 ++------- iconvdata/run-iconv-test.sh | 21 +++++++++++---------- 5 files changed, 32 insertions(+), 29 deletions(-) diff --git a/Makefile b/Makefile index 1de8be7008..81ab1c0c7a 100644 --- a/Makefile +++ b/Makefile @@ -232,7 +232,7 @@ endif # The `glibcbug' script contains the version number and it shall be rebuild # whenever this changes or the `glibcbug.in' file. $(objpfx)glibcbug: $(common-objpfx)config.status glibcbug.in - cd $( 1 && cp[len - 1] == '/') @@ -331,8 +335,11 @@ _dl_init_paths (const char *llp) const char *cp = llp; nllp = 1; while (*cp) - if (*cp++ == ':') - ++nllp; + { + if (*cp == ':' || *cp == ';') + ++nllp; + ++cp; + } } else nllp = 0; diff --git a/elf/dlerror.c b/elf/dlerror.c index ba25611bbb..4716bdd272 100644 --- a/elf/dlerror.c +++ b/elf/dlerror.c @@ -56,13 +56,8 @@ dlerror (void) } /* Get error string. */ - if (__libc_internal_tsd_get != NULL) - { - result = (struct dl_action_result *) __libc_getspecific (key); - if (result == NULL) - result = &last_result; - } - else + result = (struct dl_action_result *) __libc_getspecific (key); + if (result == NULL) result = &last_result; if (! result->errstring) diff --git a/iconvdata/run-iconv-test.sh b/iconvdata/run-iconv-test.sh index 45061373cf..c8e5e6232c 100755 --- a/iconvdata/run-iconv-test.sh +++ b/iconvdata/run-iconv-test.sh @@ -44,15 +44,15 @@ while read from to subset targets; do for t in $targets; do $ICONV -f $from -t $t testdata/$from > $temp1 || - { echo "*** conversion from $from to $t failed"; failed=1; } + { echo "*** conversion from $from to $t failed"; failed=1; continue; } if test -s testdata/$from..$t; then - cmp $temp1 testdata/$from..$t >& /dev/null || - { echo "*** $from -> $t conversion failed"; failed=1; } + cmp $temp1 testdata/$from..$t > /dev/null 2>&1 || + { echo "*** $from -> $t conversion failed"; failed=1; continue; } fi $ICONV -f $t -t $to -o $temp2 $temp1 || - { echo "*** conversion from $t to $to failed"; failed=1; } - test -s $temp1 && cmp testdata/$from $temp2 >& /dev/null || - { echo "*** $from -> t -> $to conversion failed"; failed=1; } + { echo "*** conversion from $t to $to failed"; failed=1; continue; } + test -s $temp1 && cmp testdata/$from $temp2 > /dev/null 2>&1 || + { echo "*** $from -> t -> $to conversion failed"; failed=1; continue; } rm -f $temp1 $temp2 # Now test some bigger text, entirely in ASCII. If ASCII is no subset @@ -61,18 +61,19 @@ while read from to subset targets; do if test $subset = Y; then $ICONV -f $from -t $t testdata/suntzus | $ICONV -f $t -t $to > $temp1 || - { echo "*** conversion $from->$t->$to of suntzus failed"; failed=1; } + { echo "*** conversion $from->$t->$to of suntzus failed"; failed=1; + continue; } cmp testdata/suntzus $temp1 || { echo "*** conversion $from->$t->$to of suntzus incorrect"; - failed=1; } + failed=1; continue; } else $ICONV -f ASCII -t $to testdata/suntzus | $ICONV -f $to -f ASCII > $temp1 || { echo "*** conversion ASCII->$to->ASCII of suntzus failed"; - failed=1; } + failed=1; continue; } cmp testdata/suntzus $temp1 || { echo "*** conversion ASCII->$to->ASCII of suntzus incorrect"; - failed=1; } + failed=1; continue; } fi rm -f $temp1 # All tests ok. -- cgit v1.2.3