platform/upstream/glibc.git
14 years agoFix possibly uninitilized variable handling.
Ulrich Drepper [Fri, 9 Apr 2010 00:12:42 +0000 (17:12 -0700)]
Fix possibly uninitilized variable handling.

If malloc errors are ignored (which say aren't by default and never
should be) malloc in the old, slow form might use an uninitialized
variable.

14 years agoShorten build commands
Daniel Jacobowitz [Thu, 8 Apr 2010 23:48:17 +0000 (16:48 -0700)]
Shorten build commands

This patch scratches an itch.  Each individual gcc command in the
glibc build is over 1K, which means it takes up a good chunk of my
terminal.  Most of that is include paths.  Any version of GCC new
enough to build glibc supports response files, which were added in
2005.  So use a response file for the static list of include paths.
Now the build commands are a lot shorter, and easier to use when
developing glibc.

14 years agoFix whitespaces.
Ulrich Drepper [Thu, 8 Apr 2010 23:09:15 +0000 (16:09 -0700)]
Fix whitespaces.

14 years agoMerge remote branch 'origin/roland/hwcap_mask'
Ulrich Drepper [Thu, 8 Apr 2010 23:06:54 +0000 (16:06 -0700)]
Merge remote branch 'origin/roland/hwcap_mask'

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/glibc
Ulrich Drepper [Thu, 8 Apr 2010 22:57:39 +0000 (15:57 -0700)]
Merge branch 'master' of ssh://sources.redhat.com/git/glibc

Conflicts:
ChangeLog

14 years agoFix fallocate error return on i386.
Andreas Schwab [Thu, 8 Apr 2010 22:44:55 +0000 (15:44 -0700)]
Fix fallocate error return on i386.

14 years agoFix cproj implmentation.
Ulrich Drepper [Thu, 8 Apr 2010 22:32:51 +0000 (15:32 -0700)]
Fix cproj implmentation.

14 years agoFix libc-abis rules to be correct for add-on ports.
Roland McGrath [Thu, 8 Apr 2010 22:29:19 +0000 (15:29 -0700)]
Fix libc-abis rules to be correct for add-on ports.

14 years agoMore NEWS for 2.12.
Ulrich Drepper [Thu, 8 Apr 2010 15:00:12 +0000 (08:00 -0700)]
More NEWS for 2.12.

14 years agokok_IN locale should have been support for some time.
Ulrich Drepper [Thu, 8 Apr 2010 14:59:38 +0000 (07:59 -0700)]
kok_IN locale should have been support for some time.

14 years agoHook up sq_MK locale.
Ulrich Drepper [Thu, 8 Apr 2010 14:15:31 +0000 (07:15 -0700)]
Hook up sq_MK locale.

14 years agoAlbanian language locale for Macedonia
Agron Selimaj [Thu, 8 Apr 2010 14:15:17 +0000 (07:15 -0700)]
Albanian language locale for Macedonia

14 years agoAdd tests for recent getopt changes.
Ulrich Drepper [Thu, 8 Apr 2010 05:59:40 +0000 (22:59 -0700)]
Add tests for recent getopt changes.

14 years agogetopt mishandles optstring of "+:"
Eric Blake [Thu, 8 Apr 2010 00:56:20 +0000 (17:56 -0700)]
getopt mishandles optstring of "+:"

14 years agogetopt mistakenly allows '-;' as short option
Eric Blake [Thu, 8 Apr 2010 00:28:36 +0000 (17:28 -0700)]
getopt mistakenly allows '-;' as short option

14 years agoFix -W with optional parameters in getopt.
Eric Blake [Thu, 8 Apr 2010 00:16:27 +0000 (17:16 -0700)]
Fix -W with optional parameters in getopt.

According to the getopt documentation, if "W;" is part of optstring, then '-W
foo' should behave like '--foo'.  But if "foo" uses an optional_argument, this
is not the case, since optarg is not NULL when using -W.

14 years agoFix Mr. Mrs. Ms. and Miss in sq_AL
Agron Selimaj [Wed, 7 Apr 2010 20:08:19 +0000 (13:08 -0700)]
Fix Mr. Mrs. Ms. and Miss in sq_AL

14 years agoImplement new mode for NIS passwd.adjunct.byname table.
Ulrich Drepper [Wed, 7 Apr 2010 14:37:39 +0000 (07:37 -0700)]
Implement new mode for NIS passwd.adjunct.byname table.

The passwd.adjunct.byname table will not be used to fill in password fields
in the passwd.byname replies.  Instead it is used to synthesize the
shadow.byname table, should it be missing.  This is a useful mode in some
installations involving Solaris.

14 years agoFix non-add-on handling of libc-abis.
H.J. Lu [Wed, 7 Apr 2010 13:38:35 +0000 (06:38 -0700)]
Fix non-add-on handling of libc-abis.

14 years agoFix libc-abis handling for add-ons.
Joseph Myers [Wed, 7 Apr 2010 00:32:29 +0000 (17:32 -0700)]
Fix libc-abis handling for add-ons.

14 years agoPropagate -fdebug-prefix-map from CFLAGS to ASFLAGS.
Paul Pluzhnikov [Tue, 6 Apr 2010 03:17:37 +0000 (20:17 -0700)]
Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS.

14 years agoelf/elf.h (ELFOSABI_ARM_AEABI): Define.
Joseph Myers [Tue, 6 Apr 2010 03:14:43 +0000 (20:14 -0700)]
elf/elf.h (ELFOSABI_ARM_AEABI): Define.

14 years agoMove unwind-resume code from NPTL to sysdeps/gnu.
Roland McGrath [Tue, 6 Apr 2010 03:07:39 +0000 (20:07 -0700)]
Move unwind-resume code from NPTL to sysdeps/gnu.

14 years agoObey LD_HWCAP_MASK in ld.so.cache lookups.
Roland McGrath [Tue, 6 Apr 2010 02:43:05 +0000 (19:43 -0700)]
Obey LD_HWCAP_MASK in ld.so.cache lookups.

14 years agoelf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.
Roland McGrath [Tue, 6 Apr 2010 02:44:16 +0000 (19:44 -0700)]
elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.

14 years agoUpdate dutch translation.
Ulrich Drepper [Mon, 5 Apr 2010 20:10:56 +0000 (13:10 -0700)]
Update dutch translation.

14 years agoDefine thousands separator handling for numbers in pt_BR.
Ulrich Drepper [Mon, 5 Apr 2010 19:35:48 +0000 (12:35 -0700)]
Define thousands separator handling for numbers in pt_BR.

14 years agoHandle DNS timeouts in old-style lookkup code.
Ulrich Drepper [Mon, 5 Apr 2010 19:21:20 +0000 (12:21 -0700)]
Handle DNS timeouts in old-style lookkup code.

14 years agoFix aux cache handling in ldconfig with chroot.
Ulrich Drepper [Mon, 5 Apr 2010 18:26:43 +0000 (11:26 -0700)]
Fix aux cache handling in ldconfig with chroot.

14 years agoFix printing error messages in getopt.
Ulrich Drepper [Mon, 5 Apr 2010 05:48:55 +0000 (22:48 -0700)]
Fix printing error messages in getopt.

14 years agoDeclare iruserok and iruserok_af.
Ulrich Drepper [Mon, 5 Apr 2010 05:01:52 +0000 (22:01 -0700)]
Declare iruserok and iruserok_af.

14 years agoAdd test case for last argp bug.
Ulrich Drepper [Sun, 4 Apr 2010 18:28:36 +0000 (11:28 -0700)]
Add test case for last argp bug.

14 years agoFix option aliasing in argp.
Sergey Poznyakoff [Sun, 4 Apr 2010 17:04:55 +0000 (10:04 -0700)]
Fix option aliasing in argp.

14 years agoVarious changes to the es_CR locale.
Marcelo E. Magallon [Sun, 4 Apr 2010 09:14:37 +0000 (02:14 -0700)]
Various changes to the es_CR locale.

14 years agoFix weekday definition for fr_BE locale.
Ulrich Drepper [Sun, 4 Apr 2010 09:11:22 +0000 (02:11 -0700)]
Fix weekday definition for fr_BE locale.

14 years agoHandle POSIX-compliant errno value of unlink in remove.
Ulrich Drepper [Sun, 4 Apr 2010 09:08:37 +0000 (02:08 -0700)]
Handle POSIX-compliant errno value of unlink in remove.

14 years agoFix definition and testing of S_ISSOCK.
Ulrich Drepper [Sun, 4 Apr 2010 08:51:01 +0000 (01:51 -0700)]
Fix definition and testing of S_ISSOCK.

14 years agoFix retrieving of kernel header version.
Ulrich Drepper [Sun, 4 Apr 2010 08:02:09 +0000 (01:02 -0700)]
Fix retrieving of kernel header version.

14 years agoFix concurrent handling of __cpu_features.
Ulrich Drepper [Sun, 4 Apr 2010 07:25:46 +0000 (00:25 -0700)]
Fix concurrent handling of __cpu_features.

14 years agoHandle unnecessary padding in getdents64.
Ulrich Drepper [Sun, 4 Apr 2010 06:51:40 +0000 (23:51 -0700)]
Handle unnecessary padding in getdents64.

The getdents64 syscall adds on 32-but platforms padding which isn't needed
and not included in the userlevel data structure definition.  We have to
avoid copying those padding bytes in the readdir64_r function.

14 years agoAdd missing include.
Ulrich Drepper [Sun, 4 Apr 2010 06:10:16 +0000 (23:10 -0700)]
Add missing include.

14 years agoFix changes to interface list during getifaddrs calls.
Ulrich Drepper [Sun, 4 Apr 2010 03:36:59 +0000 (20:36 -0700)]
Fix changes to interface list during getifaddrs calls.

14 years agoRemove incorrect paring of /proc/stat etc.
Ryan S. Arnold [Sun, 4 Apr 2010 02:20:29 +0000 (19:20 -0700)]
Remove incorrect paring of /proc/stat etc.

14 years agoDocument problem with NATs in getaddrinfo.
Ulrich Drepper [Sun, 4 Apr 2010 00:56:51 +0000 (17:56 -0700)]
Document problem with NATs in getaddrinfo.

14 years agoMissing memory barrier in DES initialization.
Ulrich Drepper [Sat, 3 Apr 2010 20:45:02 +0000 (13:45 -0700)]
Missing memory barrier in DES initialization.

14 years agoOne more sanity check in free.
Ulrich Drepper [Sat, 3 Apr 2010 16:47:01 +0000 (09:47 -0700)]
One more sanity check in free.

14 years agoFix set_max_fast in malloc.
Ulrich Drepper [Sat, 3 Apr 2010 16:43:10 +0000 (09:43 -0700)]
Fix set_max_fast in malloc.

14 years agoFix build of mmap64.
David S. Miller [Wed, 31 Mar 2010 21:07:39 +0000 (14:07 -0700)]
Fix build of mmap64.

14 years agoDefine MSG_WAITFORONE.
Ulrich Drepper [Tue, 30 Mar 2010 05:31:44 +0000 (22:31 -0700)]
Define MSG_WAITFORONE.

14 years agoFix typos from last patch.
Ulrich Drepper [Tue, 30 Mar 2010 01:43:06 +0000 (18:43 -0700)]
Fix typos from last patch.

14 years agoHandle platforms without aux vector
Thomas Schwinge [Mon, 29 Mar 2010 22:13:53 +0000 (15:13 -0700)]
Handle platforms without aux vector

14 years agoOptimize __getpagesize a bit.
Ulrich Drepper [Sat, 27 Mar 2010 13:19:50 +0000 (06:19 -0700)]
Optimize __getpagesize a bit.

14 years agoWhitespace fixes.
Ulrich Drepper [Sat, 27 Mar 2010 13:19:03 +0000 (06:19 -0700)]
Whitespace fixes.

14 years agoFix handling of __need_mbstate_t and __need_wint_t.
Ulrich Drepper [Sat, 27 Mar 2010 13:06:35 +0000 (06:06 -0700)]
Fix handling of __need_mbstate_t and __need_wint_t.

Like the real header, the libc-internal wrapper for wchar.h needs to
undefine the macros so that if the header was already included before
the macros don't stay defined and cause problems later.

14 years agoFix one more issue with the glob patch.
Ulrich Drepper [Sat, 27 Mar 2010 12:48:17 +0000 (05:48 -0700)]
Fix one more issue with the glob patch.

14 years agoFix comments and indentation.
Ulrich Drepper [Sat, 27 Mar 2010 11:48:18 +0000 (04:48 -0700)]
Fix comments and indentation.

14 years agoDefine miss_F_GETOWN_EX only if needed.
Ulrich Drepper [Sat, 27 Mar 2010 11:11:14 +0000 (04:11 -0700)]
Define miss_F_GETOWN_EX only if needed.

When doing i686-unknown-linux-gnu build configured with --enable-kernel=2.6.24,
there are several warnings like this:

  ../sysdeps/unix/sysv/linux/i386/fcntl.c:36:12: warning: ‘miss_F_GETOWN_EX’ defined but not used

14 years agoShorted ChangeLog.
Ulrich Drepper [Fri, 26 Mar 2010 20:33:26 +0000 (13:33 -0700)]
Shorted ChangeLog.

14 years agoMark _dl_random attribute_relro in the header file.
Richard Henderson [Fri, 26 Mar 2010 16:51:57 +0000 (09:51 -0700)]
Mark _dl_random attribute_relro in the header file.

It's already so marked in dl-sysdep.c.  Failure to so mark
in the header file leads the compiler to believe that the
variable should be addressable via the .sdata section.

Signed-off-by: Richard Henderson <rth@twiddle.net>
14 years agoFix printf format warning for si_band.
Richard Henderson [Fri, 26 Mar 2010 16:48:44 +0000 (09:48 -0700)]
Fix printf format warning for si_band.

Signed-off-by: Richard Henderson <rth@twiddle.net>
14 years agoFinish locale_data -> __locale_data transition.
Richard Henderson [Fri, 26 Mar 2010 16:21:34 +0000 (09:21 -0700)]
Finish locale_data -> __locale_data transition.

The transition that was begun here
f095bb7204d80f609a73a22796edd6cffd4c6add
was not complete.

Signed-off-by: Richard Henderson <rth@twiddle.net>
14 years agoDon't take the address of a void object.
Richard Henderson [Fri, 26 Mar 2010 16:16:21 +0000 (09:16 -0700)]
Don't take the address of a void object.

GCC 4.5 warns about "extern void _end; &end;".
Use char[] instead, as that also doesn't fall foul
of a target's .sdata optimizations.

Signed-off-by: Richard Henderson <rth@twiddle.net>
14 years agoFix one case of last checkin.
Ulrich Drepper [Fri, 26 Mar 2010 12:52:39 +0000 (05:52 -0700)]
Fix one case of last checkin.

If the v4 lookup failed but v6 succeeded we treat this as a success.

14 years agoDon't abort immediately on successful lookup in getaddrinfo.
Ulrich Drepper [Fri, 26 Mar 2010 12:40:27 +0000 (05:40 -0700)]
Don't abort immediately on successful lookup in getaddrinfo.

When not using gethostbyname4 methods we immediately aborted the loop
over the nss modules on the first successful lookup.  While this is
almost always what is wanted the nsswitch.conf file allows to select
something different.

14 years agoFix spurious UNAVAIL status is getaddrinfo
Andreas Schwab [Fri, 26 Mar 2010 12:35:50 +0000 (05:35 -0700)]
Fix spurious UNAVAIL status is getaddrinfo

14 years agoRemove stale reference to website
Ulrich Drepper [Fri, 26 Mar 2010 12:09:55 +0000 (05:09 -0700)]
Remove stale reference to website

14 years agoRemove unwanted malloc changes, again.
Ulrich Drepper [Fri, 26 Mar 2010 11:00:10 +0000 (04:00 -0700)]
Remove unwanted malloc changes, again.

14 years agoMerge branch 'master' of ssh://sources.redhat.com/git/glibc
Ulrich Drepper [Fri, 26 Mar 2010 02:45:20 +0000 (19:45 -0700)]
Merge branch 'master' of ssh://sources.redhat.com/git/glibc

Conflicts:
ChangeLog

14 years agoAdd support for new clocks.
Ulrich Drepper [Thu, 25 Mar 2010 11:01:33 +0000 (04:01 -0700)]
Add support for new clocks.

Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.

14 years agoFix typo in cuserid
Andreas Schwab [Thu, 25 Mar 2010 10:35:05 +0000 (11:35 +0100)]
Fix typo in cuserid

14 years agoocale-archive differs between 32 and 64 bit platforms
Chris Demetriou [Thu, 25 Mar 2010 00:10:47 +0000 (17:10 -0700)]
ocale-archive differs between 32 and 64 bit platforms

14 years agoFix Linux getlogin{_r,} implementation
Ulrich Drepper [Thu, 25 Mar 2010 00:02:57 +0000 (17:02 -0700)]
Fix Linux getlogin{_r,} implementation

The old implementation uses fd 0 to determine the login TTY.  This
was needed because using /dev/tty it is not possible to deduce the
login TTY.  For some time now there is the pseudo-file
/proc/self/loginuid which directly helps us to find the user.  Prefer
using this file.  It also works if stdin is closed, redirected, or
re-opened.

14 years agocalls to cuserid() can result in buffer overruns and/or overflows
Jonathan Geisler [Wed, 24 Mar 2010 23:02:15 +0000 (16:02 -0700)]
calls to cuserid() can result in buffer overruns and/or overflows

14 years agoChange first_weekday and first_workday in et_EE locale
Priit Laes [Wed, 24 Mar 2010 22:50:02 +0000 (15:50 -0700)]
Change first_weekday and first_workday in et_EE locale

14 years agoAllow variable shift values in mmap2.
Ulrich Drepper [Wed, 24 Mar 2010 21:59:43 +0000 (14:59 -0700)]
Allow variable shift values in mmap2.

14 years agoEnable common version of pthread_cond_timedwait to use clock_gettime in VDSO
Luis Machado [Wed, 24 Mar 2010 21:46:03 +0000 (14:46 -0700)]
Enable common version of pthread_cond_timedwait to use clock_gettime in VDSO

14 years agoDon't define __strpbrk_sse42 in static library
H.J. Lu [Wed, 24 Mar 2010 19:16:24 +0000 (12:16 -0700)]
Don't define __strpbrk_sse42 in static library

14 years agoTest case for last x86 memcmp problem
H.J. Lu [Wed, 24 Mar 2010 19:14:03 +0000 (12:14 -0700)]
Test case for last x86 memcmp problem

14 years agoAdd test for last glob bug.
Ulrich Drepper [Wed, 24 Mar 2010 19:10:51 +0000 (12:10 -0700)]
Add test for last glob bug.

14 years agoFix glob with empty pattern
Ulrich Drepper [Wed, 24 Mar 2010 18:58:05 +0000 (11:58 -0700)]
Fix glob with empty pattern

14 years agoFix handling of STB_GNU_UNIQUE in LD_TRACE_PRELINKING
Ulrich Drepper [Wed, 24 Mar 2010 17:14:22 +0000 (10:14 -0700)]
Fix handling of STB_GNU_UNIQUE in LD_TRACE_PRELINKING

14 years agoUnify wint_t handling in wchar.h and wctype.h.
Ulrich Drepper [Wed, 24 Mar 2010 13:59:02 +0000 (06:59 -0700)]
Unify wint_t handling in wchar.h and wctype.h.

Fix a few typos in the process.

14 years agoFuture safety in checking ELF header.
Ulrich Drepper [Thu, 18 Mar 2010 20:15:27 +0000 (13:15 -0700)]
Future safety in checking ELF header.

If we should use further fields in the e_ident array in the ELF header
of files we want zero to mean the default.  Enforce zero for now so
that non-optional features indicated by nonzero values are not go
unnoticed when using an old dynamic linker.

14 years agoFix sysdeps/i386/i686/multiarch/memcmp-ssse3.S
H.J. Lu [Thu, 18 Mar 2010 18:40:46 +0000 (11:40 -0700)]
Fix sysdeps/i386/i686/multiarch/memcmp-ssse3.S

14 years agoFix missing dependency of localedata tests on gconv-modules
Paul Pluzhnikov [Wed, 17 Mar 2010 16:01:34 +0000 (09:01 -0700)]
Fix missing dependency of localedata tests on gconv-modules

14 years agoFix debug statements in resolver
Andreas Schwab [Wed, 17 Mar 2010 13:57:38 +0000 (06:57 -0700)]
Fix debug statements in resolver

14 years agoA few more archs have IFUNC support.
Ulrich Drepper [Wed, 17 Mar 2010 09:43:12 +0000 (02:43 -0700)]
A few more archs have IFUNC support.

14 years agoExtended ELF ABI version handling only for Linux.
Ulrich Drepper [Wed, 17 Mar 2010 06:34:59 +0000 (23:34 -0700)]
Extended ELF ABI version handling only for Linux.

If the OSABI is generic we should not allow the ABI version to be nonzero.
Move all the new functionality into Linux-specific files.

14 years agoAlso update Linux-specific VALID_ELF_ABIVERSION definition.
Ulrich Drepper [Tue, 16 Mar 2010 21:39:45 +0000 (14:39 -0700)]
Also update Linux-specific VALID_ELF_ABIVERSION definition.

14 years agoMissing files for libc ABI handling.
Ulrich Drepper [Tue, 16 Mar 2010 11:47:33 +0000 (04:47 -0700)]
Missing files for libc ABI handling.

14 years agoUpdate copyright year.
Ulrich Drepper [Mon, 15 Mar 2010 18:50:59 +0000 (11:50 -0700)]
Update copyright year.

14 years agoImplement handling of libc ABI in ELF header.
Ulrich Drepper [Mon, 15 Mar 2010 18:44:58 +0000 (11:44 -0700)]
Implement handling of libc ABI in ELF header.

14 years agoDefine UMOUNT_NOFOLLOW.
Ulrich Drepper [Fri, 12 Mar 2010 16:44:10 +0000 (08:44 -0800)]
Define UMOUNT_NOFOLLOW.

14 years agoDon't underestimate length of DST substitution
Andreas Schwab [Fri, 12 Mar 2010 15:57:19 +0000 (07:57 -0800)]
Don't underestimate length of DST substitution

14 years agoelf.h: Add missing R_X86_64_*64 relocs.
Roland McGrath [Thu, 11 Mar 2010 08:44:28 +0000 (00:44 -0800)]
elf.h: Add missing R_X86_64_*64 relocs.

14 years agoFix whitespace issues.
Ulrich Drepper [Wed, 10 Mar 2010 15:28:04 +0000 (07:28 -0800)]
Fix whitespace issues.

14 years agopower7-optimized 64-bit and 32-bit memcpy
Luis Machado [Wed, 10 Mar 2010 15:14:16 +0000 (07:14 -0800)]
power7-optimized 64-bit and 32-bit memcpy

14 years agoFix a few more problem with the recent setxid changes.
Ulrich Drepper [Wed, 10 Mar 2010 04:21:12 +0000 (20:21 -0800)]
Fix a few more problem with the recent setxid changes.

14 years agosparc: Optimize strlen using techniques from powerpc implementation.
David S. Miller [Tue, 9 Mar 2010 14:42:53 +0000 (06:42 -0800)]
sparc: Optimize strlen using techniques from powerpc implementation.

14 years agosparc32: Fix non-v9 build failure in memcpy.
David S. Miller [Tue, 9 Mar 2010 14:37:45 +0000 (06:37 -0800)]
sparc32: Fix non-v9 build failure in memcpy.