]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 11 Mar 1998 09:54:55 +0000 (09:54 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 11 Mar 1998 09:54:55 +0000 (09:54 +0000)
1998-03-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

* sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
_dl_debug_message.

1998-03-12  Matthias Urlichs  <smurf@noris.de>

* elf/dl-misc.c: Default for debug output should be stderr.
* elf/dl-misc.c: Spurious garbage bytes after the PID in debug output.
* elf/dl-lookup.c: reference_name may be NULL or empty.

1998-03-11 10:30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* aclocal.m4 (LIBC_PROG_FOO_GNU): Fix order of redirection.

1998-03-11  Ulrich Drepper  <drepper@cygnus.com>

* sysdeps/unix/sysv/linux/Dist: Add scsi/scsi.h.

* sysdeps/unix/sysv/linux/scsi/sg.h: Include features.h.

1998-03-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* sysdeps/unix/sysv/linux/scsi/scsi.h: New file.
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Install it.

1998-03-11 10:30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

ChangeLog
aclocal.m4
elf/dl-lookup.c
elf/dl-misc.c
localedata/ChangeLog
localedata/locales/de_DE
sysdeps/generic/dl-cache.c
sysdeps/unix/sysv/linux/Dist
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/scsi/sg.h

index 1974f0b1c15b91741174e1915de3a0b50ecb5e7e..80619c53b16f23243c70f190bcaf070bf63f044a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,30 @@
-Wed Mar 11 10:30:53 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+1998-03-11  Andreas Jaeger  <aj@arthur.rhein-neckar.de>
+
+       * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Use
+       _dl_debug_message.
+
+1998-03-12  Matthias Urlichs  <smurf@noris.de>
+
+       * elf/dl-misc.c: Default for debug output should be stderr.
+       * elf/dl-misc.c: Spurious garbage bytes after the PID in debug output.
+       * elf/dl-lookup.c: reference_name may be NULL or empty.
+
+1998-03-11 10:30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * aclocal.m4 (LIBC_PROG_FOO_GNU): Fix order of redirection.
+
+1998-03-11  Ulrich Drepper  <drepper@cygnus.com>
+
+       * sysdeps/unix/sysv/linux/Dist: Add scsi/scsi.h.
+
+       * sysdeps/unix/sysv/linux/scsi/sg.h: Include features.h.
+
+1998-03-10  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
+
+       * sysdeps/unix/sysv/linux/scsi/scsi.h: New file.
+       * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Install it.
+
+1998-03-11 10:30  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
 
        * sysdeps/m68k/elf/start.S: Let __libc_start_main do most of the
        init stuff.
index c995e45c4c4b3777a0db27599fe8d97bf0ce6e88..2842963e567e037ea84ca25e71a26e3137a63a2d 100644 (file)
@@ -94,7 +94,7 @@ cross_compiling=$ac_cv_prog_cc_cross
 AC_DEFUN(LIBC_PROG_FOO_GNU,
 [# Most GNU programs take a -v and spit out some text including
 # the word 'GNU'.  Some try to read stdin, so give them /dev/null.
-if $1 -v </dev/null 2>&1 | grep GNU 2>&1 > /dev/null; then
+if $1 -v </dev/null 2>&1 | grep GNU > /dev/null 2>&1; then
   $2
 else
   $3
index f2cd981883f9d533cff34f6a36d70fb09d7be363..b994ef711be3c7db3b91395a80786652eb299b71 100644 (file)
@@ -229,15 +229,20 @@ _dl_lookup_symbol (const char *undef_name, const ElfW(Sym) **ref,
     {
       if (*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK)
        /* We could find no value for a strong reference.  */
-       _dl_signal_error (0, reference_name,
+       _dl_signal_error (0, (reference_name  && reference_name[0]
+                             ? reference_name
+                             : (_dl_argv[0] ?: "<main program>")),
                          make_string (undefined_msg, undef_name));
       *ref = NULL;
       return 0;
     }
 
   if (_dl_debug_bindings)
-    _dl_debug_message (1, "binding file ", reference_name, " to ",
-                      current_value.m->l_name[0]
+    _dl_debug_message (1, "binding file ",
+                      (reference_name && reference_name[0]
+                       ? reference_name
+                       : (_dl_argv[0] ?: "<main program>")),
+                      " to ", current_value.m->l_name[0]
                       ? current_value.m->l_name : _dl_argv[0],
                       ": symbol `", undef_name, "'\n", NULL);
 
@@ -281,10 +286,13 @@ _dl_lookup_symbol_skip (const char *undef_name, const ElfW(Sym) **ref,
     }
 
   if (_dl_debug_bindings)
-    _dl_debug_message (1, "binding file ", reference_name, " to ",
-                      current_value.m->l_name[0]
+    _dl_debug_message (1, "binding file ",
+                      (reference_name && reference_name[0]
+                       ? reference_name
+                       : (_dl_argv[0] ?: "<main program>")),
+                      " to ", current_value.m->l_name[0]
                       ? current_value.m->l_name : _dl_argv[0],
-                      ": symbol `", undef_name, "'\n", NULL);
+                      ": symbol `", undef_name, "' (skip)\n", NULL);
 
   *ref = current_value.s;
   return current_value.m->l_addr;
@@ -318,7 +326,7 @@ _dl_lookup_versioned_symbol (const char *undef_name, const ElfW(Sym) **ref,
       if (res < 0)
        /* Oh, oh.  The file named in the relocation entry does not
           contain the needed symbol.  */
-       _dl_signal_error (0, (*reference_name
+       _dl_signal_error (0, (reference_name && reference_name[0]
                              ? reference_name
                              : (_dl_argv[0] ?: "<main program>")),
                          make_string ("symbol ", undef_name, ", version ",
@@ -334,7 +342,9 @@ _dl_lookup_versioned_symbol (const char *undef_name, const ElfW(Sym) **ref,
     {
       if (*ref == NULL || ELFW(ST_BIND) ((*ref)->st_info) != STB_WEAK)
        /* We could find no value for a strong reference.  */
-       _dl_signal_error (0, reference_name,
+       _dl_signal_error (0, (reference_name && reference_name[0]
+                             ? reference_name
+                             : (_dl_argv[0] ?: "<main program>")),
                          make_string (undefined_msg, undef_name,
                                       ", version ", version->name ?: NULL));
       *ref = NULL;
@@ -342,8 +352,11 @@ _dl_lookup_versioned_symbol (const char *undef_name, const ElfW(Sym) **ref,
     }
 
   if (_dl_debug_bindings)
-    _dl_debug_message (1, "binding file ", reference_name, " to ",
-                      current_value.m->l_name[0]
+    _dl_debug_message (1, "binding file ",
+                      (reference_name && reference_name[0]
+                       ? reference_name
+                       : (_dl_argv[0] ?: "<main program>")),
+                      " to ", current_value.m->l_name[0]
                       ? current_value.m->l_name : _dl_argv[0],
                       ": symbol `", undef_name, "' [", version->name,
                       "]\n", NULL);
@@ -389,18 +402,24 @@ _dl_lookup_versioned_symbol_skip (const char *undef_name,
          char buf[sizeof undefined_msg + len];
          __mempcpy (__mempcpy (buf, undefined_msg, sizeof undefined_msg - 1),
                     undef_name, len + 1);
-         _dl_signal_error (0, reference_name, buf);
+         _dl_signal_error (0, (reference_namee && reference_name[0]
+                               ? reference_name
+                               : (_dl_argv[0] ?: "<main program>")), buf);
        }
       *ref = NULL;
       return 0;
     }
 
   if (_dl_debug_bindings)
-    _dl_debug_message (1, "binding file ", reference_name, " to ",
+    _dl_debug_message (1, "binding file ",
+                      (reference_name && reference_name[0]
+                       ? reference_name
+                       : (_dl_argv[0] ?: "<main program>")),
+                      " to ",
                       current_value.m->l_name[0]
                       ? current_value.m->l_name : _dl_argv[0],
                       ": symbol `", undef_name, "' [", version->name,
-                      "]\n", NULL);
+                      "] (skip)\n", NULL);
 
   *ref = current_value.s;
   return current_value.m->l_addr;
index 1e13d0d28a8cd03312e18e743830466f189cd000..3d796360b325da740cd813796d5dc2b74480fd36 100644 (file)
@@ -77,7 +77,7 @@ _dl_sysdep_read_whole_file (const char *file, size_t *sizep, int prot)
 
 
 /* Descriptor to write debug messages to.  */
-int _dl_debug_fd;
+int _dl_debug_fd = 2;
 
 
 void
@@ -122,7 +122,9 @@ _dl_debug_message (int new_line, const char *msg, ...)
        if (new_line)
          {
            char buf[7] = "00000:\t";
-           __write (_dl_debug_fd, _itoa_word (pid, &buf[5], 10, 0), 7);
+           assert (pid >= 0 && pid < 100000);
+           _itoa_word (pid, &buf[5], 10, 0);
+           __write (_dl_debug_fd, buf, 7);
            new_line = 0;
          }
 
index e968fe07b9aa596d35f903f6caa17743ab276b50..05b3b0b1632cae61c08859b75d93a4b92795b866 100644 (file)
@@ -1,3 +1,8 @@
+1998-03-11  Ulrich Drepper  <drepper@cygnus.com>
+
+       * locales/de_DE: Use common german data and time format not ISO
+       8601.
+
 1998-03-08  Ulrich Drepper  <drepper@cygnus.com>
 
        * locales/ru_RU: Correct inconsistencies in mon data.
index b13f52f5c98d2dd5b5f3de459bc4d92752e12b69..c3e90eb5e7bd374ef4a2c265902834716273c510 100644 (file)
@@ -2197,7 +2197,7 @@ mon     "<J><a><n><u><a><r>";/
         "<N><o><v><e><m><b><e><r>";/
         "<D><e><z><e><m><b><e><r>"
 d_t_fmt "<%><a><SP><%><d><SP><%><b><SP><%><Y><SP><%><T><SP><%><Z>"
-d_fmt   "<%><Y><-><%><m><-><%><d>"
+d_fmt   "<%><d><.><%><m><.><%><Y>"
 t_fmt   "<%><T>"
 am_pm   "";""
 t_fmt_ampm ""
index 2a2be570e94e6974b7c5dce9f65f39cc021e8cea..c885c11d37657e72db7802225450898701de4298 100644 (file)
@@ -57,7 +57,7 @@ _dl_load_cache_lookup (const char *name)
 
   /* Print a message if the loading of libs is traced.  */
   if (_dl_debug_libs)
-    _dl_sysdep_message ("\t search cache=", LD_SO_CACHE, "\n", NULL);
+    _dl_debug_message (1, " search cache=", LD_SO_CACHE, "\n", NULL);
 
   if (cache == NULL)
     {
@@ -106,7 +106,7 @@ _dl_load_cache_lookup (const char *name)
 
   /* Print our result if wanted.  */
   if (_dl_debug_libs && best != NULL)
-    _dl_sysdep_message ("\t  trying file=", best, "\n", NULL);
+    _dl_debug_message (1, "  trying file=", best, "\n", NULL);
 
   return best;
 }
index 383f6170675d174b758a5eec148f927504e5f411..4471224bcc334d79bb42927e48e5d2b1417865fd 100644 (file)
@@ -44,6 +44,7 @@ rt_sigreturn.c
 rt_sigsuspend.c
 rt_sigtimedwait.c
 scsi/sg.h
+scsi/scsi.h
 sys/acct.h
 sys/debugreg.h
 sys/fsuid.h
index e08089e0223562672394ed22fd922a3ac866b5e2..7b53e3a399a5bb41a0a66d663bae43e66ec65471 100644 (file)
@@ -16,7 +16,7 @@ sysdep_headers += sys/mount.h sys/acct.h sys/sysctl.h sys/mtio.h \
                  sys/user.h sys/sysmacros.h sys/procfs.h sys/prctl.h \
                  sys/debugreg.h sys/kd.h sys/soundcard.h sys/vt.h \
                  sys/quota.h sys/fsuid.h bits/mman.h \
-                 scsi/sg.h sys/pci.h sys/ultrasound.h
+                 scsi/sg.h scsi/scsi.h sys/pci.h sys/ultrasound.h
 
 install-others += $(inst_includedir)/bits/syscall.h
 
index c0a0c3a6d5e21771e36525896600a05f513a61cf..ae7b2cf42d3ac1316f3488a9d451b6f8ea5bf799 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -26,6 +26,8 @@
 #ifndef _SCSI_SG_H
 #define _SCSI_SG_H     1
 
+#include <features.h>
+
 /* An SG device is accessed by writing "packets" to it, the replies
    are then read using the read call.  The same header is used for
    replies; ignore the reply_len field.  */