Commit Graph

19303 Commits

Author SHA1 Message Date
Roland McGrath
ec98af7d1b Update comment for _io_write_fn
[BZ #2074]
	* libio/libio.h (__io_write_fn): Update comment.
2012-04-12 21:02:00 +02:00
Petr Baudis
247c3ede39 Fix description of user provided write function
[BZ #2074]
	* stdio.texi (Hook Functions): The user provided writer function
	is not allowed to return -1.
2012-04-12 21:00:49 +02:00
David S. Miller
55939d6d45 Update sparc libm ULPs.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-04-11 12:25:00 -07:00
Mike Frysinger
90020f5ab0 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>
2012-04-11 15:08:45 -04: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
H.J. Lu
4be2b57003 Add __snseconds_t and __SNSECONDS_T_TYPE 2012-04-11 11:02:59 -07: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
H.J. Lu
b46068fcf2 Use __builtin_bswap32/64 in x86_64 <bits/byteswap.h> 2012-04-10 13:02:41 -07:00
Siddhesh Poyarekar
73d65cc378 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.
2012-04-11 00:13:52 +05:30
Roland McGrath
d715c9144b Merge commit '9904dc47c88d9592ec66e599075436' 2012-04-10 10:22:42 -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
8a1fbaaf75 Merge branch 'master' of git://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2012-04-09 21:25:13 +02:00
Roland McGrath
8de131cbff Fix missing clobber in i386 __sincos_code asm. 2012-04-09 12:20:48 -07: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
Joseph Myers
d2de7579f2 Do not allow overflow exception on exp underflow test (bug 13705). 2012-04-08 22:46:49 +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
Mike Frysinger
3884932b78 memset: also update copyright years
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-08 14:20:37 -04: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
7216225a73 Add generated file version.texi 2012-04-08 17:23:06 +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
Andreas Jaeger
96bd03c79a Merge branch 'master' of git://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2012-04-08 14:54:13 +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
Mike Frysinger
1e4920e080 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>
2012-04-07 16:33:50 -04:00
David S. Miller
5ed848f3d8 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.
2012-04-07 09:29:14 -07:00
Carlos O'Donell
96154cd892 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.
2012-04-07 09:41:22 -04:00
H.J. Lu
9904dc47c8 Use __builtin_bswap32/64 in __bswap_32/64 for GCC >= 4.2 2012-04-06 16:13:40 -07:00
H.J. Lu
f8887d0a5f Add byteswap-16.h for __bswap_16 2012-04-06 15:14:52 -07:00
Paul Pluzhnikov
d4d1707fd6 BZ#13895 fixed. 2012-04-06 14:17:31 -07:00
Paul Pluzhnikov
62470f605e 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.
2012-04-06 13:49:35 -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
Andreas Jaeger
2c040eff83 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>
2012-04-06 21:09:36 +02:00
Andreas Jaeger
e9142a17e1 Add __poll and __ppoll to libc.abilist
The functions were introduced in January but abilist was not updated.
2012-04-06 18:11:05 +02:00
David S. Miller
dcd2ae90d5 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.
2012-04-05 23:40:28 -04:00
David S. Miller
993eb0541c 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.
2012-04-05 15:28:37 -07:00
Marek Polacek
48e2e132de Fix CL typos. 2012-04-05 19:28:16 +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
Petr Baudis
ac7e1507e6 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.
2012-04-05 11:42:30 +02:00
David S. Miller
ff9f1c5f32 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.
2012-04-05 05:20:37 -04: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