platform/upstream/linaro-glibc.git
14 years agoUse a stamp file for libc-abis.h rule.
Roland McGrath [Fri, 9 Apr 2010 22:31:45 +0000 (15:31 -0700)]
Use a stamp file for libc-abis.h rule.

14 years agoRevert "Shorten build commands"
Roland McGrath [Fri, 9 Apr 2010 22:18:58 +0000 (15:18 -0700)]
Revert "Shorten build commands"

This reverts commit 59d9f1d6983fc9b606a1f9214fb817efe3d6cff8.

14 years agoFix tst-chmod not to write into srcdir.
Roland McGrath [Fri, 9 Apr 2010 20:59:34 +0000 (13:59 -0700)]
Fix tst-chmod not to write into srcdir.

14 years agoFix typo in last commit.
Ulrich Drepper [Fri, 9 Apr 2010 19:29:18 +0000 (12:29 -0700)]
Fix typo in last commit.

14 years agoAdd BZ to an older patch.
Ulrich Drepper [Fri, 9 Apr 2010 14:56:29 +0000 (07:56 -0700)]
Add BZ to an older patch.

14 years agoImplement interfaces to set and get names of threads.
Ulrich Drepper [Fri, 9 Apr 2010 08:09:24 +0000 (01:09 -0700)]
Implement interfaces to set and get names of threads.

At least the Linux kernel provides field where the kernel originally
stores the command which is executed by the thread.  The value can
subsequently be overwritten.  The added functions allow to do that for
threads, providing and abstraction around the syscalls or /proc file
system accesses needed.

14 years agoFix typo in locale source file.
Ulrich Drepper [Fri, 9 Apr 2010 05:54:15 +0000 (22:54 -0700)]
Fix typo in locale source file.

14 years agoWhitespace issues.
Ulrich Drepper [Fri, 9 Apr 2010 03:29:15 +0000 (20:29 -0700)]
Whitespace issues.

14 years agoMore news. Add BZ info for current and previous releases.
Ulrich Drepper [Fri, 9 Apr 2010 03:28:05 +0000 (20:28 -0700)]
More news.  Add BZ info for current and previous releases.

14 years agoBuild cv_RU locale.
Ulrich Drepper [Fri, 9 Apr 2010 03:16:53 +0000 (20:16 -0700)]
Build cv_RU locale.

14 years agoChuvash language locale for Russia.
Adi Roiban [Fri, 9 Apr 2010 03:16:27 +0000 (20:16 -0700)]
Chuvash language locale for Russia.

14 years agoAdd BZ number.
Ulrich Drepper [Fri, 9 Apr 2010 03:10:26 +0000 (20:10 -0700)]
Add BZ number.

14 years agoPrint reload count in nscd statistics.
Ulrich Drepper [Fri, 9 Apr 2010 02:58:29 +0000 (19:58 -0700)]
Print reload count in nscd statistics.

14 years agoChange es_GT paper sizxe to letter.
Ulrich Drepper [Fri, 9 Apr 2010 02:44:21 +0000 (19:44 -0700)]
Change es_GT paper sizxe to letter.

14 years agoFix reading loginuid file in getlogin{,_r}.
Ulrich Drepper [Fri, 9 Apr 2010 02:04:33 +0000 (19:04 -0700)]
Fix reading loginuid file in getlogin{,_r}.

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