Commit Graph

620 Commits

Author SHA1 Message Date
Joseph Myers
3b7c4e740e Note bug 6959 also fixed for 2.16. 2012-05-01 16:18:56 +00:00
Joseph Myers
7cb029ee6e Fix nexttoward bugs (bugs 2550, 2570). 2012-05-01 15:37:43 +00:00
Andreas Schwab
412bd96612 Fix missing nearbyintl@GLIBC_2.1 on powerpc 2012-05-01 12:40:59 +02:00
Joseph Myers
adfbc8ac9e Fix x86 acos near 1 (bug 13942). 2012-04-30 18:56:39 +00:00
Joseph Myers
5ba3cc691c Fix acos (-1) in round-downwards mode on x86 (bug 14034). 2012-04-30 09:38:06 +00:00
Joseph Myers
9568c0c225 Fix exp10 spurious overflows (bug 13924). 2012-04-30 09:37:01 +00:00
Aurelien Jarno
6c1ff08cf8 Fix February month name in de_AT locale
The current de_AT locale defines "Feber" for the month of February,
which is correct in some parts of Austria, but is not the standards.
This patch fixes the problem by changing it to the standards version
"Februar".

2012-04-29  Aurelien Jarno  <aurelien@aurel32.net>

        * locales/de_AT: Change month name from "Feber" to "Februar".
2012-04-30 09:22:56 +02:00
Joseph Myers
24c5d07ec3 List bug 14033 as fixed on mainline. 2012-04-29 16:21:42 +00:00
Andreas Schwab
7e0d315da8 Fix formatting of denormal IBM long double numbers 2012-04-28 22:21:27 +02:00
Ryan S. Arnold
468f7a8084 Correct incorrect bug number ordering in resolved bug list. 2012-04-27 14:05:23 -05:00
Ryan S. Arnold
a462cb6332 New test to expose erroneous negative sign on logb(1) (bug 887). 2012-04-27 10:47:39 -05:00
Joseph Myers
6ad3493e22 Fix fenv.h fallback returns (bug 14027). 2012-04-27 13:54:09 +00:00
Adhemerval Zanella
94e02fc410 Correct powerpc64 s_floorl edge cases (bug 13886).
[BZ #13886]
Remove powerpc64/fpu/s_floorl.  Use fully correct ldbl-128bim/s_floorl.c.
2012-04-24 14:21:45 -05:00
Paul Eggert
e9a0a51253 * NEWS: Add bug 13970. 2012-04-23 12:55:16 -07:00
Andreas Jaeger
eba6f5133a Add BZ number 2012-04-23 21:39:30 +02:00
Markus Trippelsdorf
8280f22d30 Update sysdeps/x86_64/fpu/libm-test-ulps
[BZ #13927]
	* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2012-04-21 14:14:27 +02:00
Nix
b8e3372811 Put vm86 into libc.a
[BZ #7064]
vm86 was not included in libc.a at all due to the default symbol
explicitely added to the weak symbol.
2012-04-21 07:12:50 +02:00
Adhemerval Zanella
76da726532 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.
2012-04-17 22:12:53 +02:00
Chris Leonard
a9e8e0e0f3 "Gallegan" should be "Galician"
[BZ #13973]
	* locale/iso-639.def: Fix gl language name. Spotted by
	Yaron Shahrabani.
2012-04-13 19:09:44 +02:00
Mike Frysinger
ea32912bbc 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.
2012-04-13 10:55:25 +02:00
Andreas Jaeger
3507ac6af6 Update for BZ # 2541 2012-04-12 21:02:34 +02:00
Jim Meyering
288f9098cb 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.
2012-04-11 21:03:57 +02:00
Andreas Jaeger
4cfd80263a 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.
2012-04-11 09:20:50 +02:00
David S. Miller
d7dd44133f 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.
2012-04-10 17:47:59 -07:00
Joseph Myers
8f9a2faee0 Fix spurious overflow exceptions from x86/x86_64 powl (bug 13872). 2012-04-09 22:32:45 +00:00
Joseph Myers
bcc8d6617b Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
Andreas Jaeger
0387979329 Enhance d_namlen description
[BZ #6894]
    * manual/filesys.texi (Directory Entries): Mention that d_namlen
    is an optional BSD extension.
2012-04-09 21:10:13 +02:00
Andreas Jaeger
823fbbb41b 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.
2012-04-09 21:07:51 +02:00
Carlos O'Donell
c0ed9d7d2b 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.
2012-04-09 11:57:15 -04:00
Joseph Myers
d7dd945398 Fix missing overflow exceptions from pow (bug 13873). 2012-04-09 09:43:18 +00:00
Joseph Myers
c483f6b4a4 Fix x86 pow inaccuracy for large integer exponents (bug 706). 2012-04-09 09:42:05 +00:00
Aurelien Jarno
f77f123206 Use __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705). 2012-04-08 22:45:13 +00:00
Andreas Jaeger
6ab0fbfc84 Document return values of putenv and setenv
[BZ #10153]
	* manual/startup.texi (Environment Access): Describe return
	value for putenv and setenv.
2012-04-08 19:43:41 +02:00
Andreas Jaeger
61efba8cdf Describe DT_LNK
[BZ #6895]
	* manual/filesys.texi (Directory Entries): Add description for
	DT_LNK.
2012-04-08 17:04:47 +02:00
Andreas Jaeger
95c3f29a06 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.
2012-04-08 15:17:55 +02:00
Andreas Jaeger
54472e9c32 Fix closelog description
[BZ #6578]
The manual mentioned a non-existing function initlog, replace it with
openlog.
2012-04-08 15:01:46 +02:00
Stephen Compall
624254b18a Better describe open arguments
[BZ #6649]
	* manual/llio.texi (Opening and Closing Files): Add cross
	reference to explain mode argument.
2012-04-08 14:53:13 +02:00
Paul Pluzhnikov
d4d1707fd6 BZ#13895 fixed. 2012-04-06 14:17:31 -07:00
Joseph Myers
f23a86baf7 Fix ascending ordering of bug numbers in NEWS. 2012-04-06 20:35:06 +00:00
Robert Millan
4dad7bab2b Fix typo in manual
lseek refers to WHENCE when it really means OFFSET
2012-04-06 21:38:42 +02:00
Petr Baudis
c9e9d40863 [BZ #6770] Add first_weekday and first_workday to ca_ES.
Patch from Fedora by Jeff Law.  Acknowledged by Jordi Mallach.
2012-04-05 11:47:44 +02:00
Michael Matz
e80d6f94e1 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.
2012-04-05 10:50:09 +02:00
Andreas Jaeger
349fa79f55 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
2012-04-05 10:44:08 +02:00
Thomas Schwinge
6745ccf5a4 [BZ #12340] Fix return code of the Hurd's ttyname_r. 2012-04-05 09:16:48 +02:00
Jeff Law
08b209a189 2012-04-04 Dmitry V. Levin <ldv@altlinux.org>
[BZ #10346]
        * locales/ru_UA (LC_TIME): Add first_weekday and first_workday.
2012-04-04 13:55:23 -06:00
Andreas Jaeger
67f60a26d4 Fix typo in manual
[BZ # 13938]
* manual/setjmp.texi (System V contexts): Fix sentence.
2012-04-03 09:43:38 +02:00
Andreas Jaeger
b1aa60f32d 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.
2012-04-03 09:13:59 +02:00
Siddhesh Poyarekar
48c41d04ee 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.
2012-03-30 21:30:01 +05:30
Tulio Magno Quites Machado Filho
e64d2de526 Fix a bug when converting strings with 1 character using TCVN5712-1
It isn't necessary to buffer the last character of strings. This can cause a
bug with strings that have 1 character between 0x0041 and 0x01b0.

	[BZ #13691]
	* iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
	with only 1 character between 0x0041 and 0x01b0.
	* wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
	* wcsmbs/tst-mbsnrtowcs.c: New file.
2012-03-30 10:43:43 +02:00
Jeff Law
984a42374c [BZ #13761]
* nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
	_nss_compat_initgroups_dyn): Fall back to malloc/free for
	large group memberships.
2012-03-29 09:56:27 -06:00