diff options
| author | Ulrich Drepper <drepper@redhat.com> | 1997-11-04 03:00:40 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 1997-11-04 03:00:40 +0000 |
| commit | 1618c590382ef16b1942bf39a42aa683a050ff57 (patch) | |
| tree | e36cbd52b4f65aa04764417892264eac7757e6eb | |
| parent | 1cab5444231a4a1fab9c3abb107d22af4eb09327 (diff) | |
| download | glibc-1618c590382ef16b1942bf39a42aa683a050ff57.tar.xz glibc-1618c590382ef16b1942bf39a42aa683a050ff57.zip | |
Update.cvs/libc-ud-971103
1997-11-04 Ulrich Drepper <drepper@cygnus.com>
* manual/filesys.texi: Correct description of return value for
readdir_r.
* sysdeps/unix/readdir_r.c (__readdir_r): Return value of errno
not -1 in error case.
* sysdeps/generic/readdir_r.c (__readdir_r): Return ENOSYS not -1.
Reported by Jim Meyering <meyering@eng.ascend.com>.
1997-11-02 Paul Eggert <eggert@twinsun.com>
* strftime.c: Use host's underlying strftime to access
locale-specific info. This is useful e.g. when building GNU
Emacs under Solaris 2.6.
(weekday_name, month_name): Omit if HAVE_STRFTIME.
(my_strftime): New macro, which names the strftime function that
this source file produces.
(strftime): #undef if emacs is defined; this works around Emacs 20.2's
method of compiling with -Dstrftime=emacs_strftime.
Also, declare as a function returning size_t, for similar reasons.
(my_strftime): If HAVE_STRFTIME, use underlying strftime to handle
locale-dependent formats like %a and %Ec.
1997-11-02 Paul Eggert <eggert@twinsun.com>
* strftime.c (memcpy_lowcase, memcpy_uppcase, strftime):
Ensure that args to islower and isupper are valid unsigned
chars, even if char is signed.
1997-11-04 Ulrich Drepper <drepper@cygnus.com>
* assert/Makefile (headers): Add assert.h, necessary after patch
to Makefiles.
* ctype/Makefile (headers): Likewise.
* pwd/Makefile (headers): Likewise.
* grp/Makefile (headers): Likewise.
Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
1997-11-04 03:08 Ulrich Drepper <drepper@cygnus.com>
* glibcbug.in: Add information about configured target.
Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>.
* elf/dl-lookup.c (_dl_lookup_versioned_symbol): Be prepared for
empty string as `reference_name' parameter.
* elf/rtld.c: Don't set real program name in l_name of main object.
* manual/creature.texi: Apply Paul Eggert's patch for better
_POSIX_C_SOURCE description.
* stdlib/strfmon.c: Fix numerous bugs in formatting.
* time/strptime.c [%Y]: Treat all years, not only those which fit
in time_t.
[%Oy]: Really store value.
Patches by Paul Eggert.
* wcsmbs/wchar.h: Fix documentation bugs. Declare wcsdup only
is __USE_GNU.
1997-11-03 02:48 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/generic/bits/errno.h: Remove all error definitions. This
is only meant as a stub.
1997-10-31 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/standalone/bits/errno.h: Copied from
sysdeps/generic/bits/errno.h and added all know error codes that
are used in glibc.
1997-11-03 02:23 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/generic/make_siglist.c: Add comment to clarify use and
make sure the correct _NSIG value is used.
Patch by Klaus Espenlaub <kespenla@student.informatik.uni-ulm.de>.
1997-11-03 00:20 Ulrich Drepper <drepper@cygnus.com>
* intl/localealias.c (read_alias_file): Correct handling of line
reader which sometimes skipped complete lines (PR 205).
Optimize a bit by using mempcpy.
1997-11-02 16:59 Philipp Thomas <kthomas@gwdg.de>
* intl/localealias.c (read_alias_file): Correctly set map[].value
instead of overwriting map[].alias
1997-11-02 15:32 Ulrich Drepper <drepper@cygnus.com>
* libc.map: Add _IO_flockfile and _IO_funlockfile.
Suggested by H.J. Lu <hjl@lucon.org>.
1997-11-02 15:17 Ulrich Drepper <drepper@cygnus.com>
* elf/dl-error.c (_dl_signal_error): Use _strerror_internal instead
of strerror.
* assert/assert-perr.c: Use _strerror_internal directly instead of
__strerror_r.
Suggested by Joe Keane <jgk@jgk.org>.
1997-11-01 16:46 Zack Weinberg <zack@rabi.phys.columbia.edu>
* configure.in: Check for gcc-2.7.2 -pipe bug and hack around it
(PR 245).
1997-11-01 Paul Eggert <eggert@twinsun.com>
* time/strptime.c (strptime_internal): Fix bug: %Oy forgot to
assign tm_year. Do not restrict %Y to years less than 2037 even
on 32-bit time_t hosts, as strptime returns an int tm_year, not a
time_t, and it's possible for programs to use the year without
having to use time_t.
non-directories in the list (PR 203).
| -rw-r--r-- | BUGS | 7 | ||||
| -rw-r--r-- | ChangeLog | 116 | ||||
| -rw-r--r-- | assert/Makefile | 1 | ||||
| -rw-r--r-- | assert/assert-perr.c | 8 | ||||
| -rw-r--r-- | bits/errno.h | 17 | ||||
| -rwxr-xr-x | configure | 195 | ||||
| -rw-r--r-- | configure.in | 40 | ||||
| -rw-r--r-- | ctype/Makefile | 1 | ||||
| -rw-r--r-- | elf/dl-error.c | 10 | ||||
| -rw-r--r-- | elf/dl-lookup.c | 5 | ||||
| -rw-r--r-- | elf/rtld.c | 3 | ||||
| -rw-r--r-- | glibcbug.in | 2 | ||||
| -rw-r--r-- | grp/Makefile | 1 | ||||
| -rw-r--r-- | intl/localealias.c | 36 | ||||
| -rw-r--r-- | libc.map | 2 | ||||
| -rw-r--r-- | manual/creature.texi | 33 | ||||
| -rw-r--r-- | manual/filesys.texi | 4 | ||||
| -rw-r--r-- | pwd/Makefile | 1 | ||||
| -rw-r--r-- | stdlib/strfmon.c | 34 | ||||
| -rw-r--r-- | sysdeps/generic/bits/errno.h | 17 | ||||
| -rw-r--r-- | sysdeps/generic/make_siglist.c | 8 | ||||
| -rw-r--r-- | sysdeps/generic/readdir_r.c | 2 | ||||
| -rw-r--r-- | sysdeps/standalone/bits/errno.h | 62 | ||||
| -rw-r--r-- | sysdeps/unix/readdir_r.c | 2 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/alpha/Dist | 2 | ||||
| -rw-r--r-- | time/strftime.c | 140 | ||||
| -rw-r--r-- | time/strptime.c | 6 | ||||
| -rw-r--r-- | wcsmbs/wchar.h | 18 |
28 files changed, 581 insertions, 192 deletions
@@ -1,7 +1,7 @@ List of known bugs (certainly very incomplete) ---------------------------------------------- -Time-stamp: <1997-10-31T16:49:39+0100 drepper> +Time-stamp: <1997-11-02T15:10:48+0100 drepper> This following list contains those bugs which I'm aware of. Please make sure that bugs you report are not listed here. If you can fix one @@ -58,11 +58,6 @@ Severity: [ *] to [***] checked for errors, but the whole file containing the same category. [PR libc/207] - -[ *] configuring with CFLAGS="-pipe" configure doesn't work - with gcc. This seems to be a bug in gcc 2.7.2.x (egcs doesn't - have this bug). - [PR libc/245] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Ulrich Drepper drepper@cygnus.com @@ -1,8 +1,122 @@ +1997-11-04 Ulrich Drepper <drepper@cygnus.com> + + * manual/filesys.texi: Correct description of return value for + readdir_r. + * sysdeps/unix/readdir_r.c (__readdir_r): Return value of errno + not -1 in error case. + * sysdeps/generic/readdir_r.c (__readdir_r): Return ENOSYS not -1. + Reported by Jim Meyering <meyering@eng.ascend.com>. + +1997-11-02 Paul Eggert <eggert@twinsun.com> + + * strftime.c: Use host's underlying strftime to access + locale-specific info. This is useful e.g. when building GNU + Emacs under Solaris 2.6. + (weekday_name, month_name): Omit if HAVE_STRFTIME. + (my_strftime): New macro, which names the strftime function that + this source file produces. + (strftime): #undef if emacs is defined; this works around Emacs 20.2's + method of compiling with -Dstrftime=emacs_strftime. + Also, declare as a function returning size_t, for similar reasons. + (my_strftime): If HAVE_STRFTIME, use underlying strftime to handle + locale-dependent formats like %a and %Ec. + +1997-11-02 Paul Eggert <eggert@twinsun.com> + + * strftime.c (memcpy_lowcase, memcpy_uppcase, strftime): + Ensure that args to islower and isupper are valid unsigned + chars, even if char is signed. + +1997-11-04 Ulrich Drepper <drepper@cygnus.com> + + * assert/Makefile (headers): Add assert.h, necessary after patch + to Makefiles. + * ctype/Makefile (headers): Likewise. + * pwd/Makefile (headers): Likewise. + * grp/Makefile (headers): Likewise. + Patch by NIIBE Yutaka <gniibe@mri.co.jp>. + +1997-11-04 03:08 Ulrich Drepper <drepper@cygnus.com> + + * glibcbug.in: Add information about configured target. + Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>. + + * elf/dl-lookup.c (_dl_lookup_versioned_symbol): Be prepared for + empty string as `reference_name' parameter. + * elf/rtld.c: Don't set real program name in l_name of main object. + + * manual/creature.texi: Apply Paul Eggert's patch for better + _POSIX_C_SOURCE description. + + * stdlib/strfmon.c: Fix numerous bugs in formatting. + + * time/strptime.c [%Y]: Treat all years, not only those which fit + in time_t. + [%Oy]: Really store value. + Patches by Paul Eggert. + + * wcsmbs/wchar.h: Fix documentation bugs. Declare wcsdup only + is __USE_GNU. + +1997-11-03 02:48 Ulrich Drepper <drepper@cygnus.com> + + * sysdeps/generic/bits/errno.h: Remove all error definitions. This + is only meant as a stub. + +1997-10-31 Andreas Jaeger <aj@arthur.rhein-neckar.de> + + * sysdeps/standalone/bits/errno.h: Copied from + sysdeps/generic/bits/errno.h and added all know error codes that + are used in glibc. + +1997-11-03 02:23 Ulrich Drepper <drepper@cygnus.com> + + * sysdeps/generic/make_siglist.c: Add comment to clarify use and + make sure the correct _NSIG value is used. + Patch by Klaus Espenlaub <kespenla@student.informatik.uni-ulm.de>. + +1997-11-03 00:20 Ulrich Drepper <drepper@cygnus.com> + + * intl/localealias.c (read_alias_file): Correct handling of line + reader which sometimes skipped complete lines (PR 205). + Optimize a bit by using mempcpy. + +1997-11-02 16:59 Philipp Thomas <kthomas@gwdg.de> + + * intl/localealias.c (read_alias_file): Correctly set map[].value + instead of overwriting map[].alias + +1997-11-02 15:32 Ulrich Drepper <drepper@cygnus.com> + + * libc.map: Add _IO_flockfile and _IO_funlockfile. + Suggested by H.J. Lu <hjl@lucon.org>. + +1997-11-02 15:17 Ulrich Drepper <drepper@cygnus.com> + + * elf/dl-error.c (_dl_signal_error): Use _strerror_internal instead + of strerror. + * assert/assert-perr.c: Use _strerror_internal directly instead of + __strerror_r. + Suggested by Joe Keane <jgk@jgk.org>. + +1997-11-01 16:46 Zack Weinberg <zack@rabi.phys.columbia.edu> + + * configure.in: Check for gcc-2.7.2 -pipe bug and hack around it + (PR 245). + +1997-11-01 Paul Eggert <eggert@twinsun.com> + + * time/strptime.c (strptime_internal): Fix bug: %Oy forgot to + assign tm_year. Do not restrict %Y to years less than 2037 even + on 32-bit time_t hosts, as strptime returns an int tm_year, not a + time_t, and it's possible for programs to use the year without + having to use time_t. + 1997-10-31 23:16 Ulrich Drepper <drepper@cygnus.com> * posix/glob.c (glob): If calling glob_in_dir for a list which was generated by a glob call disable GLOB_ERR since there might be - non-directories in the list (PR203). + non-directories in the list (PR 203). * posix/glob.h (GLOB_ONLYDIR): New flag. (__GLOB_FLAGS): Add GLOB_ONLYDIR. diff --git a/assert/Makefile b/assert/Makefile index 208a71a948..5780457502 100644 --- a/assert/Makefile +++ b/assert/Makefile @@ -20,6 +20,7 @@ # Sub-makefile for assert portion of the library. # subdir := assert +headers := assert.h routines := assert assert-perr diff --git a/assert/assert-perr.c b/assert/assert-perr.c index c62ae467ac..246727ee94 100644 --- a/assert/assert-perr.c +++ b/assert/assert-perr.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1994, 1995, 1996, 1997 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 @@ -22,6 +22,10 @@ #include <sysdep.h> +/* This is the internal function we use to generate the error string. */ +extern char *_strerror_internal __P ((int, char *, size_t)); + + extern const char *__assert_program_name; /* In assert.c. */ /* This function, when passed an error number, a filename, and a line @@ -49,7 +53,7 @@ __assert_perror_fail (int errnum, __assert_program_name ? ": " : "", file, line, function ? function : "", function ? ": " : "", - __strerror_r (errnum, errbuf, sizeof errbuf)); + _strerror_internal (errnum, errbuf, sizeof errbuf)); (void) fflush (stderr); abort (); diff --git a/bits/errno.h b/bits/errno.h index cb61da7836..622c2c9de4 100644 --- a/bits/errno.h +++ b/bits/errno.h @@ -22,20 +22,15 @@ #undef __need_Emath #define __Emath_defined 1 -# define EDOM 1 -# define ERANGE 2 +# define EDOM XXX <--- fill in what is actually needed +# define ERANGE XXX <--- fill in what is actually needed #endif #ifdef _ERRNO_H -# define ENOSYS 3 -# define EINVAL 4 -# define ESPIPE 5 -# define EBADF 6 -# define ENOMEM 7 -# define EACCES 8 -# define ENFILE 9 -# define EMFILE 10 -# define ENOMSG 11 +# error "Define here all the missing error messages for the port. These" +# error "must match the numbers of the kernel." +# define Exxxx XXX +... #endif #define __set_errno(val) errno = (val) @@ -558,14 +558,6 @@ else ac_n= ac_c='\c' ac_t= fi - if test -r /vmunix; then - kernel_id=`strings /vmunix | grep UNIX` - elif test -r /dynix; then - kernel_id=`strings /dynix | grep DYNIX` - else - kernel_id= - fi - @@ -760,7 +752,7 @@ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } fi echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:764: checking host system type" >&5 +echo "configure:756: checking host system type" >&5 host_alias=$host case "$host_alias" in @@ -879,7 +871,7 @@ fi # This can take a while to compute. sysdep_dir=$srcdir/sysdeps echo $ac_n "checking sysdep dirs""... $ac_c" 1>&6 -echo "configure:883: checking sysdep dirs" >&5 +echo "configure:875: checking sysdep dirs" >&5 # Make sco3.2v4 become sco3.2.4 and sunos4.1.1_U1 become sunos4.1.1.U1. os="`echo $os | sed 's/\([0-9A-Z]\)[v_]\([0-9A-Z]\)/\1.\2/g'`" @@ -1080,7 +1072,7 @@ echo "$ac_t""sysdeps/generic" 1>&6 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 -echo "configure:1084: checking for a BSD compatible install" >&5 +echo "configure:1076: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -1134,7 +1126,7 @@ if test "$INSTALL" = "${srcdir}/install-sh -c"; then INSTALL='\$(..)./install-sh -c' fi echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 -echo "configure:1138: checking whether ln -s works" >&5 +echo "configure:1130: checking whether ln -s works" >&5 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1159,7 +1151,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1163: checking for $ac_word" >&5 +echo "configure:1155: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_MSGFMT'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1192,7 +1184,7 @@ test -n "$MSGFMT" || MSGFMT=":" # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1196: checking for $ac_word" >&5 +echo "configure:1188: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1221,7 +1213,7 @@ if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1225: checking for $ac_word" >&5 +echo "configure:1217: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1269,7 +1261,7 @@ fi fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:1273: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 +echo "configure:1265: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. @@ -1279,11 +1271,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext <<EOF -#line 1283 "configure" +#line 1275 "configure" #include "confdefs.h" main(){return(0);} EOF -if { (eval echo configure:1287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then +if { (eval echo configure:1279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then @@ -1306,13 +1298,13 @@ else cross_linkable=yes fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:1310: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 +echo "configure:1302: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:1316: checking whether we are using GNU C" >&5 +echo "configure:1308: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -1321,7 +1313,7 @@ else yes; #endif EOF -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no @@ -1338,7 +1330,7 @@ if test $ac_cv_prog_gcc = yes; then yes; #endif EOF - if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then + if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then if test -z "$CFLAGS"; then CFLAGS="-g -O2" fi @@ -1350,7 +1342,7 @@ else fi echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:1354: checking build system type" >&5 +echo "configure:1346: checking build system type" >&5 build_alias=$build case "$build_alias" in @@ -1373,7 +1365,7 @@ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1377: checking for $ac_word" >&5 +echo "configure:1369: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then echo $ac_ |
