aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BUGS7
-rw-r--r--ChangeLog116
-rw-r--r--assert/Makefile1
-rw-r--r--assert/assert-perr.c8
-rw-r--r--bits/errno.h17
-rwxr-xr-xconfigure195
-rw-r--r--configure.in40
-rw-r--r--ctype/Makefile1
-rw-r--r--elf/dl-error.c10
-rw-r--r--elf/dl-lookup.c5
-rw-r--r--elf/rtld.c3
-rw-r--r--glibcbug.in2
-rw-r--r--grp/Makefile1
-rw-r--r--intl/localealias.c36
-rw-r--r--libc.map2
-rw-r--r--manual/creature.texi33
-rw-r--r--manual/filesys.texi4
-rw-r--r--pwd/Makefile1
-rw-r--r--stdlib/strfmon.c34
-rw-r--r--sysdeps/generic/bits/errno.h17
-rw-r--r--sysdeps/generic/make_siglist.c8
-rw-r--r--sysdeps/generic/readdir_r.c2
-rw-r--r--sysdeps/standalone/bits/errno.h62
-rw-r--r--sysdeps/unix/readdir_r.c2
-rw-r--r--sysdeps/unix/sysv/linux/alpha/Dist2
-rw-r--r--time/strftime.c140
-rw-r--r--time/strptime.c6
-rw-r--r--wcsmbs/wchar.h18
28 files changed, 581 insertions, 192 deletions
diff --git a/BUGS b/BUGS
index 701acf0e00..efe407b4c5 100644
--- a/BUGS
+++ b/BUGS
@@ -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
diff --git a/ChangeLog b/ChangeLog
index 1b9fa7de1a..6b54555f5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
diff --git a/configure b/configure
index 3b1a1390e9..2955226441 100755
--- a/configure
+++ b/configure
@@ -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_n "(cached) $ac_c" 1>&6
else
@@ -1404,7 +1396,7 @@ done
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:1408: checking how to run the C preprocessor" >&5
+echo "configure:1400: checking how to run the C preprocessor" >&5
# On Suns, sometimes $CPP names a directory.
if test -n "$CPP" && test -d "$CPP"; then
CPP=
@@ -1419,13 +1411,13 @@ else
# On the NeXT, cc -E runs the code through the compiler's parser,
# not just through cpp.
cat > conftest.$ac_ext <<EOF
-#line 1423 "configure"
+#line 1415 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -1436,13 +1428,13 @@ else
rm -rf conftest*
CPP="${CC-cc} -E -traditional-cpp"
cat > conftest.$ac_ext <<EOF
-#line 1440 "configure"
+#line 1432 "configure"
#include "confdefs.h"
#include <assert.h>
Syntax Error
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:1446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:1438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out`
if test -z "$ac_err"; then
:
@@ -1475,7 +1467,7 @@ LD=`$CC -print-file-name=ld`
# Determine whether we are using GNU binutils.
echo $ac_n "checking whether $AS is GNU as""... $ac_c" 1>&6
-echo "configure:1479: checking whether $AS is GNU as" >&5
+echo "configure:1471: checking whether $AS is GNU as" >&5
if eval "test \"`echo '$''{'libc_cv_prog_as_gnu'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1493,7 +1485,7 @@ rm -f a.out
gnu_as=$libc_cv_prog_as_gnu
echo $ac_n "checking whether $LD is GNU ld""... $ac_c" 1>&6
-echo "configure:1497: checking whether $LD is GNU ld" >&5
+echo "configure:1489: checking whether $LD is GNU ld" >&5
if eval "test \"`echo '$''{'libc_cv_prog_ld_gnu'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1517,7 +1509,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
set dummy ${ac_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1521: checking for $ac_word" >&5
+echo "configure:1513: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1548,7 +1540,7 @@ fi
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1552: checking for $ac_word" >&5
+echo "configure:1544: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1579,7 +1571,7 @@ if test -n "$ac_tool_prefix"; then
# Extract the first word of "ranlib", so it can be a program name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1583: checking for $ac_word" >&5
+echo "configure:1575: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1614,7 +1606,7 @@ fi
# Extract the first word of "bash", so it can be a program name with args.
set