platform/upstream/linaro-glibc.git
12 years agoRemove unused sysdeps/unix/{xstat,fxstat}.c.
Joseph Myers [Fri, 20 Apr 2012 19:55:22 +0000 (19:55 +0000)]
Remove unused sysdeps/unix/{xstat,fxstat}.c.

12 years agoRemove unused sysdeps/unix/sysv/sigaction.c.
Joseph Myers [Fri, 20 Apr 2012 17:01:47 +0000 (17:01 +0000)]
Remove unused sysdeps/unix/sysv/sigaction.c.

12 years agoRemove unused sysdeps/unix/sysv termio code.
Joseph Myers [Fri, 20 Apr 2012 17:00:40 +0000 (17:00 +0000)]
Remove unused sysdeps/unix/sysv termio code.

12 years agoRemove unused sysdeps/unix/siglist.c.
Joseph Myers [Fri, 20 Apr 2012 16:59:41 +0000 (16:59 +0000)]
Remove unused sysdeps/unix/siglist.c.

12 years agoRemove unused sysdeps/unix/getppid.S.
Joseph Myers [Fri, 20 Apr 2012 16:58:45 +0000 (16:58 +0000)]
Remove unused sysdeps/unix/getppid.S.

12 years agoRemove unused sysdeps/unix/{mkdir.c,rmdir.c}.
Joseph Myers [Fri, 20 Apr 2012 16:57:46 +0000 (16:57 +0000)]
Remove unused sysdeps/unix/{mkdir.c,rmdir.c}.

12 years agoDelete unused TLS_GET_FS, TLS_SET_FS macros.
Paul Pluzhnikov [Fri, 20 Apr 2012 16:52:13 +0000 (09:52 -0700)]
Delete unused TLS_GET_FS, TLS_SET_FS macros.

12 years agoFix computation of inflated errlist size
Andreas Schwab [Fri, 6 Apr 2012 16:53:32 +0000 (18:53 +0200)]
Fix computation of inflated errlist size

12 years agoRemove all traces of reg_char.
David S. Miller [Wed, 18 Apr 2012 23:19:10 +0000 (16:19 -0700)]
Remove all traces of reg_char.

* sysdeps/generic/memcopy.h (reg_char): Delete.
* debug/strcat_chk.c: Use char, not reg_char.
* debug/strcpy_chk.c: Likewise.
* debug/strncat_chk.c: Likewise.
* debug/strncpy_chk.c: Likewise.
* string/memchr.c: Likewise.
* string/memrchr.c: Likewise.
* string/rawmemchr.c: Likewise.
* string/strcat.c: Likewise.
* string/strchr.c: Likewise.
* string/strchrnul.c: Likewise.
* string/strcmp.c: Likewise.
* string/strcpy.c: Likewise.
* string/strncat.c: Likewise.
* string/strncmp.c: Likewise.
* string/strncpy.c: Likewise.

12 years agoHave memmove call __builtin_memcopy on PowerPC if src and dest don't overlap.
Will Schmidt [Wed, 18 Apr 2012 21:44:27 +0000 (16:44 -0500)]
Have memmove call __builtin_memcopy on PowerPC if src and dest don't overlap.

12 years agoFurther simplify power6 wordcopy by removing switch statements.
Will Schmidt [Wed, 18 Apr 2012 20:34:23 +0000 (15:34 -0500)]
Further simplify power6 wordcopy by removing switch statements.

This fix replaces switch statements that contain individual
[fwd|bwd]_align_merge (<constant>) calls with a single [fwd|bwd]_align_merge
(align) call.

12 years agoSimplify power6 wordcopy by adding [fwd|bwd]_align_merge macros.
Will Schmidt [Wed, 18 Apr 2012 19:52:25 +0000 (14:52 -0500)]
Simplify power6 wordcopy by adding [fwd|bwd]_align_merge macros.

12 years agoForgot to delete the sparc64 memcopy.h which tries to include the sparc32 one
David S. Miller [Wed, 18 Apr 2012 18:11:10 +0000 (11:11 -0700)]
Forgot to delete the sparc64 memcopy.h which tries to include the sparc32 one

* sysdeps/sparc/sparc64/memcopy.h: Delete.

12 years agoFinish ilogb changes
Andreas Jaeger [Wed, 18 Apr 2012 07:46:20 +0000 (09:46 +0200)]
Finish ilogb changes

[BZ# 6794]
* sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.

* sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.

* sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.

* sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
* sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.

12 years agoThere is no legitimate reason to override reg_char on sparc32.
David S. Miller [Wed, 18 Apr 2012 04:30:15 +0000 (21:30 -0700)]
There is no legitimate reason to override reg_char on sparc32.

* sysdeps/sparc/sparc32/memcopy.h: Delete.

12 years agoRemove useless __ilogb*_finite aliases
Andreas Schwab [Tue, 17 Apr 2012 21:53:34 +0000 (23:53 +0200)]
Remove useless __ilogb*_finite aliases

12 years agoFix ilogb exception and errno (bug 6794)
Adhemerval Zanella [Wed, 11 Apr 2012 19:30:13 +0000 (16:30 -0300)]
Fix ilogb exception and errno (bug 6794)

[BZ #6794]
Following Joseph comments about bug 6794, here is a proposed fix. It turned out
to be a large fix mainly because I had to move some file along to follow libm
files/names conventions.

Basically I have added wrappers (w_ilogb.c, w_ilogbf.c, w_ilogbl.c) that now calls
the symbol '__ieee754_ilogb'. The wrappers checks for '__ieee754_ilogb' output and
set the errno and raise exceptions as expected.

The '__ieee754_ilogb' is implemented in sysdeps. I have moved the 's_ilogb[f|l]' files
to e_ilogb[f|l] and renamed the '__ilogb[f|l]' to '__ieee754_ilogb[f|l]'.

I also found out a bug in i386 and x86-64 assembly coded ilogb implementation where
it raises a FE_DIVBYZERO when argument is '0.0'. I corrected this issue as well.

Finally I added the errno and FE_INVALID tests for 0.0, NaN and +-InF argument. Tested
on i386, x86-64, ppc32 and ppc64.

12 years agoResolve __vector namespace conflict with Altivec.
Petr Baudis [Tue, 17 Apr 2012 13:33:41 +0000 (08:33 -0500)]
Resolve __vector namespace conflict with Altivec.

12 years agoPrevent warning in pldd.
Marek Polacek [Mon, 16 Apr 2012 18:34:28 +0000 (20:34 +0200)]
Prevent warning in pldd.

12 years agoReverse arguments of fdivp in i386 code.
Marek Polacek [Mon, 16 Apr 2012 09:03:41 +0000 (11:03 +0200)]
Reverse arguments of fdivp in i386 code.

12 years agoCheck __ILP32__ instead of __LP64__
H.J. Lu [Fri, 13 Apr 2012 23:24:17 +0000 (16:24 -0700)]
Check __ILP32__ instead of __LP64__

* elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
* elf/tst-auditmod3b.c: Likewise.
* elf/tst-auditmod4b.c: Likewise.
* elf/tst-auditmod5b.c: Likewise.
* elf/tst-auditmod6b.c: Likewise.
* elf/tst-auditmod6c.c: Likewise.
* elf/tst-auditmod7b.c: Likewise.
* sysdeps/x86_64/ffsll.c (ffsl): Likewise.
* sysdeps/x86_64/preconfigure.in: Likewise.
* sysdeps/x86_64/preconfigure: Regenerated.

12 years agoAdd __ILP32__ check when defining __WORDSIZE
H.J. Lu [Fri, 13 Apr 2012 23:17:14 +0000 (16:17 -0700)]
Add __ILP32__ check when defining __WORDSIZE

12 years agoFix variable check in sparc clock frequency probing.
Antoine Balestrat [Fri, 13 Apr 2012 21:31:35 +0000 (14:31 -0700)]
Fix variable check in sparc clock frequency probing.

* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(__get_clockfreq_via_proc_openprom): Fix test on wrong variable.

12 years ago"Gallegan" should be "Galician"
Chris Leonard [Fri, 13 Apr 2012 17:09:44 +0000 (19:09 +0200)]
"Gallegan" should be "Galician"

[BZ #13973]
* locale/iso-639.def: Fix gl language name. Spotted by
Yaron Shahrabani.

12 years agocy_GB/en_GB: set am/pm in times
Mike Frysinger [Thu, 12 Apr 2012 22:58:04 +0000 (18:58 -0400)]
cy_GB/en_GB: set am/pm in times

The British people apparently use am/pm in time, so make it available to
them.  While we're here, sync the date_fmt field from en_GB to cy_GB.

Fedora has been carrying this for the better part of a decade, and Debian
has had it, and now that I've gotten a request from some British people
to add it to Gentoo, I'd rather get it merged into mainline.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-12  Mike Frysinger  <vapier@gentoo.org>

[BZ #3768]
* locales/en_GB: Set am_pm and t_fmt_ampm fields.
* locales/cy_GB: Likewise.  Also copy date_fmt from en_GB.

12 years agoUpdate for BZ # 2541
Andreas Jaeger [Thu, 12 Apr 2012 19:02:34 +0000 (21:02 +0200)]
Update for BZ # 2541

12 years agoUpdate comment for _io_write_fn
Roland McGrath [Thu, 12 Apr 2012 19:02:00 +0000 (21:02 +0200)]
Update comment for _io_write_fn

[BZ #2074]
* libio/libio.h (__io_write_fn): Update comment.

12 years agoFix description of user provided write function
Petr Baudis [Thu, 12 Apr 2012 19:00:49 +0000 (21:00 +0200)]
Fix description of user provided write function

[BZ #2074]
* stdio.texi (Hook Functions): The user provided writer function
is not allowed to return -1.

12 years agoUpdate sparc libm ULPs.
David S. Miller [Wed, 11 Apr 2012 19:25:00 +0000 (12:25 -0700)]
Update sparc libm ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

12 years agoignore ports/linuxthreads addon dirs
Mike Frysinger [Sun, 17 May 2009 01:25:23 +0000 (21:25 -0400)]
ignore ports/linuxthreads addon dirs

Dropping external addon trees into the main git checkout is normal
to test them, so add them to the ignore list.  Not like we want to
ever check them in.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoRemove __wur from fwrite, fwrite_unlocked
Jim Meyering [Wed, 11 Apr 2012 19:03:01 +0000 (21:03 +0200)]
Remove __wur from fwrite, fwrite_unlocked

        [BZ #11959]
        * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
        It is not necessarily an error to ignore fwrite's return
        value.  One can reliably use ferror to test for errors after
        the fact.

12 years agoAdd __snseconds_t and __SNSECONDS_T_TYPE
H.J. Lu [Wed, 11 Apr 2012 18:02:59 +0000 (11:02 -0700)]
Add __snseconds_t and __SNSECONDS_T_TYPE

12 years agoFix times return value, CLK_TCK description
Andreas Jaeger [Wed, 11 Apr 2012 07:20:50 +0000 (09:20 +0200)]
Fix times return value, CLK_TCK description

[BZ #2636]
* manual/time.texi (Processor Time): Return type of times is
elapsed real time since an arbitrary point in the past.
(CPU Time): Move CLK_TCK from here...
(Processor Time): ...to here.  Correct description.
* manual/conf.texi (Constants for Sysconf): Correct description of
_SC_CLK_TCK.

12 years agoFix ld.so regression.
David S. Miller [Tue, 10 Apr 2012 19:57:48 +0000 (12:57 -0700)]
Fix ld.so regression.

[BZ #13967]
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
where the is a gap between DT_REL(A) and DT_JMPREL.

12 years agoUse __builtin_bswap32/64 in x86_64 <bits/byteswap.h>
H.J. Lu [Tue, 10 Apr 2012 19:11:54 +0000 (12:11 -0700)]
Use __builtin_bswap32/64 in x86_64 <bits/byteswap.h>

12 years agoNew ld.so argument --inhibit-ldcache to disable ld.so.cache lookup
Siddhesh Poyarekar [Wed, 4 Apr 2012 14:39:09 +0000 (20:09 +0530)]
New ld.so argument --inhibit-ldcache to disable ld.so.cache lookup

It may sometimes be desirable to make the dynamic linker only pick up
libraries from the library path and rpath and not look at the
ld.so.cache that ldconfig generates. An example of such a use case is
the glibc testsuite where the dynamic linker must not be influenced by
any external paths or caches.

This change adds a new option --inhibit-ldcache that when used, tells
the dynamic linker to not use ld.so.cache even if it is available.

12 years agoMerge commit '9904dc47c88d9592ec66e599075436'
Roland McGrath [Tue, 10 Apr 2012 17:22:42 +0000 (10:22 -0700)]
Merge commit '9904dc47c88d9592ec66e599075436'

12 years agoFix spurious overflow exceptions from x86/x86_64 powl (bug 13872).
Joseph Myers [Mon, 9 Apr 2012 22:32:45 +0000 (22:32 +0000)]
Fix spurious overflow exceptions from x86/x86_64 powl (bug 13872).

12 years agoFix ctan, ctanh overflow (bug 11521).
Joseph Myers [Mon, 9 Apr 2012 22:31:35 +0000 (22:31 +0000)]
Fix ctan, ctanh overflow (bug 11521).

12 years agoMerge branch 'master' of git://sourceware.org/git/glibc
Andreas Jaeger [Mon, 9 Apr 2012 19:25:13 +0000 (21:25 +0200)]
Merge branch 'master' of git://sourceware.org/git/glibc

Conflicts:
ChangeLog

12 years agoFix missing clobber in i386 __sincos_code asm.
Roland McGrath [Mon, 9 Apr 2012 19:20:48 +0000 (12:20 -0700)]
Fix missing clobber in i386 __sincos_code asm.

12 years agoEnhance d_namlen description
Andreas Jaeger [Mon, 9 Apr 2012 19:10:13 +0000 (21:10 +0200)]
Enhance d_namlen description

    [BZ #6894]
    * manual/filesys.texi (Directory Entries): Mention that d_namlen
    is an optional BSD extension.

12 years agoDocument additional fopen options
Andreas Jaeger [Mon, 9 Apr 2012 19:06:55 +0000 (21:06 +0200)]
Document additional fopen options

[BZ #10254]
The manual failed to explain the new (the first were introduced with
glibc 2.3 or so) parameters to fopen.

12 years agoUse sourceware.org for email and web references.
Carlos O'Donell [Mon, 9 Apr 2012 15:37:36 +0000 (11:37 -0400)]
Use sourceware.org for email and web references.

We use sourceware.org consistently to reference the
server that RedHat provides for community services
to open-source projects.

[BZ # 13963]
* manual/install.texi: Use sourceware.org.

12 years agoFix missing overflow exceptions from pow (bug 13873).
Joseph Myers [Mon, 9 Apr 2012 09:43:18 +0000 (09:43 +0000)]
Fix missing overflow exceptions from pow (bug 13873).

12 years agoFix x86 pow inaccuracy for large integer exponents (bug 706).
Joseph Myers [Mon, 9 Apr 2012 09:42:05 +0000 (09:42 +0000)]
Fix x86 pow inaccuracy for large integer exponents (bug 706).

12 years agoDo not allow overflow exception on exp underflow test (bug 13705).
Joseph Myers [Sun, 8 Apr 2012 22:46:49 +0000 (22:46 +0000)]
Do not allow overflow exception on exp underflow test (bug 13705).

12 years agoUse __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705).
Aurelien Jarno [Sun, 8 Apr 2012 22:45:13 +0000 (22:45 +0000)]
Use __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705).

12 years agomemset: also update copyright years
Mike Frysinger [Sun, 8 Apr 2012 08:18:24 +0000 (04:18 -0400)]
memset: also update copyright years

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoDocument return values of putenv and setenv
Andreas Jaeger [Sun, 8 Apr 2012 17:43:41 +0000 (19:43 +0200)]
Document return values of putenv and setenv

[BZ #10153]
* manual/startup.texi (Environment Access): Describe return
value for putenv and setenv.

12 years agoAdd generated file version.texi
Andreas Jaeger [Sun, 8 Apr 2012 15:23:06 +0000 (17:23 +0200)]
Add generated file version.texi

12 years agoDescribe DT_LNK
Andreas Jaeger [Sun, 8 Apr 2012 15:04:47 +0000 (17:04 +0200)]
Describe DT_LNK

[BZ #6895]
* manual/filesys.texi (Directory Entries): Add description for
DT_LNK.

12 years agoFix DT_UNKNOWN description
Andreas Jaeger [Sun, 8 Apr 2012 13:17:55 +0000 (15:17 +0200)]
Fix DT_UNKNOWN description

[BZ #6890]
* manual/filesys.texi (Directory Entries): Clarify that it's
file system not operating system in the description of DT_UNKNOWN.

12 years agoFix closelog description
Andreas Jaeger [Sun, 8 Apr 2012 13:00:50 +0000 (15:00 +0200)]
Fix closelog description

[BZ #6578]
The manual mentioned a non-existing function initlog, replace it with
openlog.

12 years agoMerge branch 'master' of git://sourceware.org/git/glibc
Andreas Jaeger [Sun, 8 Apr 2012 12:54:13 +0000 (14:54 +0200)]
Merge branch 'master' of git://sourceware.org/git/glibc

Conflicts:
ChangeLog

12 years agoBetter describe open arguments
Stephen Compall [Sun, 8 Apr 2012 12:51:45 +0000 (14:51 +0200)]
Better describe open arguments

[BZ #6649]
* manual/llio.texi (Opening and Closing Files): Add cross
reference to explain mode argument.

12 years agomemset: fix define usage for shared libs
Mike Frysinger [Tue, 22 Feb 2011 18:26:19 +0000 (13:26 -0500)]
memset: fix define usage for shared libs

The proper define to check "am I in a shared lib" is "SHARED", not "PIC".
The two new memset_chk functions incorrectly depend on "PIC".

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
12 years agoHandle some new sparc relocation types.
David S. Miller [Sat, 7 Apr 2012 16:29:14 +0000 (09:29 -0700)]
Handle some new sparc relocation types.

* elf/elf.h (R_SPARC_WDISP10): Define.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
R_SPARC_SIZE32.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
R_SPARC_SIZE64 and R_SPARC_H34.

12 years agoSimplify _ELF_DYNAMIC_DO_RELOC after combining the old two defs.
Carlos O'Donell [Sat, 7 Apr 2012 13:34:45 +0000 (09:34 -0400)]
Simplify _ELF_DYNAMIC_DO_RELOC after combining the old two defs.

* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
conditions and remove no longer applicable assertion.

12 years agoUse __builtin_bswap32/64 in __bswap_32/64 for GCC >= 4.2
H.J. Lu [Fri, 6 Apr 2012 23:13:40 +0000 (16:13 -0700)]
Use __builtin_bswap32/64 in __bswap_32/64 for GCC >= 4.2

12 years agoAdd byteswap-16.h for __bswap_16
H.J. Lu [Fri, 6 Apr 2012 22:13:09 +0000 (15:13 -0700)]
Add byteswap-16.h for __bswap_16

12 years agoBZ#13895 fixed.
Paul Pluzhnikov [Fri, 6 Apr 2012 21:17:31 +0000 (14:17 -0700)]
BZ#13895 fixed.

12 years ago2012-04-06 Paul Pluzhnikov <ppluzhnikov@google.com>
Paul Pluzhnikov [Fri, 6 Apr 2012 20:49:35 +0000 (13:49 -0700)]
2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>

[BZ #13895]
* nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
extra indirection.
* nss/Makefile (tests-static, tests): Add tst-nss-static.
* nss/tst-nss-static.c: New.

12 years agoFix ascending ordering of bug numbers in NEWS.
Joseph Myers [Fri, 6 Apr 2012 20:35:06 +0000 (20:35 +0000)]
Fix ascending ordering of bug numbers in NEWS.

12 years agoFix typo in manual
Robert Millan [Fri, 6 Apr 2012 19:38:42 +0000 (21:38 +0200)]
Fix typo in manual

lseek refers to WHENCE when it really means OFFSET

12 years agoAdd missing include file
Andreas Jaeger [Fri, 6 Apr 2012 19:09:36 +0000 (21:09 +0200)]
Add missing include file

Compiling on Linux/i586 I get these warnings:
nss_db/db-initgroups.c:60:3: warning: implicit declaration of function
'strlen' [-Wimplicit-function-declaration]
nss_db/db-initgroups.c:74:7: warning: implicit declaration of function
'strncmp' [-Wimplicit-function-declaration]

Fixed with inclusion of <string.h>

12 years agoAdd __poll and __ppoll to libc.abilist
Andreas Jaeger [Fri, 6 Apr 2012 16:10:13 +0000 (18:10 +0200)]
Add __poll and __ppoll to libc.abilist

The functions were introduced in January but abilist was not updated.

12 years agoFix check-local-headers.sh on multiarch systems.
David S. Miller [Fri, 6 Apr 2012 03:40:28 +0000 (23:40 -0400)]
Fix check-local-headers.sh on multiarch systems.

* scripts/check-local-headers.sh: Accept a host triplet in the
path matched by the exclude regexp.

12 years agoReduce down to one definition of _ELF_DYNAMIC_DO_RELOC.
David S. Miller [Thu, 5 Apr 2012 22:28:37 +0000 (15:28 -0700)]
Reduce down to one definition of _ELF_DYNAMIC_DO_RELOC.

* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
definition.
* sysdeps/powerpc/powerpc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Delete.
* sysdeps/s390/s390-32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc64/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.

12 years agoFix CL typos.
Marek Polacek [Thu, 5 Apr 2012 17:28:16 +0000 (19:28 +0200)]
Fix CL typos.

12 years ago[BZ #6770] Add first_weekday and first_workday to ca_ES.
Petr Baudis [Thu, 5 Apr 2012 09:47:44 +0000 (11:47 +0200)]
[BZ #6770] Add first_weekday and first_workday to ca_ES.

Patch from Fedora by Jeff Law.  Acknowledged by Jordi Mallach.

12 years agoLocale ca_ES is now maintained by Jordi Mallach
Petr Baudis [Thu, 5 Apr 2012 09:42:30 +0000 (11:42 +0200)]
Locale ca_ES is now maintained by Jordi Mallach

[BZ #6770]
It was impossible to contact the original maintainer by phone or email,
despite Jordi's multiple tries, either directly or via 3rd parties.

12 years agoFix DL_DEBUG_UNUSED to elide the VDSO and handle PLT references properly.
David S. Miller [Thu, 5 Apr 2012 09:20:37 +0000 (05:20 -0400)]
Fix DL_DEBUG_UNUSED to elide the VDSO and handle PLT references properly.

* elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
lazy binding.
* elf/dl-lookup (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
undefined symbol errors.

* elf/rtlc.c (dl_main): Skip VDSO when checking for unused
DT_NEEDED entries.

12 years agoFix size parameter comparisions.
Michael Matz [Thu, 5 Apr 2012 08:48:14 +0000 (10:48 +0200)]
Fix size parameter comparisions.

[BZ #13592]
There are several signed compares of the size argument, whereas
it really is unsigned.  Depending on situations e.g. a "memset(ptr, 0,
-1)" segfault (but for the wrong reasons, because jumping into nirvana)
or succeeds even.

In normal use this is harmless, as a size with signbit set indicates
more than half the address space which on x86_64 is impossible to
allocate, but as the size is used to index some jump tables this
potentially could have other unwanted side effects.

12 years agoDon't warn about unused result of mktemp
Andreas Jaeger [Thu, 5 Apr 2012 08:44:08 +0000 (10:44 +0200)]
Don't warn about unused result of mktemp

    [BZ #13908]
    mktemp always returns TEMPLATE, the caller should check TEMPLATE[0]
    instead of TEMPLATE, so do not warn about the unused result.
    Fix also the comment for mktemp

12 years ago[BZ #12340] Fix return code of the Hurd's ttyname_r.
Thomas Schwinge [Thu, 5 Apr 2012 07:16:48 +0000 (09:16 +0200)]
[BZ #12340] Fix return code of the Hurd's ttyname_r.

12 years agoFix return value of SH fesetround.
Kaz Kojima [Thu, 5 Apr 2012 02:58:30 +0000 (11:58 +0900)]
Fix return value of SH fesetround.

12 years agoSet SH fpcsr register which read again.
Kaz Kojima [Thu, 5 Apr 2012 02:57:03 +0000 (11:57 +0900)]
Set SH fpcsr register which read again.

12 years agoFix SH4 fraiseexcpt so to generate exceptions appropriately.
Kaz Kojima [Thu, 5 Apr 2012 02:53:49 +0000 (11:53 +0900)]
Fix SH4 fraiseexcpt so to generate exceptions appropriately.

12 years agoAdd support fedisableexcept, feenableexcept, fegetexcept and feupdateenv
Kaz Kojima [Thu, 5 Apr 2012 02:43:30 +0000 (11:43 +0900)]
Add support fedisableexcept, feenableexcept, fegetexcept and feupdateenv
for SH.

12 years ago[BZ #12340] Fix return code of the Hurd's ttyname_r.
Simon Josefsson [Wed, 4 Apr 2012 22:35:19 +0000 (00:35 +0200)]
[BZ #12340] Fix return code of the Hurd's ttyname_r.

12 years ago[BZ #13553] Remove pre-ISO C support
Thomas Schwinge [Wed, 4 Apr 2012 22:26:22 +0000 (00:26 +0200)]
[BZ #13553] Remove pre-ISO C support

The bits missing from a784e502472fb3a1afa4d01a47c66b52d23e00f6.

12 years ago2012-04-04 Dmitry V. Levin <ldv@altlinux.org>
Jeff Law [Wed, 4 Apr 2012 19:55:23 +0000 (13:55 -0600)]
2012-04-04  Dmitry V. Levin  <ldv@altlinux.org>

        [BZ #10346]
        * locales/ru_UA (LC_TIME): Add first_weekday and first_workday.

12 years agoFix typo in manual
Andreas Jaeger [Tue, 3 Apr 2012 07:43:38 +0000 (09:43 +0200)]
Fix typo in manual

[BZ # 13938]
* manual/setjmp.texi (System V contexts): Fix sentence.

12 years agoAdd __bswap_64 definition for non GCC compilers.
Andreas Jaeger [Wed, 28 Mar 2012 14:39:25 +0000 (16:39 +0200)]
Add __bswap_64 definition for non GCC compilers.

[BZ#13926]
Currently __bswap_64 is not defined at all for non-GCC compilers.
Define it but guard it with __GLIBC_HAVE_LONG_LONG.

endian.h uses __bswap_64, make the functions only available
if __GLIBC_HAVE_LONG_LONG is defined.

12 years agoFix bug in previous tcvn5712 commit e64d2de52.
Tulio Magno Quites Machado Filho [Mon, 2 Apr 2012 22:24:03 +0000 (15:24 -0700)]
Fix bug in previous tcvn5712 commit e64d2de52.

[BZ #13691]
* iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
inptr and inend, rather than using last_ch.

12 years agoTighten up vfprintf width, precision, and total length overflow handling.
David S. Miller [Mon, 2 Apr 2012 21:31:19 +0000 (14:31 -0700)]
Tighten up vfprintf width, precision, and total length overflow handling.

With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
* stdio-common/printf-parse.h (read_int): Change return type to
'int', return -1 on INT_MAX overflow.
* stdio-common/vfprintf.c (vfprintf): Validate width and precision
against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
overflows INT_MAX.  Check for overflow of in-format-string precision
values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
SIZE_MAX not INT_MAX for integer overflow test.
* stdio-common/printf-parsemb.c: If read_int signals an overflow,
skip the construct in the format string but do not record anything.
* stdio-common/bug22.c: Adjust to test both width/prevision
INT_MAX overflow as well as total length INT_MAX overflow.  Check
explicitly for proper errno values.

12 years agoTestsuite #include fixes.
Thomas Schwinge [Mon, 2 Apr 2012 20:31:32 +0000 (22:31 +0200)]
Testsuite #include fixes.

12 years agoCall __ctype_init in early glibc startup.
Thomas Schwinge [Mon, 2 Apr 2012 20:26:43 +0000 (22:26 +0200)]
Call __ctype_init in early glibc startup.

This adds the bits missing from fd5bdc0924e0cfd1688b632068c1b26f3b0c88da.

12 years agoUpdated Vietnamese translation
Ulrich Drepper [Sun, 1 Apr 2012 13:52:09 +0000 (09:52 -0400)]
Updated Vietnamese translation

12 years agoUpdated Russian translations
Ulrich Drepper [Sun, 1 Apr 2012 13:51:00 +0000 (09:51 -0400)]
Updated Russian translations

12 years agoMerge copyright years in resolv/nss_dns/dns-host.c
Siddhesh Poyarekar [Sat, 31 Mar 2012 04:31:43 +0000 (10:01 +0530)]
Merge copyright years in resolv/nss_dns/dns-host.c

12 years agooptimize the following memcpy: sysdeps/i386/i686/multiarch/memcpy-ssse3.S
Liubov Dmitrieva [Fri, 30 Mar 2012 20:45:27 +0000 (16:45 -0400)]
optimize the following memcpy: sysdeps/i386/i686/multiarch/memcpy-ssse3.S

I've improved the following implementation of memcpy:
"sysdeps/i386/i686/multiarch/memcpy-ssse3.S".

The patch includes some minor style fixes, but the important part is
just using prefetch loops for the case:

DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
src and dst pointers have unequal 16 byte alignments.

This gives from 6% - 50% performance boost on the atom machine, about
24,73% in geometric mean.

12 years agoConsider TTL of CNAME record and return minimum TTL in the chain
Siddhesh Poyarekar [Fri, 30 Mar 2012 15:28:14 +0000 (20:58 +0530)]
Consider TTL of CNAME record and return minimum TTL in the chain

[BZ #13928] A DNS request consists of multiple resources combined into
a single hostent, including multiple CNAME records that may have been
assigned different TTL values. In such a case, nscd should take the
least TTL among all of the resources as the timeout for the hostent
before it is reloaded in its cache so that the hostent remains stale
in the database for the least amount of time.

12 years ago * resolv/nss_dns/dns-host.c: Update copyright year.
Jeff Law [Fri, 30 Mar 2012 15:54:21 +0000 (09:54 -0600)]
    * resolv/nss_dns/dns-host.c: Update copyright year.

12 years ago2012-03-29 Jeff Law <law@redhat.com>
Jeff Law [Fri, 30 Mar 2012 15:45:44 +0000 (09:45 -0600)]
2012-03-29  Jeff Law  <law@redhat.com>

* crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
due to long keys.
* crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
* crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.

12 years agoBetter error handling for sendmmsg use in res_send
Ulrich Drepper [Fri, 30 Mar 2012 12:38:58 +0000 (08:38 -0400)]
Better error handling for sendmmsg use in res_send

12 years agoCorrect check for DNS request send success
Ulrich Drepper [Fri, 30 Mar 2012 12:27:11 +0000 (08:27 -0400)]
Correct check for DNS request send success

This predates the sendmmsg use.  The two requests can use different
request sizes but the check for successful transfer always only used
buflen.

12 years agoSpeed up DNS by avoiding a system call if possible
Ulrich Drepper [Fri, 30 Mar 2012 11:42:29 +0000 (07:42 -0400)]
Speed up DNS by avoiding a system call if possible

12 years agoComment fixes for mmsghdr
Ulrich Drepper [Fri, 30 Mar 2012 10:35:29 +0000 (06:35 -0400)]
Comment fixes for mmsghdr