aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-11-06 00:02:46 +0000
committerUlrich Drepper <drepper@redhat.com>1997-11-06 00:02:46 +0000
commit86187531d302de284b67ac162cf76c60c86bd7da (patch)
tree456f8b37f8e8fa67c16ee0cf6de7b591d9d3d913
parent1618c590382ef16b1942bf39a42aa683a050ff57 (diff)
downloadglibc-86187531d302de284b67ac162cf76c60c86bd7da.tar.xz
glibc-86187531d302de284b67ac162cf76c60c86bd7da.zip
1997-11-06 00:06 Ulrich Drepper <drepper@cygnus.com> * argp/argp-help.c: Optimize a bit by using mempcpy. * elf/dl-load.c: Likewise. * elf/dl-lookup.c: Likewise. * inet/rcmd.c: Likewise. * io/ftw.c: Likewise. * libio/fileops.c: Likewise. * libio/genops.c: Likewise. * libio/obprintf.c: Likewise. * nss/nsswitch.c: Likewise. * posix/execvp.c: Likewise. * posix/getopt.c: Likewise. * posix/glob.c: Likewise. * posix/wordexp.c: Likewise. * stdio-common/vfprintf.c: Likewise. * stdlib/canonicalize.c: Likewise. * stdlib/msort.c: Likewise. * string/argz-replace.c: Likewise. * sysdeps/generic/putenv.c: Likewise. * sysdeps/generic/setenv.c: Likewise. * sysdeps/posix/getcwd.c: Likewise. * sysdeps/posix/ttyname.c: Likewise. * sysdeps/posix/writev.c: Likewise. * time/strftime.c: Likewise. * time/tzfile.c: Likewise. * login/utmp_daemon.c: Use memcpy instead of strcpy where possible. * sunrpc/svcauth_des.c: Likewise. * sysdeps/unix/sysv/linux/gethostname.c: Likewise. * misc/tsearch.c: Use memcpy return value if possible. * posix/regex.c: Likewise. * sysdeps/unix/readdir_r.c: Likewise. * wcsmbc/wcsdup.c: Likewise. * nss/digits_dots.c: Little optimization. * inet/ruserpass.c (ruserpass): Optimize by using stpcpy. (struct toktab): Make tokstr field a const char *. * elf/dl-profile.c: Fix typo. * inet/ether_ntoh.c: Don't use relative #include path. * inet/gethstbynm.c: Likewise. * resolv/inet_pton.c: Likewise. * shadow/sgetspent_r.c: Likewise. * libio/oldfileops.c (_IO_old_file_jumps): Use correct sync and write callbacks. Patch by NIIBE Yutaka <gniibe@mri.co.jp>. * posix/confstr.c: Correct string for _CS_LFS_CFLAGS. Handle _CS_XBS5_* constants. * posix/unistd.h: Add comment describing _XBS5_* constants. * sysdeps/generic/bits/confname.h: Add _CS_XBS5_* constants. * posix/regex.c: Indent preprocessor code. * posix/wordexp.c: Using _itoa_word instead of sprintf. * stdlib/canonicalize.c: Avoid unnecessary copying. Handle NULL and "" arguments correctly according to SUS. * stdlib/test-canon.c: Test "" and NULL argument handling. * sysdeps/posix/writev.c: Correct condition to leave the loop. 1997-11-05 18:13 Ulrich Drepper <drepper@cygnus.com> * nss/getXXbyYY.c: Set buffer to NULL if realloc fails so that possible next call starts with malloc again. Proposed by Joe Keane <jgk@jgk.org>. 1997-11-04 23:57 Ulrich Drepper <drepper@cygnus.com> * configure.in: Correct gcc -pipe test. Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>. * posix/glob.c: Cleanups. Patch by H.J. Lu <hjl@lucon.org>. 1997-11-04 Andreas Jaeger <aj@arthur.rhein-neckar.de> * manual/creature.texi (Feature Test Macros): Add _POSIX_C_SOURCE definition.
-rw-r--r--BUGS5
-rw-r--r--ChangeLog84
-rw-r--r--argp/argp-help.c12
-rw-r--r--bits/confname.h42
-rwxr-xr-xconfigure69
-rw-r--r--configure.in7
-rw-r--r--elf/dl-load.c39
-rw-r--r--elf/dl-lookup.c4
-rw-r--r--elf/dl-profile.c2
-rw-r--r--inet/ether_ntoh.c4
-rw-r--r--inet/gethstbynm.c2
-rw-r--r--inet/rcmd.c4
-rw-r--r--inet/ruserpass.c4
-rw-r--r--io/ftw.c9
-rw-r--r--libio/fileops.c11
-rw-r--r--libio/genops.c18
-rw-r--r--libio/obprintf.c5
-rw-r--r--libio/oldfileops.c4
-rw-r--r--login/utmp_daemon.c12
-rw-r--r--manual/creature.texi1
-rw-r--r--misc/tsearch.c6
-rw-r--r--nss/digits_dots.c3
-rw-r--r--nss/getXXbyYY.c1
-rw-r--r--nss/nsswitch.c3
-rw-r--r--posix/confstr.c19
-rw-r--r--posix/execvp.c6
-rw-r--r--posix/getopt.c13
-rw-r--r--posix/glob.c204
-rw-r--r--posix/regex.c345
-rw-r--r--posix/unistd.h11
-rw-r--r--posix/wordexp.c49
-rw-r--r--resolv/inet_pton.c2
-rw-r--r--shadow/sgetspent_r.c2
-rw-r--r--stdio-common/vfprintf.c3
-rw-r--r--stdlib/canonicalize.c39
-rw-r--r--stdlib/msort.c5
-rw-r--r--stdlib/test-canon.c24
-rw-r--r--string/argz-replace.c4
-rw-r--r--sunrpc/svcauth_des.c8
-rw-r--r--sysdeps/generic/bits/confname.h42
-rw-r--r--sysdeps/generic/putenv.c8
-rw-r--r--sysdeps/generic/setenv.c12
-rw-r--r--sysdeps/posix/getcwd.c192
-rw-r--r--sysdeps/posix/ttyname.c7
-rw-r--r--sysdeps/posix/writev.c5
-rw-r--r--sysdeps/unix/readdir_r.c5
-rw-r--r--sysdeps/unix/sysv/linux/gethostname.c6
-rw-r--r--time/strftime.c14
-rw-r--r--time/tzfile.c11
-rw-r--r--wcsmbs/wcsdup.c4
50 files changed, 809 insertions, 582 deletions
diff --git a/BUGS b/BUGS
index efe407b4c5..7585e7fe45 100644
--- a/BUGS
+++ b/BUGS
@@ -1,7 +1,7 @@
List of known bugs (certainly very incomplete)
----------------------------------------------
-Time-stamp: <1997-11-02T15:10:48+0100 drepper>
+Time-stamp: <1997-11-05T16:59:11+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
@@ -50,9 +50,6 @@ Severity: [ *] to [***]
[ *] The rcmd() functions (more concrete: the handling of .rhosts) does
not support netgroups and wildcards (+).
-[ *] The first alias definition in locale.alias is ignored.
- [PR libc/205]
-
[ *] When assembling a locale definition, that uses the "copy"
directive, with localedef, not only the copied category is
checked for errors, but the whole file containing the same
diff --git a/ChangeLog b/ChangeLog
index 6b54555f5e..f420373b2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,87 @@
+1997-11-06 00:06 Ulrich Drepper <drepper@cygnus.com>
+
+ * argp/argp-help.c: Optimize a bit by using mempcpy.
+ * elf/dl-load.c: Likewise.
+ * elf/dl-lookup.c: Likewise.
+ * inet/rcmd.c: Likewise.
+ * io/ftw.c: Likewise.
+ * libio/fileops.c: Likewise.
+ * libio/genops.c: Likewise.
+ * libio/obprintf.c: Likewise.
+ * nss/nsswitch.c: Likewise.
+ * posix/execvp.c: Likewise.
+ * posix/getopt.c: Likewise.
+ * posix/glob.c: Likewise.
+ * posix/wordexp.c: Likewise.
+ * stdio-common/vfprintf.c: Likewise.
+ * stdlib/canonicalize.c: Likewise.
+ * stdlib/msort.c: Likewise.
+ * string/argz-replace.c: Likewise.
+ * sysdeps/generic/putenv.c: Likewise.
+ * sysdeps/generic/setenv.c: Likewise.
+ * sysdeps/posix/getcwd.c: Likewise.
+ * sysdeps/posix/ttyname.c: Likewise.
+ * sysdeps/posix/writev.c: Likewise.
+ * time/strftime.c: Likewise.
+ * time/tzfile.c: Likewise.
+
+ * login/utmp_daemon.c: Use memcpy instead of strcpy where possible.
+ * sunrpc/svcauth_des.c: Likewise.
+ * sysdeps/unix/sysv/linux/gethostname.c: Likewise.
+
+ * misc/tsearch.c: Use memcpy return value if possible.
+ * posix/regex.c: Likewise.
+ * sysdeps/unix/readdir_r.c: Likewise.
+ * wcsmbc/wcsdup.c: Likewise.
+
+ * nss/digits_dots.c: Little optimization.
+
+ * inet/ruserpass.c (ruserpass): Optimize by using stpcpy.
+ (struct toktab): Make tokstr field a const char *.
+
+ * elf/dl-profile.c: Fix typo.
+
+ * inet/ether_ntoh.c: Don't use relative #include path.
+ * inet/gethstbynm.c: Likewise.
+ * resolv/inet_pton.c: Likewise.
+ * shadow/sgetspent_r.c: Likewise.
+
+ * libio/oldfileops.c (_IO_old_file_jumps): Use correct sync and write
+ callbacks. Patch by NIIBE Yutaka <gniibe@mri.co.jp>.
+
+ * posix/confstr.c: Correct string for _CS_LFS_CFLAGS.
+ Handle _CS_XBS5_* constants.
+ * posix/unistd.h: Add comment describing _XBS5_* constants.
+ * sysdeps/generic/bits/confname.h: Add _CS_XBS5_* constants.
+
+ * posix/regex.c: Indent preprocessor code.
+
+ * posix/wordexp.c: Using _itoa_word instead of sprintf.
+
+ * stdlib/canonicalize.c: Avoid unnecessary copying. Handle NULL
+ and "" arguments correctly according to SUS.
+ * stdlib/test-canon.c: Test "" and NULL argument handling.
+
+ * sysdeps/posix/writev.c: Correct condition to leave the loop.
+
+1997-11-05 18:13 Ulrich Drepper <drepper@cygnus.com>
+
+ * nss/getXXbyYY.c: Set buffer to NULL if realloc fails so that possible
+ next call starts with malloc again.
+ Proposed by Joe Keane <jgk@jgk.org>.
+
+1997-11-04 23:57 Ulrich Drepper <drepper@cygnus.com>
+
+ * configure.in: Correct gcc -pipe test.
+ Patch by Zack Weinberg <zack@rabi.phys.columbia.edu>.
+
+ * posix/glob.c: Cleanups. Patch by H.J. Lu <hjl@lucon.org>.
+
+1997-11-04 Andreas Jaeger <aj@arthur.rhein-neckar.de>
+
+ * manual/creature.texi (Feature Test Macros): Add _POSIX_C_SOURCE
+ definition.
+
1997-11-04 Ulrich Drepper <drepper@cygnus.com>
* manual/filesys.texi: Correct description of return value for
diff --git a/argp/argp-help.c b/argp/argp-help.c
index f0e86d9ca2..8faacd5312 100644
--- a/argp/argp-help.c
+++ b/argp/argp-help.c
@@ -778,7 +778,7 @@ hol_append (struct hol *hol, struct hol *more)
more->num_entries = 0; /* Mark MORE's fields as invalid. */
}
else
- /* append the entries in MORE to those in HOL, taking care to only add
+ /* Append the entries in MORE to those in HOL, taking care to only add
non-shadowed SHORT_OPTIONS values. */
{
unsigned left;
@@ -791,12 +791,12 @@ hol_append (struct hol *hol, struct hol *more)
char *short_options =
malloc (hol_so_len + strlen (more->short_options) + 1);
- memcpy (entries, hol->entries,
- hol->num_entries * sizeof (struct hol_entry));
- memcpy (entries + hol->num_entries, more->entries,
- more->num_entries * sizeof (struct hol_entry));
+ __mempcpy (__mempcpy (entries, hol->entries,
+ hol->num_entries * sizeof (struct hol_entry)),
+ more->entries,
+ more->num_entries * sizeof (struct hol_entry));
- memcpy (short_options, hol->short_options, hol_so_len);
+ __mempcpy (short_options, hol->short_options, hol_so_len);
/* Fix up the short options pointers from HOL. */
for (e = entries, left = hol->num_entries; left > 0; e++, left--)
diff --git a/bits/confname.h b/bits/confname.h
index 6926cad0ad..40228e11ed 100644
--- a/bits/confname.h
+++ b/bits/confname.h
@@ -316,8 +316,9 @@ enum
#define _SC_NL_TEXTMAX _SC_NL_TEXTMAX
};
-#if (defined __USE_POSIX2 || defined __USE_FILE_OFFSET64 \
- || defined __USE_LARGEFILE64 || defined __USE_LARGEFILE)
+#if (defined __USE_POSIX2 || defined __USE_UNIX98 \
+ || defined __USE_FILE_OFFSET64 || defined __USE_LARGEFILE64 \
+ || defined __USE_LARGEFILE)
/* Values for the NAME argument to `confstr'. */
enum
{
@@ -340,8 +341,43 @@ enum
# define _CS_LFS64_LDFLAGS _CS_LFS64_LDFLAGS
_CS_LFS64_LIBS,
# define _CS_LFS64_LIBS _CS_LFS64_LIBS
- _CS_LFS64_LINTFLAGS
+ _CS_LFS64_LINTFLAGS,
# define _CS_LFS64_LINTFLAGS _CS_LFS64_LINTFLAGS
#endif
+
+#ifdef __USE_UNIX98
+ _CS_XBS5_ILP32_OFF32_CFLAGS = 1100,
+# define _CS_XBS5_ILP32_OFF32_CFLAGS _CS_XBS5_ILP32_OFF32_CFLAGS
+ _CS_XBS5_ILP32_OFF32_LDFLAGS,
+# define _CS_XBS5_ILP32_OFF32_LDFLAGS _CS_XBS5_ILP32_OFF32_LDFLAGS
+ _CS_XBS5_ILP32_OFF32_LIBS,
+# define _CS_XBS5_ILP32_OFF32_LIBS _CS_XBS5_ILP32_OFF32_LIBS
+ _CS_XBS5_ILP32_OFF32_LINTFLAGS,
+# define _CS_XBS5_ILP32_OFF32_LINTFLAGS _CS_XBS5_ILP32_OFF32_LINTFLAGS
+ _CS_XBS5_ILP32_OFFBIG_CFLAGS,
+# define _CS_XBS5_ILP32_OFFBIG_CFLAGS _CS_XBS5_ILP32_OFFBIG_CFLAGS
+ _CS_XBS5_ILP32_OFFBIG_LDFLAGS,
+# define _CS_XBS5_ILP32_OFFBIG_LDFLAGS _CS_XBS5_ILP32_OFFBIG_LDFLAGS
+ _CS_XBS5_ILP32_OFFBIG_LIBS,
+# define _CS_XBS5_ILP32_OFFBIG_LIBS _CS_XBS5_ILP32_OFFBIG_LIBS
+ _CS_XBS5_ILP32_OFFBIG_LINTFLAGS,
+# define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS _CS_XBS5_ILP32_OFFBIG_LINTFLAGS
+ _CS_XBS5_LP64_OFF64_CFLAGS,
+# define _CS_XBS5_LP64_OFF64_CFLAGS _CS_XBS5_LP64_OFF64_CFLAGS
+ _CS_XBS5_LP64_OFF64_LDFLAGS,
+# define _CS_XBS5_LP64_OFF64_LDFLAGS _CS_XBS5_LP64_OFF64_LDFLAGS
+ _CS_XBS5_LP64_OFF64_LIBS,
+# define _CS_XBS5_LP64_OFF64_LIBS _CS_XBS5_LP64_OFF64_LIBS
+ _CS_XBS5_LP64_OFF64_LINTFLAGS,
+# define _CS_XBS5_LP64_OFF64_LINTFLAGS _CS_XBS5_LP64_OFF64_LINTFLAGS
+ _CS_XBS5_LPBIG_OFFBIG_CFLAGS,
+# define _CS_XBS5_LPBIG_OFFBIG_CFLAGS _CS_XBS5_LPBIG_OFFBIG_CFLAGS
+ _CS_XBS5_LPBIG_OFFBIG_LDFLAGS,
+# define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS _CS_XBS5_LPBIG_OFFBIG_LDFLAGS
+ _CS_XBS5_LPBIG_OFFBIG_LIBS,
+# define _CS_XBS5_LPBIG_OFFBIG_LIBS _CS_XBS5_LPBIG_OFFBIG_LIBS
+ _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS,
+# define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS
+#endif
};
#endif
diff --git a/configure b/configure
index 2955226441..2ef2feef14 100755
--- a/configure
+++ b/configure
@@ -1826,10 +1826,11 @@ echo "configure:1826: checking for gcc 2.7.x -pipe bug" >&5
if eval "test \"`echo '$''{'libc_cv_gcc_pipe_bug'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
- cat >conftest.s <<EOF
-foo:
+ cp /dev/null conftest.s
+ cat >conftest1.s <<EOF
+.nosuchdirective
EOF
- if ${CC-cc} -pipe -c conftest.s <conftest.s 2>/dev/null; then
+ if ${CC-cc} -pipe -c conftest.s <conftest1.s 2>/dev/null; then
libc_cv_gcc_pipe_bug=no
else
libc_cv_gcc_pipe_bug=yes
@@ -1850,7 +1851,7 @@ else
fi
echo $ac_n "checking for assembler global-symbol directive""... $ac_c" 1>&6
-echo "configure:1854: checking for assembler global-symbol directive" >&5
+echo "configure:1855: checking for assembler global-symbol directive" >&5
if eval "test \"`echo '$''{'libc_cv_asm_global_directive'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1880,7 +1881,7 @@ EOF
fi
echo $ac_n "checking for .set assembler directive""... $ac_c" 1>&6
-echo "configure:1884: checking for .set assembler directive" >&5
+echo "configure:1885: checking for .set assembler directive" >&5
if eval "test \"`echo '$''{'libc_cv_asm_set_directive'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1914,7 +1915,7 @@ EOF
fi
echo $ac_n "checking for .symver assembler directive""... $ac_c" 1>&6
-echo "configure:1918: checking for .symver assembler directive" >&5
+echo "configure:1919: checking for .symver assembler directive" >&5
if eval "test \"`echo '$''{'libc_cv_asm_symver_directive'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1933,7 +1934,7 @@ fi
echo "$ac_t""$libc_cv_asm_symver_directive" 1>&6
echo $ac_n "checking for ld --version-script""... $ac_c" 1>&6
-echo "configure:1937: checking for ld --version-script" >&5
+echo "configure:1938: checking for ld --version-script" >&5
if eval "test \"`echo '$''{'libc_cv_ld_version_script_option'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1952,7 +1953,7 @@ EOF
if { ac_try='${CC-cc} $CFLAGS -shared -o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
- 1>&5'; { (eval echo configure:1956: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
+ 1>&5'; { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; };
then
libc_cv_ld_version_script_option=yes
else
@@ -1983,7 +1984,7 @@ fi
if test $elf = yes; then
echo $ac_n "checking for .previous assembler directive""... $ac_c" 1>&6