Commit Graph

24924 Commits

Author SHA1 Message Date
Eagle Burkut
381594c4cf Fix ug_CN
[BZ #13759]
	* locales/ug_CN (LC_COLLATE, LC_TIME, LC_MESSAGES): Fix entries.
2012-11-19 20:38:39 +01:00
Pino Toscano
e19af3803b muntrace: reset file and hooks before finalizing the stream
fclose will call free, invoking its hook, then fprintf which would indirectly
try to allocate a buffer, and this can cause malloc to be used (thus its hook
to be invoked) if libio uses malloc instead of mmap; given any malloc/free hook
locks the internal lock, this leads to a deadlock.

To prevent this hook roundtrip at muntrace, first unset MALLSTREAM and the
hooks, and only after that close the trace file.
2012-11-19 20:01:00 +01:00
Pino Toscano
942caa1656 Hurd: implement syncfs 2012-11-19 19:34:07 +01:00
Marcus Shawcroft
a6d9783fe7 AArch64: Adding optimized maths functions. 2012-11-19 15:15:18 +00:00
Siddhesh Poyarekar
cfde9b463d Return EAI_SYSTEM if we're out of file descriptors
Resolves BZ #14719.
2012-11-19 13:02:48 +05:30
Peng Haitao
f6da27e536 bindresvport() uses two static variables port and startport which are not
protected. It is not safe when in multithread circumstance.

bindresvport() select a port number from the range 512 to 1023, when in
multithread circumstance, the port may be 1024. So the static variables will be
protected.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 02:05:12 -05:00
Steve McIntyre
1f51ee9246 Add ldconfig cache tag handling for AArch64
* sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
	* elf/cache.c (print_entry): Print ",AArch64" for
	FLAG_AARCH64_LIB64.

Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 01:22:33 -05:00
Steve McIntyre
6665d4a25d Add ldconfig cache tag handling for ARM hard-float ABI
* sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
	* elf/cache.c (print_entry): Print ",hard-float" for
	FLAG_ARM_LIBHF.

Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19 01:12:53 -05:00
Carlos O'Donell
6e63f4ff60 hppa: Mark __pthread_once as a hidden def. 2012-11-19 00:55:04 -05:00
Carlos O'Donell
da66ca0fc0 hppa: Fix fesetenv for FE_DFL_ENV.
Switching back to FE_DFL_ENV should reset the FPU to the state
as it was at the start of the program.
2012-11-19 00:44:00 -05:00
Carlos O'Donell
886ce148c0 hppa: Implement get-rounding-mode.h
Implement get_rounding_mode using the new fpu_control.h
support. Use get_rounding_mode from fegetround.
2012-11-19 00:40:05 -05:00
Carlos O'Donell
030c5d66b8 hppa: Implement fpu_control.h.
The HP-PARISC processor has full IEEE-754 support
and we implement all of fpu_control.h.
2012-11-19 00:37:56 -05:00
Carlos O'Donell
0d6bed7150 hppa: Add ____longjmp_check C implementation. 2012-11-19 00:36:08 -05:00
Carlos O'Donell
320194d5b9 hppa: Implement __longjmp_chk.
Implement longjmp and the chk variant in C.
2012-11-19 00:28:30 -05:00
David S. Miller
05b227bdae Correct tinyness handling in long-double and float y0/y1.
With help from Joseph Myers.
	* sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
	cutoff to 2**-13.
	* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
	cutoff to 2**-25.
	* sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
	( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
	small.
	* sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
	* math/libm-test.inc (y0_test): New tests.
	(y1_test): New tests.
	* sysdeps/i386/fpu/libm-test-ulps: Update.
	* sysdeps/x86_64/fpu/libm-test-ulps: Update.
	* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-11-18 12:33:53 -08:00
Andreas Schwab
786b0b67a3 Fix ifunc configure check for 64-bit targets 2012-11-18 16:30:16 +01:00
Andreas Schwab
67f2b51c62 m68k: fix cancellable syscall with 5 or 6 arguments 2012-11-18 01:22:38 +01:00
Andreas Schwab
e510ab5eff m68k: define ELF_MACHINE_RUNTIME_FIXUP_PARAMS 2012-11-18 01:22:37 +01:00
Andreas Schwab
43b13a23e0 m68k: update libm test ULPs 2012-11-18 01:22:36 +01:00
Andreas Schwab
05860e4b07 m68k: define lll_futex_timed_wait_bitset 2012-11-18 01:22:35 +01:00
David S. Miller
8e18b86d4a Fix BZ #14811 for ldbl-128 too.
[BZ #14811]
	* sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
	nonzero exponents with absolute value below 0x1p-128 to +/-
	0x1p-128.
2012-11-16 21:39:54 -08:00
Joseph Myers
12df29e2d2 Include string.h in sysdeps/unix/sysv/linux/fxstatat.c. 2012-11-17 03:43:53 +00:00
Joseph Myers
018f9a78d3 Fix "set but not used" warnings from MIPS bits/atomic.h. 2012-11-17 03:35:27 +00:00
Joseph Myers
150dc1a05a Remove ELF_MACHINE_NO_PLT conditionals. 2012-11-17 01:51:20 +00:00
Joseph Myers
531f1ae0a7 Generate /usr/libexec/getconf files when cross-compiling. 2012-11-17 01:49:19 +00:00
Pino Toscano
a93f9cbc27 check-local-headers: ignore Mach kernel headers 2012-11-16 18:55:19 +01:00
Andrej Lajovic
d64d9f8780 iconv: Fix -c
2012-11-16  Andrej Lajovic  <natrij@gmail.com>

	[BZ #14672]
	* iconv/iconv_prog.c (main): Fix -c handling of '/'.
2012-11-16 18:48:36 +01:00
David S. Miller
447885ebf1 Don't generate underflow for very small values in log1pl.
* sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
	smaller than LDBL_EPSILON/2.0L, just return xm1.
2012-11-16 09:31:38 -08:00
H.J. Lu
bcbf9830b7 Set constructor/destructor priority to 1000 2012-11-16 07:40:38 -08:00
Andreas Jaeger
02665652d7 Add szl_PL
[BZ #14368]
	* locales/szl_PL: New Silesian Language Locale for Poland.
	Contributed by Przemyslaw Buczkowski <przemub@yahoo.pl>.
	* localedata/SUPPORTED (SUPPORTED-LOCALES): Add szl_PL.
2012-11-16 15:23:52 +01:00
Siddhesh Poyarekar
2b766585f9 printf should return negative value on error
[BZ #11741]
Fixed bug where printf and family may return a spurious success when
printing padded formats.
2012-11-16 19:13:11 +05:30
Siddhesh Poyarekar
b1848fdeec Note in a comment that references to C++ bits are obsolete
libio is not used by libstdc++ anymore, but there are references to
streambuf are all over.
2012-11-16 19:12:28 +05:30
Andreas Jaeger
d14fbb177a Add ayc_PE locale
[BZ # 14828]
	* locales/ayc_PE: Add Aymara locale for Peru
	contributed by Chris Leonard <cjl@sugarlabs.org> and
	Amos Batto <amosbatto@yahoo.com>.
	* SUPPORTED (SUPPORTED-LOCALES): Add ayc_PE.
2012-11-16 09:45:33 +01:00
Andreas Jaeger
0d319877cd Add nhn_MX locale
[BZ # 14501]
	* locales/nhn_MX: Add Central Nahuatl locale for Mexico,
	contributed by Jorge Becerril <jrbecster@gmail.com>.
	* SUPPORTED (SUPPORTED-LOCALES): Add nhn_MX.
2012-11-16 09:37:28 +01:00
Chris Leonard
9f9082ffa0 Correct L10n of country-name and lang-name in km_KH
[BZ #13952]
	* locales/km_KH: Correct country-name and lang-name.
2012-11-15 19:37:48 +01:00
Marcus Shawcroft
2fd8978571 Fix buffer overflow in libm-test.inc check_complex() 2012-11-15 18:02:03 +00:00
Andreas Jaeger
6e099e57a7 [BZ #13603, 13604, 13698] Three new locales
[BZ #13603]
	[BZ #13604]
	[BZ #13698]
	* locales/doi_IN: New file, contributed by Pravin Satpute
	<psatpute@redhat.com> and Sushil Badyal <badyalsk@gmail.com>.
	* locales/mni_IN: New file, contributed by Pravin Satpute
	<psatpute@redhat.com> and Rebika Devi <rebika_srd@rediffmail.com>.
	* locales/sat_IN: New file, contributed by Pravin Satpute
	<psatpute@redhat.com> and Thakur Prasad Murmu <tp_murmu@yahoo.com>.
	* SUPPORTED (SUPPORTED-LOCALES): Add doi_IN, mni_IN, sat_IN.
2012-11-15 11:38:28 +01:00
Chris Leonard
2663b74f81 2012-11-15 Chris Leonard <cjlhomeaddress@gmail.com>
[BZ #13950]
	* locales/bo_CN (LC_NAME, LC_ADDRESS): Remove some FIXMEs with
	proper content, disable others.
	* locales/bo_IN (LC_NAME, LC_ADDRESS): Likewise.
2012-11-15 09:21:04 +01:00
Joseph Myers
e3ea54090a Update --version copyright dates for memusagestat and pcprofiledump. 2012-11-15 01:01:33 +00:00
H.J. Lu
2e64d2659d Skip audit if l_reloc_result is NULL 2012-11-14 15:44:40 -08:00
Marcus Shawcroft
f507f7d598 Fix thumb2 build breakage in libcrypt 2012-11-14 23:06:40 +00:00
Marcus Shawcroft
c485e4d2cc Adding missing -fexception CFLAGS 2012-11-14 12:35:10 +00:00
David S. Miller
3a0d900a99 Add support for sparc cryptographic hash opcodes.
* crypt/Makefile: Move test targets after toplevel Rules
	inclusion.  Grab any necessary sysdep routines when linking.
	* crypt/md5.c (md5_process_block): Remove define, we will always
	name it __md5_process_block.
	(md5_finish_ctx): Update md5_process_block call.
	(md5_stream): Likewise.
	(md5_process_bytes): Likewise.
	(md5_process_block): Rename to __md5_process_block and move to ...
	* crypt/md5-block.c: ... here.
	* crypt/sha256.c (sha256_process_block): Move to ...
	* crypt/sha256-block.c: ... here.
	* crypt/sha512.c (sha512_process_block): Move to ...
	* crypt/sha512-block.c: ... here.
	* locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
	path.
	* sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
	* sysdeps/sparc/sparc64/multiarch/Makefile
	(libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
	crypt subdir.
	(localedef-aux): Add md5 crypto assembler when in locale subdir.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
	multiarch changes.
	* sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
	* sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
	* sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
	* sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
	file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
	file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
2012-11-13 17:12:45 -08:00
Joseph Myers
e27d476a65 Update tzcode from upstream git and support --with-bugurl for it. 2012-11-13 22:25:45 +00:00
Joseph Myers
8ca8931812 Define IPPORT_RESERVED in netdb.h for XPG4 and UNIX98 (bug 14838). 2012-11-13 18:11:49 +00:00
Marcus Shawcroft
47594329a9 Fix missing truncation UNDERFLOW. 2012-11-13 17:01:05 +00:00
David S. Miller
640ac3f1bf Fix check-localplt regressions on sparc.
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
	inttypes.h
	(__get_clockfreq_via_proc_openprom): Use __open, __read, and
	__close rather than their public counterparts.
2012-11-11 15:46:01 -08:00
Marcus Shawcroft
7e2bd01fcf NEWS entry for AArch64 port. 2012-11-10 22:46:35 +00:00
Joseph Myers
3d2577bba5 conformtest: Fix miscellaneous UNIX98 expectations. 2012-11-10 01:13:39 +00:00
Joseph Myers
c3f8191191 Fix typo in ChangeLog. 2012-11-10 00:32:21 +00:00