Commit Graph

12629 Commits

Author SHA1 Message Date
Ulrich Drepper
46658a1cbc Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-06-14 14:48:37 -07:00
Ulrich Drepper
b2ef2c014b Define F_SETPIPE_SZ and F_GETPIPE_SZ. 2010-06-14 14:47:34 -07:00
Roland McGrath
fbd643b662 Change manual license to GFDL v1.3. 2010-06-14 11:15:00 -07:00
Jakub Jelinek
f32f28695d Fix a couple of __REDIRECT () __THROW occurrences
This patch fixes some cases which fail to parse with C++.
2010-06-14 08:18:26 -07:00
Emilio Pozuelo Monfort
2a50c07836 Hurd: Fix linkat symlink handling. 2010-06-02 10:25:56 -07:00
Luis Machado
eb5ad2eb0d Small fix to POWER7 32-bit memcpy 2010-05-28 14:19:21 -07:00
H.J. Lu
3c88fe1e3a Incorrect x86 CPU family and model check. 2010-05-27 11:14:18 -07:00
Takashi Yoshii
d2f7315176 Fix iov[] size in SH register_dump() 2010-05-26 07:01:43 -07:00
Luis Machado
ebd2e13d67 Small fix to POWER7 32-bit memset 2010-05-24 17:56:44 -07:00
Ulrich Drepper
b32b8b451b Don't crash on unresolved weak symbol reference when auditing. 2010-05-21 23:51:18 -07:00
Andreas Schwab
9acbe24da8 Don't crash on unresolved weak symbol reference 2010-05-21 12:51:43 -07:00
Andreas Schwab
3d04ff3a5d Implement recvmmsg also as socketcall 2010-05-21 12:11:28 -07:00
Andreas Schwab
f0ccf6ea41 sunrpc: Fix spurious fall-through 2010-05-21 11:52:20 -07:00
Andreas Schwab
5b08ac571f Make <sys/timex.h> compatible with C++ 2010-05-21 11:45:17 -07:00
Luis Machado
4828935d38 POWER7 optimized memset. 2010-05-19 00:47:37 -07:00
Ulrich Drepper
373d545e3a Beginning of 2.13 release. 2010-05-19 00:39:18 -07:00
Andrew Stubbs
21a2b1aeeb Fix FP exception control. 2010-05-12 10:18:26 -07:00
Roland McGrath
3f7dcb2b0f Fix a const warning in ldconfig. 2010-05-07 16:23:03 -07:00
Ulrich Drepper
265bb1ce94 Refer to old CL file. 2010-05-07 01:18:34 -07:00
Ulrich Drepper
a160f8d808 Enable IDN support in getent. 2010-05-06 22:23:13 -07:00
Ulrich Drepper
5f24d53acb Fix race in free sanity check. 2010-05-06 04:42:46 -07:00
Andreas Schwab
d84acf388e Fix lookup of collation sequence value during regexp matching 2010-05-05 09:59:25 -07:00
Ulrich Drepper
5d05c55424 Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2010-05-05 09:48:21 -07:00
Ulrich Drepper
5ae958d741 Handle too-small buffers in Linux getlogin_r. 2010-05-05 09:44:50 -07:00
Andreas Schwab
70c9476e83 Regenerate INSTALL 2010-05-05 10:24:31 +02:00
Ulrich Drepper
3155f06621 Remove unnecessary Alpha support. 2010-05-05 00:26:14 -07:00
Ulrich Drepper
5fece6304c Fix CL. 2010-05-03 21:44:07 -07:00
Ulrich Drepper
e28c88707e Prepare for release. 2010-05-03 14:11:14 -07:00
Ulrich Drepper
7dee26605b Fix ldconfig to handle symlinks in chroot correctly. 2010-05-03 14:04:52 -07:00
Ulrich Drepper
f297602394 Simplify OOM handling in ldconfig. 2010-05-03 13:33:13 -07:00
Ulrich Drepper
49bd556d43 One more bug in ldconfig -r handling. 2010-05-03 10:40:30 -07:00
Andreas Schwab
5a2a1d7504 Don't deadlock in __dl_iterate_phdr while (un)loading objects. 2010-05-03 08:08:28 -07:00
Ulrich Drepper
c739ec3d81 Code cleanup in __dl_iterate_phdr. 2010-05-03 06:34:56 -07:00
Ulrich Drepper
ab00f4eac8 Fix handling if newline in addmntent. 2010-05-02 12:12:55 -07:00
Bruno Haible
8c0677fe5d BZ #11538: Fix ttyname_r callers not to expect errno was set. 2010-04-28 15:00:14 -07:00
Bruno Haible
6cffee3611 BZ #11537: Hurd: Fix ttyname_r error return value. 2010-04-26 10:07:15 -07:00
Emilio Pozuelo Monfort
67481400c5 Hurd: Fix file_name_lookup_at error case return value. 2010-04-26 09:59:30 -07:00
Ulrich Drepper
85071980b3 Update vi translation file. 2010-04-22 07:10:28 -07:00
Ulrich Drepper
93ac578256 Update bg translation file. 2010-04-21 16:51:41 -07:00
Roland McGrath
1d4bf3155f Link elf/noload test against -ldl. 2010-04-19 15:38:48 -07:00
Roland McGrath
7e2b0c8562 Link as-needed against ld.so. 2010-04-19 15:31:43 -07:00
Roland McGrath
c98d4212d0 tst-fmemopen: Do not write test file in $srcdir. 2010-04-19 13:48:00 -07:00
H.J. Lu
1cdb2151fb Missing CL. 2010-04-15 07:50:47 -07:00
H.J. Lu
a11ec63713 Add x86-32 FMA support 2010-04-14 22:27:59 -07:00
H.J. Lu
df87f54923 Check DATA_CACHE_SIZE_HALF 2010-04-14 22:18:27 -07:00
Andreas Schwab
18a26b301b Don't crash in trace mode when dependencies are missing 2010-04-14 22:16:06 -07:00
H.J. Lu
dd37cd1a12 Optimie x86-64 SSE4 memcmp for unaligned data. 2010-04-14 17:53:44 -07:00
H.J. Lu
404a6e3201 x86-64 SSE4 optimized memcmp
This is 64bit SSE4 optimized memcmp. It improves memcmp by upto 3X
on Intel Core i7.
2010-04-14 00:12:53 -07:00
Ulrich Drepper
bbbdd77809 Update x86-64 cpu multiarch selection header. 2010-04-13 19:17:10 -07:00
Matt Fleming
3d1020f0cc elf/elf.h: Add SH specific ELF header flags. 2010-04-13 12:10:31 -07:00
Andreas Schwab
0dabf204ef Fix makecontext on s390/s390x 2010-04-13 10:23:22 -07:00
Andreas Schwab
ef634a94c7 Fix use of ucontext_t objects in tst-makecontext3
Objects of type ucontext_t cannot be copied, only getcontext can
properly initialize them.  For example, on powerpc the structure
contains a pointer into itself, so makecontext modifies the original
object by side effect.
2010-04-13 07:13:00 -07:00
Ulrich Drepper
ea42a20cae Fix crash on reloading of gai data in nscd. 2010-04-09 21:38:20 -07:00
Roland McGrath
17ad387727 Use a stamp file for libc-abis.h rule. 2010-04-09 15:31:45 -07:00
Roland McGrath
4ae73ca00a Revert "Shorten build commands"
This reverts commit 59d9f1d698.
2010-04-09 15:18:58 -07:00
Roland McGrath
3aa6513708 Fix tst-chmod not to write into srcdir. 2010-04-09 13:59:34 -07:00
Ulrich Drepper
fc97f36d7f Add BZ to an older patch. 2010-04-09 07:56:29 -07:00
Ulrich Drepper
0a62a34919 Add BZ number. 2010-04-08 20:10:26 -07:00
Ulrich Drepper
d55d558b4e Print reload count in nscd statistics. 2010-04-08 19:58:29 -07:00
Ulrich Drepper
aa6436d6ad Fix reading loginuid file in getlogin{,_r}. 2010-04-08 19:04:33 -07:00
Ulrich Drepper
ad3d3e8f20 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.
2010-04-08 17:12:42 -07:00
Daniel Jacobowitz
59d9f1d698 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.
2010-04-08 16:48:17 -07:00
Ulrich Drepper
85997fc3eb Merge remote branch 'origin/roland/hwcap_mask' 2010-04-08 16:06:54 -07:00
Ulrich Drepper
39be1d1f7b Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-04-08 15:57:39 -07:00
Andreas Schwab
de240a05b3 Fix fallocate error return on i386. 2010-04-08 15:44:55 -07:00
Ulrich Drepper
88e236a627 Fix cproj implmentation. 2010-04-08 15:32:51 -07:00
Roland McGrath
df5efd61b0 Fix libc-abis rules to be correct for add-on ports. 2010-04-08 15:29:19 -07:00
Ulrich Drepper
e326768467 Add tests for recent getopt changes. 2010-04-07 22:59:40 -07:00
Eric Blake
66b93be793 getopt mishandles optstring of "+:" 2010-04-07 17:56:20 -07:00
Eric Blake
cf0b68196c getopt mistakenly allows '-;' as short option 2010-04-07 17:28:36 -07:00
Eric Blake
aa7f642769 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.
2010-04-07 17:16:27 -07:00
Ulrich Drepper
71170aa0a9 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.
2010-04-07 07:37:39 -07:00
H.J. Lu
76b667f12d Fix non-add-on handling of libc-abis. 2010-04-07 06:38:35 -07:00
Joseph Myers
8824d4aa66 Fix libc-abis handling for add-ons. 2010-04-06 17:32:29 -07:00
Paul Pluzhnikov
2e7c805d5e Propagate -fdebug-prefix-map from CFLAGS to ASFLAGS. 2010-04-05 20:17:37 -07:00
Joseph Myers
afd46a4c7d elf/elf.h (ELFOSABI_ARM_AEABI): Define. 2010-04-05 20:14:43 -07:00
Roland McGrath
f571a994ce Move unwind-resume code from NPTL to sysdeps/gnu. 2010-04-05 20:07:39 -07:00
Roland McGrath
7bfa311ff5 Obey LD_HWCAP_MASK in ld.so.cache lookups. 2010-04-05 19:47:27 -07:00
Roland McGrath
4dd019e3a1 elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast. 2010-04-05 19:44:16 -07:00
Ulrich Drepper
e5c42595d0 Update dutch translation. 2010-04-05 13:10:56 -07:00
Ulrich Drepper
4535680d03 Handle DNS timeouts in old-style lookkup code. 2010-04-05 12:21:20 -07:00
Ulrich Drepper
4bc2bcba67 Fix aux cache handling in ldconfig with chroot. 2010-04-05 11:26:43 -07:00
Ulrich Drepper
247fdc8ee6 Fix printing error messages in getopt. 2010-04-04 22:48:55 -07:00
Ulrich Drepper
2cd9670885 Declare iruserok and iruserok_af. 2010-04-04 22:01:52 -07:00
Ulrich Drepper
7ebaec64a0 Add test case for last argp bug. 2010-04-04 11:28:36 -07:00
Sergey Poznyakoff
8c6de69d00 Fix option aliasing in argp. 2010-04-04 10:04:55 -07:00
Ulrich Drepper
cb652f30b0 Handle POSIX-compliant errno value of unlink in remove. 2010-04-04 02:08:37 -07:00
Ulrich Drepper
952df0afdc Fix definition and testing of S_ISSOCK. 2010-04-04 01:51:01 -07:00
Ulrich Drepper
9e37946dba Fix retrieving of kernel header version. 2010-04-04 01:02:09 -07:00
Ulrich Drepper
22f4f44b67 Fix concurrent handling of __cpu_features. 2010-04-04 00:25:46 -07:00
Ulrich Drepper
1a81139728 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.
2010-04-03 23:51:40 -07:00
Ulrich Drepper
b8b14c4cc3 Fix changes to interface list during getifaddrs calls. 2010-04-03 20:36:59 -07:00
Ryan S. Arnold
3ed8e24122 Remove incorrect paring of /proc/stat etc. 2010-04-03 19:20:29 -07:00
Ulrich Drepper
ed08740859 Document problem with NATs in getaddrinfo. 2010-04-03 17:56:51 -07:00
Ulrich Drepper
647450cfb0 Missing memory barrier in DES initialization. 2010-04-03 13:45:02 -07:00
Ulrich Drepper
90a3055e8b One more sanity check in free. 2010-04-03 09:47:01 -07:00
Ulrich Drepper
991eda1ec1 Fix set_max_fast in malloc. 2010-04-03 09:43:10 -07:00
David S. Miller
960af486d2 Fix build of mmap64. 2010-03-31 14:07:39 -07:00
Ulrich Drepper
6d28d423b2 Define MSG_WAITFORONE. 2010-03-29 22:31:44 -07:00
Thomas Schwinge
bc58236c65 Handle platforms without aux vector 2010-03-29 15:13:53 -07:00
Ulrich Drepper
8f4a5048ee Optimize __getpagesize a bit. 2010-03-27 06:19:50 -07:00
Ulrich Drepper
b9ea2dd05e 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.
2010-03-27 06:06:35 -07:00
Ulrich Drepper
a5f3b0f830 Fix one more issue with the glob patch. 2010-03-27 05:48:17 -07:00
Ulrich Drepper
62f8db6e49 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
2010-03-27 04:11:14 -07:00
Ulrich Drepper
8dc1d0baa0 Shorted ChangeLog. 2010-03-26 13:33:26 -07:00
Richard Henderson
d09580b1e6 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>
2010-03-26 09:51:57 -07:00
Richard Henderson
68cf34be99 Fix printf format warning for si_band.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:48:44 -07:00
Richard Henderson
6e9331df8b Finish locale_data -> __locale_data transition.
The transition that was begun here
f095bb7204
was not complete.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 09:21:34 -07:00
Richard Henderson
b1c1949e60 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>
2010-03-26 09:16:21 -07:00
Ulrich Drepper
7c9302908e 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.
2010-03-26 05:40:27 -07:00
Andreas Schwab
c3dfadb87e Fix spurious UNAVAIL status is getaddrinfo 2010-03-26 05:35:50 -07:00
Ulrich Drepper
2b0fba7530 Remove stale reference to website 2010-03-26 05:09:55 -07:00
Ulrich Drepper
70c90289ff Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-03-25 19:45:20 -07:00
Ulrich Drepper
89a4419cc3 Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
2010-03-25 04:01:33 -07:00
Andreas Schwab
34b514dff6 Fix typo in cuserid 2010-03-25 11:36:02 +01:00
Chris Demetriou
03615f7d83 ocale-archive differs between 32 and 64 bit platforms 2010-03-24 17:10:47 -07:00
Ulrich Drepper
c8727fa6e5 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.
2010-03-24 17:02:57 -07:00
Jonathan Geisler
fd8ccb0427 calls to cuserid() can result in buffer overruns and/or overflows 2010-03-24 16:02:15 -07:00
Ulrich Drepper
085f930b8f Allow variable shift values in mmap2. 2010-03-24 14:59:43 -07:00
H.J. Lu
7d9335ecd7 Don't define __strpbrk_sse42 in static library 2010-03-24 12:16:24 -07:00
H.J. Lu
8863605af9 Test case for last x86 memcmp problem 2010-03-24 12:14:03 -07:00
Ulrich Drepper
c27849fbbf Add test for last glob bug. 2010-03-24 12:10:51 -07:00
Ulrich Drepper
8f2e399413 Fix glob with empty pattern 2010-03-24 11:58:05 -07:00
Ulrich Drepper
4ad43b62d6 Fix handling of STB_GNU_UNIQUE in LD_TRACE_PRELINKING 2010-03-24 10:14:22 -07:00
Ulrich Drepper
9ac9129d49 Unify wint_t handling in wchar.h and wctype.h.
Fix a few typos in the process.
2010-03-24 06:59:02 -07:00
Ulrich Drepper
04f2902d9f 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.
2010-03-18 13:15:27 -07:00
H.J. Lu
b170ff0f8f Fix sysdeps/i386/i686/multiarch/memcmp-ssse3.S 2010-03-18 11:40:46 -07:00
Andreas Schwab
94308fd0e0 Fix debug statements in resolver 2010-03-17 06:57:38 -07:00
Ulrich Drepper
12e6ee86c4 A few more archs have IFUNC support. 2010-03-17 02:43:12 -07:00
Ulrich Drepper
d8c47894ca Extended ELF ABI version handling only for Linux.
If the OSABI is generic we should not allow the ABI version to be nonzero.
Move all the new functionality into Linux-specific files.
2010-03-16 23:34:59 -07:00
Ulrich Drepper
8ed9a2b18b Also update Linux-specific VALID_ELF_ABIVERSION definition. 2010-03-16 14:39:45 -07:00
Ulrich Drepper
561470e061 Update copyright year. 2010-03-15 11:50:59 -07:00
Ulrich Drepper
92ad15a8f1 Implement handling of libc ABI in ELF header. 2010-03-15 11:44:58 -07:00
Ulrich Drepper
94db8db8e8 Define UMOUNT_NOFOLLOW. 2010-03-12 08:44:10 -08:00
Andreas Schwab
4c35fb65c9 Don't underestimate length of DST substitution 2010-03-12 07:57:19 -08:00
Roland McGrath
4bf7d39245 elf.h: Add missing R_X86_64_*64 relocs. 2010-03-11 00:44:28 -08:00
Luis Machado
fb084e5e80 power7-optimized 64-bit and 32-bit memcpy 2010-03-10 07:14:16 -08:00
David S. Miller
462a5227b0 sparc: Optimize strlen using techniques from powerpc implementation. 2010-03-09 06:42:53 -08:00
David S. Miller
2fe000dfd6 sparc32: Fix non-v9 build failure in memcpy. 2010-03-09 06:37:45 -08:00
David S. Miller
d6d1c4c87c sparc64: Fix handling of R_SPARC_TLS_LE_* relocations. 2010-03-09 03:48:24 -08:00
Ulrich Drepper
b886abfbac Fix one left over from last change to statvfs. 2010-03-07 18:22:52 -08:00
Ulrich Drepper
6e0a06fa40 Handle ext4 and logfs in statvfs functions. 2010-03-06 15:40:50 -08:00
Yann Droneaud
a092b645f8 Fix DEBUG statements in resolv/res_send.c 2010-03-05 16:52:31 -08:00
H.J. Lu
01f1f5ee8b Pass -mtune=i686 to assembler when compiling for i686 2010-03-04 21:30:17 -08:00
Ulrich Drepper
3df9903e41 Define new x86-64 relocation symbols 2010-03-04 19:49:04 -08:00
Richard Guenther
e39acb1f16 Fix R_X86_64_PC32 overflow detection 2010-03-04 19:33:41 -08:00
Ulrich Drepper
356af22323 Fixups. 2010-03-04 09:16:16 -08:00
David S. Miller
65ba5b4661 sparc32: Remove unused code.
2010-03-04  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/sparcv8/udiv_qrnnd.S: Delete.
	* sysdeps/sparc/sparc32/udiv_qrnnd.S: Delete.
2010-03-04 04:25:37 -08:00
David S. Miller
605277213e sparc64: Use dbl-64/wordsize-64 math lib code.
* sysdeps/sparc/sparc64/Implies: Add ieee754/dbl-64/wordsize-64 entry.
2010-03-04 01:02:45 -08:00
Ulrich Drepper
d8c34cd19f More in.h definitions from the Linux kernel. 2010-03-03 15:37:12 -08:00
David S. Miller
2e9337f58a (INSERT_WORDS64): Fix argument order. 2010-03-03 05:58:09 -08:00
Aurelien Jarno
321029f1c3 sparc64: Fix msgrcv()
msgrcv() does not work on sparc64, as it passes the 6th argument using
the ipc kludge, while the kernel waits for a 6 arguments syscall. This
patches fixes the problem by using a sparc64 specific version of
msgrcv.c.

2010-03-03  Aurelien Jarno  <aurelien@aurel32.net>

	* sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: New file.
2010-03-03 02:14:03 -08:00
David S. Miller
7ec1221ff7 sparc: Use ba,a,pt in PLTs and fix bugs in R_SPARC_JMP_IREL handling.
2010-03-03  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_lazy_rel): Must
	pass '1' for 't' argument to sparc_fixup_plt.
	* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_lazy_rel):
	Likewise.
	* sysdeps/sparc/sparc32/dl-plt.h (OPCODE_BA_PT): Define.
	(sparc_fixup_plt): Document 't' argument.  Enable branch
	optimization and use v9 branches when possible.  Explain why we
	cannot unconditionally patch the branch into the first PLT
	instruction.
	* sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Document 't'
	argument.  Use v9 branches when possible.  Explain why we can in
	fact unconditionally use a branch in the first PLT instruction
	here.
2010-03-03 02:14:02 -08:00
Roland McGrath
42488a4d31 Merge commit 'origin/davem/sparc' 2010-03-02 11:58:09 -08:00
Roland McGrath
f2899a62cf Define NT_X86_XSTATE constant for ELF core files. 2010-02-28 16:26:27 -08:00
Ulrich Drepper
741895aa0a Add BZ number. 2010-02-26 19:56:04 -08:00
H.J. Lu
dc21aae6c1 Fix unwind info in x86 strcmp-sse4.S 2010-02-26 19:54:50 -08:00
David S. Miller
3afd5a3b55 sparc: Add multiarch support for memset/bzero/memcpy.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/elf/rtld-global-offsets.sym: New file.
	* sysdeps/sparc/Makefile (csu): Add rtld-global-offsets.sym to
	gen-as-const-headers.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memset.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9b/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-ultra3.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara1.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v/memset.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara1.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memcpy.S: Move to...
	* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara2.S: ...here.
	* sysdeps/sparc/sparc32/sparcv9/sparcv9v2/memset.S: Removed.
	* sysdeps/sparc/sparc64/multiarch/Makefile: New file.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v/memset.S: Move to...
	* sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: ...here.
	* sysdeps/sparc/sparc64/sparcv9v2/memset.S: Removed.
	* sysdeps/sparc/sparc64/multiarch/memcpy.S: New file.
	* sysdeps/sparc/sparc64/multiarch/memset.S: New file.
2010-02-25 23:58:51 -08:00
David S. Miller
e44f6f89da sparc: Pull bcopy/memmove out of memcpy.S implementations.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc32/bcopy.c: Delete.
	* sysdeps/sparc/sparc32/memmove.c: Delete.
	* sysdeps/sparc/sparc32/sparcv9/bcopy.c: Delete.
	* sysdeps/sparc/sparc32/sparcv9/memmove.c: Delete.
	* sysdeps/sparc/sparc64/bcopy.c: Delete.
	* sysdeps/sparc/sparc64/memmove.c: Delete.
	* sysdeps/sparc/sparc64/memcopy.h: New.
	* sysdeps/sparc/sparc32/memcpy.S (bcopy, memmove): Remove.
	* sysdeps/sparc/sparc64/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (bcopy, memmove): Likewise.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (bcopy, memmove): Likewise.
2010-02-25 23:58:50 -08:00
David S. Miller
dbcaf07c32 sparc: Reimplement 64-bit aligned copy routines and remove from memcpy files.
2010-02-25  David S. Miller  <davem@davemloft.net>

	* sysdeps/sparc/sparc64/Makefile: Add align-cpy rule.
	* sysdeps/sparc/sparc64/align-cpy.S: New.
	* sysdeps/sparc/sparc64/memcpy.S (__align_cpy_1, __align_cpy_2,
	__align_cpy_4, __align_cpy_8, __align_cpy_16): Remove.
	* sysdeps/sparc/sparc64/sparcv9b/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
	* sysdeps/sparc/sparc64/sparcv9v/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
	* sysdeps/sparc/sparc64/sparcv9v2/memcpy.S (__align_cpy_1,
	__align_cpy_2, __align_cpy_4, __align_cpy_8, __align_cpy_16):
	Remove.
2010-02-25 23:58:50 -08:00
Ulrich Drepper
4a1297d761 We can use the 64-bit register versions of the double functions. 2010-02-24 20:00:30 -08:00
H.J. Lu
3093e0c713 Fix issues in x86 memcpy-ssse3-rep.S 2010-02-24 18:26:30 -08:00
H.J. Lu
a0ac24d98a Fix issues in x86 memcpy-ssse3.S 2010-02-24 18:20:57 -08:00
H.J. Lu
cc50f1a4b4 Fix issues in x86 memset-sse2.S/memset-sse2-rep.S 2010-02-24 18:11:35 -08:00
Ulrich Drepper
7ca890b88e Fix reporting of I/O errors in *dprintf functions. 2010-02-24 16:07:57 -08:00
Petr Baudis
8c0b5f148e Fix assertion in palloc and pvalloc as well. 2010-02-24 15:44:29 -08:00
Jim Meyering
e2f4aa547a manual: fix typo: s/are/is/
* manual/math.texi (BSD Random): Fix a typo: s/are/is/
2010-02-22 21:26:22 +01:00
Jim Meyering
82acaacb9c manual: adjust grammar
* manual/charset.texi: Adjust grammar.
2010-02-22 21:26:11 +01:00
Jim Meyering
bbf70ae9ce manual: fix doubled-words and typos
* manual/charset.texi (Selecting the Conversion): Likewise.
* manual/errno.texi (Error Messages): Likewise.
* manual/getopt.texi (Getopt Long Options): Likewise.
* manual/memory.texi (Resizing the Data Segment): Likewise.
* manual/message.texi (GUI program problems): Likewise.
* manual/resource.texi (CPU Affinity): Likewise.
* manual/stdio.texi (Streams and Threads): Likewise.
* manual/time.texi (High Accuracy Clock): Likewise.
2010-02-22 21:25:57 +01:00
David S. Miller
34a407de96 sparc: Fix 32-bit makecontext arg passing.
test-makecontext3 fails because we fill in the argument
stack slots past the 5th using the wrong index.
2010-02-20 13:48:07 -08:00
David S. Miller
2daff75bab sparc: Fix v9 memchr with long buffer lengths.
test-memchr fails on 32-bit sparc with v9 optimized memchr because
it uses signed branch comparisons on the buffer pointers.
2010-02-20 13:48:06 -08:00
David S. Miller
5c866a8b9b Fix PLT rewrite when prelinking fails on 32-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
2010-02-20 13:48:06 -08:00
Joseph Myers
1d204bf294 Fix PLT rewrite when prelinking fails on 64-bit sparc.
When prelinking fails we have to rewrite the PLT, but the code
doing so forgets to adjust all rela->r_offset addresses by the
location of where the object was actually mapped.
2010-02-20 13:48:05 -08:00
Carl Fredrik Hammar
199428c197 Fix Hurd tiocsctty change. 2010-02-19 11:08:00 -08:00
Ulrich Drepper
8c3fe38d25 Whitespace fix. 2010-02-18 23:12:10 -08:00
H.J. Lu
039c8ae6d5 Use CPUID_OFFSET instead of FEATURE_OFFSET 2010-02-18 23:11:21 -08:00
H.J. Lu
020ecba7fc Align x86 memcmp-sse4.S and fix unwind info. 2010-02-17 23:01:55 -08:00
H.J. Lu
c60bce2cdd Fix unwind info in x86 memcmp-ssse3. 2010-02-17 22:35:18 -08:00
H.J. Lu
28be6098c3 Simplify x86 strcmp-sse4 unwind info. 2010-02-17 22:27:41 -08:00
Ulrich Drepper
82abe82ad7 Fix and cleanup unwind info in x86 strcmp-ssse<F3>. 2010-02-17 22:13:55 -08:00
Carl Fredrik Hammar
951ca0c5ff Clean up Hurd TIOCSCTTY. 2010-02-17 12:41:11 -08:00
Carl Fredrik Hammar
0ea5278d33 Use ioctl_handler_t typedef in Hurd ioctl macros. 2010-02-17 11:04:30 -08:00
Ulrich Drepper
6bb74d9f86 Fix up new x86 string functions. 2010-02-15 13:04:54 -08:00
H.J. Lu
904057bc17 32bit memcmp/strcmp/strncmp optimized for SSSE3/SSS4.2 2010-02-15 11:17:50 -08:00
Ulrich Drepper
0ab85ce429 Cleanup ChangeLog. 2010-02-12 08:04:28 -08:00
Luis Machado
41288fbb78 Cleanup old obsolete PPC_REL16 checks 2010-02-12 07:55:01 -08:00
Alan Modra
c62cf60c6b fix powerpc macros in tls-macros.h 2010-02-12 05:32:09 -08:00
Andreas Krebbel
a3dc465852 S/390: Disable two UTF conversion instructions 2010-02-11 07:22:58 -08:00
Ulrich Drepper
247fdf2e2b Fix file descriotor leak in nftw with FTW_CHDIR 2010-02-10 20:31:48 -08:00
David S. Miller
311927f1bd Sparc STT_GNU_IFUNC support 2010-02-10 07:42:17 -08:00
Maxim Kuvyrkov
bbabf1f73f Add m68k TLS relocations 2010-02-10 07:24:21 -08:00
Luis Machado
61c9346ddc Fix POWER7 Implies 2010-02-10 07:15:01 -08:00
Ulrich Drepper
0ee5660b7c More compact unwind info. 2010-02-09 22:59:11 -08:00
Ulrich Drepper
1d7223f31a Fix i386 __mpn_lshift unwind info 2010-02-09 22:54:36 -08:00
Luis Machado
0f507b6c95 power7-optimized classification functions 2010-02-09 22:42:38 -08:00
Andreas Schwab
7eb22e757e Avoid PLT call to fegetenv on s390 2010-02-09 22:34:17 -08:00
H.J. Lu
70b7d00fc7 memchr overshoots on ia64 2010-02-06 02:13:56 -08:00
Andreas Schwab
03849910cd Avoid PLT calls in utmp compat wrappers on Linux/s390 2010-02-06 02:03:10 -08:00
Andreas Schwab
70da4a1826 Add new errlist compat entry for 2.12. 2010-02-06 02:02:22 -08:00
Ulrich Drepper
1712734592 Update constants for current kernels. 2010-02-03 06:55:30 -08:00
Ulrich Drepper
caa6e77293 Fix endless loop with invalid /etc/shells file. 2010-02-03 06:23:31 -08:00
Ulrich Drepper
c63bfa7994 Avoid alloca in setenv for long strings. 2010-02-02 09:55:55 -08:00
Samuel Thibault
b34e12e22c Give Hurd weak aliases for getsysstats get_* functions. 2010-01-26 17:44:58 -08:00
Andreas Schwab
7a51836002 Fix error checking in iconv. 2010-01-25 07:17:47 -08:00
Ulrich Drepper
8549abcb9c Add BZ number. 2010-01-22 12:45:43 -08:00
Joe Landers
8b2f25c233 _nl_load_locale() incorrectly handles mmap() failures 2010-01-22 12:44:58 -08:00
Paul Eggert
aef699dce1 regexec.c: avoid overflow in realloc buffer length computation 2010-01-22 12:41:12 -08:00
Paul Eggert
74bc9f14db regexec.c: avoid leaks on out-of-memory failure paths 2010-01-22 12:33:58 -08:00
Paul Eggert
42a2c9b5c3 regexec.c: avoid overflow in computing sum of lengths 2010-01-22 12:22:18 -08:00
Paul Eggert
eadc09f22c re_search_internal: Avoid overflow in computing re_malloc buffer size 2010-01-22 12:15:53 -08:00
Paul Eggert
4cd028677b prune_impossible_nodes: Avoid overflow in computing re_malloc buffer size 2010-01-22 12:03:56 -08:00
Paul Eggert
daa8454919 regexec.c: avoid arithmetic overflow in buffer size calculation 2010-01-22 10:52:38 -08:00
Paul Eggert
d044d844dd regexec.c: simplify re_search_2_stub 2010-01-22 10:39:59 -08:00
Ulrich Drepper
5ddf954cf1 Simplify test in re_string_skip_chars. 2010-01-22 10:22:53 -08:00
Ulrich Drepper
4f08104cbf regex_internal.c: don't assume WEOF fits in wchar_t 2010-01-22 10:17:45 -08:00
Ulrich Drepper
0dae5d4ec1 regex_internal.c: remove useless variable and the code to set it. 2010-01-22 09:57:30 -08:00
Ulrich Drepper
2236464488 Extend overflow detection in re_dfa_add_node. 2010-01-22 09:48:35 -08:00
Ulrich Drepper
54dd0ab31f regex: avoid internal re_realloc overflow 2010-01-22 09:33:01 -08:00
Andreas Schwab
e3b7670be2 Fix ____longjmp_chk for s390/s390x. 2010-01-20 07:59:30 -08:00
H.J. Lu
cff0be8849 Support __memmove_ssse3_rep when SHARED isn't defined. 2010-01-19 12:20:57 -08:00
Ulrich Drepper
a7bbf3d742 Remove unnecessary returns. 2010-01-19 12:04:34 -08:00
Samuel Thibault
d924beb0f2 Define __rtld_lock_recursive_* for Hurd. 2010-01-18 14:44:22 -08:00
Ulrich Drepper
057edf90e0 memcpy for ppc/cell. 2010-01-18 12:40:29 -08:00
Andreas Schwab
f87d0dac8b Remove duplicate definitions of O_DSYNC and O_RSYNC for Linux/sparc. 2010-01-18 08:38:18 -08:00
Andreas Schwab
db07e962b6 Use correct type when casting d_tag. 2010-01-18 07:24:09 -08:00
Andreas Schwab
7a033a828d Ignore negative dynamic entry types. 2010-01-18 07:23:23 -08:00
Jakub Jelinek
64f388285e sysdeps/ieee754/ldbl-128/ fixes 2010-01-16 17:55:37 -08:00
Ulrich Drepper
2da42bc065 Fix a few more cases of ignored return values in regex. 2010-01-15 12:03:16 -08:00
Ulrich Drepper
635bc2a20f Fix _XOPEN_SOURCE_EXTENDED handling. 2010-01-15 11:03:44 -08:00
Andreas Krebbel
3a56ea2673 ld.so: Adjust the auxv if ld.so is directly invoked.
If a binary gets invoked by passing it as argument to ld.so the stack
still holds the auxiliary vector of ld.so when entering the _start
routine of the executable.  So the invocation via ld.so is not fully
transparent to the executable.  This causes problems if the executable
wants to scan the auxv itself.
2010-01-15 09:09:35 -08:00
Philip Prindeville
dca5d51ebf Define IPTOS_CLASS_* macros according to RFC 2474. 2010-01-14 23:28:05 -08:00
Ulrich Drepper
ace4e23f8c Always use IPv4 sockets for IPv4 addresses. 2010-01-14 22:34:28 -08:00
Paul Eggert
21f5de55ec regcomp.c: do not ignore memory allocation failure 2010-01-14 21:35:15 -08:00
Ulrich Drepper
0b689682ad Make unistd.h pre-c((-safe. 2010-01-14 17:03:42 -08:00
Ulrich Drepper
21dfc00031 Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2010-01-14 16:25:15 -08:00
Ulrich Drepper
6a7007d7be Relax conditions in unistd.h. 2010-01-14 16:23:47 -08:00
Ulrich Drepper
cd5c5f7051 Relax onditions in strings.h. 2010-01-14 16:16:21 -08:00
Ulrich Drepper
c589e093e1 elax some conditions in stdlib.h. 2010-01-14 16:07:58 -08:00
Ryan S. Arnold
35e6599946 Pass $(sysdep-LDFLAGS) when using --print-file-name. 2010-01-14 15:59:02 -08:00
Ulrich Drepper
402cd98775 Actually define pthread_mutex_consistent. 2010-01-14 15:52:46 -08:00
Ulrich Drepper
346bc35c33 Fix malloc_info without prioor allocations. 2010-01-14 13:32:58 -08:00
Ulrich Drepper
52e2ea9a83 Relax visibility of some more declaration. 2010-01-14 13:22:06 -08:00
Ulrich Drepper
63ee841069 Relax condition for resolver constant definition. 2010-01-14 10:05:36 -08:00
Ulrich Drepper
b1a6644267 Declare getpagesize in _GNU_SOURCE mode again. 2010-01-14 09:14:12 -08:00
Ulrich Drepper
f69190e74a Prevent silent errors should x86-64 strncmp be needed outside libc. 2010-01-14 08:09:32 -08:00
Ulrich Drepper
e26dfa69f5 Add nonnull attribute to unsetenv declaration. 2010-01-13 23:06:59 -08:00
H.J. Lu
5a7af22fbb Unroll the loop x86-64 SSE4.2 strlen. 2010-01-13 07:51:48 -08:00
Ulrich Drepper
52e96a8092 Be a bit more relaxed about obsoleted mktemp symbol. 2010-01-13 07:15:17 -08:00
Ulrich Drepper
2e3e1b3309 More test suite fixes. 2010-01-12 20:11:10 -08:00
Ulrich Drepper
dfe11a137c Fix up grp.h for XPG7. 2010-01-12 20:01:46 -08:00
Ulrich Drepper
505cf2c00a Fix up netdb.h for XPG7. 2010-01-12 16:43:00 -08:00
Ulrich Drepper
a9625ea95f Internal namespace test improvements. 2010-01-12 12:18:08 -08:00
Ulrich Drepper
d3c7e68655 Fix up pthread.h for XPG7. 2010-01-12 12:13:04 -08:00
Ulrich Drepper
25fdd5d134 Fix up sched.h for XPG7. 2010-01-12 11:48:45 -08:00
H.J. Lu
3af48cbdfa Optimize 32bit memset/memcpy with SSE2/SSSE3. 2010-01-12 11:22:03 -08:00
Ulrich Drepper
4bfc6ab9ae Fix up sys/select.h test for XPG7. 2010-01-12 07:49:10 -08:00
Jakub Jelinek
8500fa8325 Fix compile error with sys/wait.h. 2010-01-12 05:41:52 -08:00
Ulrich Drepper
e00a72ef5e Fix up sys/stat.h for XPG7. 2010-01-11 21:11:29 -08:00
Ulrich Drepper
f8c1b120d4 Fix up termios.h for XPG7. 2010-01-11 21:00:23 -08:00
Ulrich Drepper
91251b7f54 Fix up tests of math.h and tgmath.h for XPG[67]. 2010-01-11 20:54:12 -08:00
Ulrich Drepper
75eb41b42e Fix time.h POSIX test. 2010-01-11 20:12:53 -08:00
Ulrich Drepper
e531ede5af Fix up wchar.h for XPG7. 2010-01-11 20:07:47 -08:00
Ulrich Drepper
37c8e46632 Fix typo in wordexp.h tests. 2010-01-11 19:06:15 -08:00
Ulrich Drepper
1bdfadb4cc Fix up unistd.h tests. 2010-01-11 18:37:42 -08:00
Ulrich Drepper
21487cc929 Fix handling symbols removed in XPG7. 2010-01-11 14:49:17 -08:00
Ulrich Drepper
7cdb5a32f9 Fix up unistd.h for XPG7. 2010-01-11 14:43:46 -08:00
Ulrich Drepper
64c1f3af5d Fix double-inclusion problem of bits/stat.h. 2010-01-11 11:03:27 -08:00
Ulrich Drepper
7b4715c536 Fix compile error. 2010-01-11 03:41:22 -08:00
Ulrich Drepper
33780b6d33 FIx up signal.h for XPG7. 2010-01-10 18:43:30 -08:00
Ulrich Drepper
99d46ae379 Fix up sys/wait.h header for XPG7. 2010-01-10 11:06:06 -08:00
Ulrich Drepper
f9cfa295ae Fix up sys/types.h for XPG7.
Also fix a test.
2010-01-10 07:16:54 -08:00
Ulrich Drepper
df06f4855e Fix glob.h for XPG7. 2010-01-10 06:37:41 -08:00
Ulrich Drepper
18598ff105 Cleanup strings.h.
Cleanup the strings.h header for XPG7 and update the tests.
2010-01-10 02:08:32 -08:00
Ulrich Drepper
b2660fb624 Missing CLs. 2010-01-10 00:46:27 -08:00
Ulrich Drepper
cd2f000c07 Fix standalone stdio.h inclusion. 2010-01-10 00:39:22 -08:00
Ulrich Drepper
6651fa1216 Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2010-01-09 10:59:13 -08:00
Ulrich Drepper
f095bb7204 Add support for XPG7 testing.
The header conformance testing code needed extending for XPG7.  This
exposed a few bugs in the headers.  There are more changes to come.
2010-01-09 10:56:41 -08:00
Roland McGrath
d5ea695b42 Add new ELF constant PN_XNUM. 2010-01-07 18:48:32 -08:00
Roland McGrath
4472e1de30 Use NT_GNU_HWCAP instead of literal 2. 2010-01-07 15:43:10 -08:00
Ulrich Drepper
44dcc00292 Fix typo in feature selection macro use. 2010-01-06 22:47:31 -08:00
Ulrich Drepper
c10f8866e5 Fix up ChangeLog. 2009-12-25 09:49:07 -08:00
Ulrich Drepper
a87cd2894c Remove tst-sigcontext test.
It's bogus in many places.
2009-12-24 13:34:05 -08:00
Maciej W. Rozycki
9250545663 Additional setcontext(), etc. conformance tests. 2009-12-24 13:22:33 -08:00
H.J. Lu
6f89d2f30f Enable multiarch whenever possible. 2009-12-23 20:22:46 -08:00
Ulrich Drepper
63de5ef70a Fix isomac test after recent header change. 2009-12-23 19:31:50 -08:00
Ulrich Drepper
7ed319d7da Merge branch 'master' of ssh://sources.redhat.com/git/glibc 2009-12-23 18:50:11 -08:00
Ulrich Drepper
538fa939e7 Fix up ChangeLog. 2009-12-23 18:46:03 -08:00
Samuel Thibault
e87e2f48ef Hurd: Fix possibly uninitialized variable in _hurd_locked_install_cttyid. 2009-12-22 11:51:44 -08:00
Samuel Thibault
e70ffcb0fa Hurd: Fix spurious mach_port_deallocate in getcwd. 2009-12-22 11:47:13 -08:00
Martin Schwidefsky
caf512dec2 Implement handling of the needed S390 relocations. 2009-12-22 08:34:07 -08:00
Ulrich Drepper
4286fa41ed Handle AT_FDCWD in futimens. 2009-12-21 14:08:05 -08:00
Ulrich Drepper
f282f6b90a Update poll.h header for POSIX 2008. 2009-12-15 13:05:14 -08:00
Ulrich Drepper
2af6396817 Avoid ELF lookup race.
On some architectures the update of the l_used field in the lookup
functions races with setting the other bits in the bitfield.  Simply
avoid this and optimize use of l_used in general.
2009-12-15 12:32:27 -08:00
H.J. Lu
2510d01ddb Define bit_SSE2 and index_SSE2. 2009-12-13 15:23:02 -08:00
H.J. Lu
51ddd2c01e Define bit_XXX and index_XXX.
This patch defines bit_XXX and index_XXX and use them to check processor
feature in assembly code.  It can prevent typos in processor feature
check.
2009-12-13 09:47:02 -08:00
Kaz Kojima
9b2f1d4b58 Update sysdeps/sh/elf/initfini.c. 2009-12-13 09:43:51 -08:00
Mike Frysinger
ca1ccae525 Provide a __set_fpscr prototype. 2009-12-13 09:42:52 -08:00
Ulrich Drepper
2de59be022 Redefine O_SYNC and O_DSYNC to match 2.6.33+ kernels. 2009-12-11 23:00:49 -08:00
Ulrich Drepper
a682a1bf55 Fix a few error cases in *name4_r lookup handling. 2009-12-10 15:44:26 -08:00
Ulrich Drepper
633bbc1d91 Fix kernel version check in recent ptsname change. 2009-12-09 08:34:48 -08:00
Bruno Haible
4940d71bef Add more warnings to exec functions. 2009-12-09 08:30:38 -08:00
Ulrich Drepper
ee1a7fabb4 Add recvmmsg interface. 2009-12-08 20:10:46 -08:00
Andreas Krebbel
406300d20a Add even more cfi to s390 asm files. 2009-12-07 17:27:45 -08:00
Ulrich Drepper
02a52de084 Define SCHED_IDLE and SCHED_RESET_ON_FORK for Linux. 2009-11-30 08:24:59 -08:00
Ulrich Drepper
e2c59de609 Avoid handling long-obsolete old BSD PTY handling in ptsname.
Support for this type of PTY was removed in the 2.1.115 kernel.  Just
use __LINUX_KERNEL_VERSION to determine when we can drop the compat code.
2009-11-26 08:47:56 -08:00
Ulrich Drepper
c53f6228f1 Fix comments in random_r.c. 2009-11-24 20:22:44 -08:00
Ulrich Drepper
aa9890239a Optimize grantpt.
grantpt was performing two consecutive calls to stat with the same
file name.  Avoid this by creating a special version of the ptsname
function which allows to pass the stat result back to the caller.
2009-11-24 18:50:32 -08:00
Ulrich Drepper
139ee080b6 Prevent unintended file desriptor leak in grantpt.
The pt_chown program is completely transparently called.  It might
not be able to live with the various file descriptors the program
has open at the time of the call (e.g., under SELinux).  Close all
but the needed descriptor and connect stdin, stdout, and stderr
with /dev/null.  pt_chown shouldn't print anything when called to
do real work.
2009-11-24 18:24:14 -08:00
Ulrich Drepper
21f2c22320 Don't get tty group info multiple times in grantpt.
This is a minor optimization.  The tty group mustn't change so a
successful call to getgrnam will always return the same information.
Cache it and reuse it.
2009-11-24 17:50:27 -08:00
Ulrich Drepper
1c3c269b55 Fix startup to security-relevant statically linked binaries.
Before the change they crash on startup.  Perform IREL relocations
earlier to prevent this.
2009-11-24 11:17:06 -08:00
Andreas Schwab
e3611aefb4 Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8.
POSIX.1-2008 made stat.st_[acm]tim mandatory.
2009-11-23 07:10:27 -08:00
Ulrich Drepper
351fe94770 Try harder to re-exec nscd in paranoia mode. 2009-11-22 19:07:52 -08:00
Ulrich Drepper
c5a8b997e2 Reinitialize _create_xid state after fork.
Programs forking and using RPC in the forks would use the same XIDs.
2009-11-22 11:43:57 -08:00
Ulrich Drepper
eb4157390c Update ntp_gettime for Linux.
The ntp_gettime implementation of NTP exports the tai field the kernel
now produces.  This requires an ABI change since the ntptimeval structure
changed.  Upstream kept the same name, there is nothing to do.  This
patch changes the ntptimeval structure but keeps the old ntp_gettime
definition.  A new ntp_gettimex function which is transparently invoked
through the old name is introduced.  This has the advantage that even
object files can remain compatible.  This wouldn't be the case if
symbol versioning would be used to overload the name ntp_gettime.
2009-11-22 11:07:04 -08:00
Ulrich Drepper
89b432d7a5 Fix up <sys/timex.h> a bit more for recent API changes. 2009-11-22 10:23:12 -08:00
H.J. Lu
6622141795 Properly recover from shorter read. 2009-11-20 08:30:20 -08:00
Ulrich Drepper
df1934daa7 Fix getwc* and putwc* on non-wide streams. 2009-11-19 10:29:16 -08:00
Ulrich Drepper
03ebadd9ea Avoid warnings in CPU_* macros when using const bitsets. 2009-11-19 10:03:46 -08:00
Ulrich Drepper
c6e7f16c53 Follow kernel F_OWNER_{GID -> PGRP} change.
But maintain compatiblity for 2.11.
2009-11-19 06:38:31 -08:00
Ulrich Drepper
424bea69fb Change misleading names of parameters of sync_file_range. 2009-11-17 18:10:56 -08:00
Jakub Jelinek
8ad81b316b Fix sync_file_range on ppc/ppc64.
I've noticed that sync_file_range is a stub on ppc/ppc64.
The kernel on these arches provides sync_file_range2 syscall with swapped
parameters.
The following completely untested patch ought to fix this.
2009-11-17 18:04:51 -08:00
Paolo Bonzini
815d8147a3 Fix ranges with multibyte characters as endpoints.
This is another bug in computing the fastmap.  It was reported by a user
of sed because it usually does not happen with !_LIBC.  However, it is
there in that case too.

The bug is that whenever we have a range at the beginning of the regex,
the regex must be tested on any possible multibyte character.  The reason
why _LIBC masks it, is that in general there is a collation symbol for
each possible multibyte-character lead byte, so all the lead bytes are
in general already part of the fastmap.

The tests use cyrillic characters as an example.  With _LIBC, they pass
without the patch too, but you can make them fail by removing collation
symbols handling.
2009-11-17 16:23:24 -08:00
Ulrich Drepper
7443244740 Handle LC_GLOBAL_LOCALE in duplocale. 2009-11-17 09:37:31 -08:00
Ulrich Drepper
4fb9241e4e Fix _NC_LOCALE_NAME definition. 2009-11-17 09:18:11 -08:00
Ulrich Drepper
2866eeb1b7 Add missing Linux MADV_* definitions. 2009-11-17 06:43:39 -08:00
H.J. Lu
65a1148bdd Use a simple loop on data shorter than software pipeline.
When data is shorter than software pipeline, recovery may fail. This
patch avoids it by using a simple loop on data shorter than software
pipeline.
2009-11-14 19:20:19 -08:00
Mike Frsyinger
fabe43aba8 Missing CL. 2009-11-14 19:16:49 -08:00
Mike Frsyinger
5ec794b4b5 Add missing stdio.h include. 2009-11-14 19:11:44 -08:00
Ulrich Drepper
0079dd2382 Add support for new Linux error ERFKILL. 2009-11-14 10:20:25 -08:00
Ulrich Drepper
8964681064 Fix F_SETOWN_EX and F_GETOWN_EX definitions. 2009-11-14 08:28:40 -08:00
Ulrich Drepper
24c0bf7a76 Start 2.12 development. 2009-11-12 08:46:19 -08:00
Andreas Schwab
51e4196f16 Handle running out of buffer space with IPv6 mapping enabled.
With big DNS answers like the one you get for goodtimesdot.com you can
get a truncated address list if IPv6 mapping is enabled.  Instead tell
the caller to resize the buffer.
2009-11-10 07:36:50 -08:00
Caolan McNamara
6515a01fc1 Avoid memset warning in one case. 2009-11-10 06:29:13 -08:00
Philippe De Muyter
868f7a4053 Fix spelling of (Newton-)Raphson 2009-11-06 09:33:27 -08:00
Holger Hans Peter Freyther
685cb08356 Fix spelling in memusagestat.c 2009-11-06 09:32:06 -08:00
H.J. Lu
8608ae1f7b Properly handle STT_GNU_IFUNC symbols in do_sym.
do_sym should use DL_FIXUP_VALUE_XXX macros to call IFUNC function.
Otherwise, it won't compile on ia64. This patch fixes it and adds
a test.
2009-11-06 09:30:56 -08:00
Andreas Schwab
5b55d23611 Correct readahead syscall wrapper on powerpc32.
Due to alignment of 64bit parameters there is a dummy second argument.
But other than that the syscall arguments are directly mapped to the
function arguments.
2009-11-06 09:29:24 -08:00
Jakub Jelinek
872873d48d Fix R_PPC64_{JMP_IREL,IRELATIVE} handling in dl-conflict.c.
I've just committed STT_GNU_IFUNC ppc/ppc64 support into prelink,
and this patch is needed on the glibc side.  Without it ld.so segfaults,
as in dl-conflict.c sym_map is always NULL.  While dl-machine.h could use
RESOLVE_CONFLICT_FIND_MAP macro to compute it, it doesn't make sense,
because with prelink we know it is already properly relocated (all relative
relocations are applied by prelink).
2009-11-06 09:27:41 -08:00
Jakub Jelinek
34df851b33 Fix preadv, pwritev and fallocate for -D_FILE_OFFSET_BITS=64.
As reported in http://bugzilla.redhat.com/533063 , preadv/pwritev prototypes
are wrong on 32-bit arches with -D_FILE_OFFSET_BITS=64 and as I've just
found, fallocate is wrong too.
The problem is that only off_t is remapped to the 64-bit type transparently,
__off_t is not.
2009-11-06 09:26:31 -08:00
Andreas Schwab
13f6812ffb Make name of libgcc_s library configurable 2009-11-03 23:52:01 +01:00
Ulrich Drepper
cc49a5a883 Restore locking in free_check.
This code is only used when MALLOC_CHECK_ is used.  Then some bogus
crashes and/or assert could result from the locking changes.  The code
ain't fast.
2009-11-01 07:27:00 -08:00
Ulrich Drepper
7f9cd6ed20 2.11 release. 2009-10-30 10:17:08 -07:00
Ulrich Drepper
3005703bb9 Add cast in tst-execstack to avoid warning. 2009-10-30 09:26:00 -07:00
Ulrich Drepper
1c52a97a1e Avoid warning in scanf test. 2009-10-30 09:23:24 -07:00
Ulrich Drepper
08c7ad975c Avoid two warnings in strtol{,l} tests. 2009-10-30 09:22:34 -07:00
Keith Stribley
3c2c4bf6f7 Implement Burmese language locale for Myanmar. 2009-10-30 08:14:02 -07:00
Ulrich Drepper
3a83202db6 Implement mkostemps and mkostemps64. 2009-10-30 08:02:30 -07:00
Andreas Schwab
2c5c07f5fc Add missing declarations. 2009-10-30 07:15:12 -07:00
Andreas Schwab
de2cc8095b Fix typo in readlinkat 2009-10-30 14:18:18 +01:00
Roland McGrath
6cfe8609b8 New simplified make dist using git archive. 2009-10-30 03:30:14 -07:00
Alan Modra
31c759bf37 Uglify IFUNC tests for PPC. 2009-10-30 00:48:54 -07:00
Alan Modra
77799d9d9b Implement IFUNC for PPC. 2009-10-30 00:39:38 -07:00
Ulrich Drepper
0d2f180dd0 Add a few defines to <netinet/udp.h>. 2009-10-30 00:27:27 -07:00
Ulrich Drepper
7f3146e789 Implement mkstemps and mkstemps64. 2009-10-30 00:11:07 -07:00
Ulrich Drepper
471d4931f8 Add sml entry to ISO 639 list. 2009-10-29 23:21:18 -07:00
Ulrich Drepper
75ded9bcdf Initialize local variable in resolver.
When the DNS server doesn't reply at all we possibly tested
an unitialized variable.
2009-10-29 23:01:58 -07:00
Ulrich Drepper
204fcca27c Fix IA-64 and S390 sigevent definitions. 2009-10-29 22:43:08 -07:00
Anders Johansson
ea547a1a6e Fix a few asserts and IO calls in nscd.
The nscd/*cache.c files contain assert()s, writeall() and sendfileall() calls
that invalidly use together &dataset->resp and total where either dataset or
dataset->head.recsize should be used instead one of the components. In the
writeall() and sendfileall() cases, it is unlikely to matter in practice, but
the assertions can fail sometimes without a proper reason.
2009-10-29 22:18:26 -07:00
Steve Langasek
5c53736b52 Fix nss_files if /etc/hosts is missing. 2009-10-29 22:04:58 -07:00
John Sullivan
ee6f35389c Fix typos in format strings of malloc_info. 2009-10-29 21:50:35 -07:00
Ulrich Drepper
5debe36313 Bump timeout for utmp operations to 10s. 2009-10-29 21:41:19 -07:00
Ulrich Drepper
801720e63b Fix compat handling in *at functions.
When passed an empty string for the filename, the compat code
using /proc in all *at functions did the wrong thing.
2009-10-29 21:33:26 -07:00
Ulrich Drepper
584715c3a9 Fix AIO when thread creation failed.
Several bugs fixed when we needed to create a thread to work on AIO
requests but failed and there is not one running.
2009-10-29 21:01:24 -07:00
Joe Landers
c240c3a58f Fix error handling in NIS.
A buffer was freed even though it wasn't allocated as expected.  Do
this only when !batch_read.
2009-10-29 19:59:59 -07:00
Joe Landers
1a9e411e2a Fix memory leak in NIS grp database handling. 2009-10-29 16:22:01 -07:00
Ulrich Drepper
cc88b371a5 Fix return value of puts for very long strings. 2009-10-29 16:03:07 -07:00
Ulrich Drepper
67854c131c Fix repairing of memusage trace files. 2009-10-29 14:19:33 -07:00
Ulrich Drepper
e0f471a118 Print timestamp in nscd debug messages. 2009-10-29 13:45:10 -07:00
Andreas Schwab
d79eccd6dd Fix errno handling in posix_openpt.
The implementation of posix_openpt on Linux can fail in a few extra
ways if the appropriate pseudo filesystems are not mounted etc.  In
some of these cases we have to explicitly set errno.
2009-10-29 11:27:53 -07:00
Andreas Schwab
22bc5239e1 Fix wrap-around in memusage. 2009-10-29 11:25:20 -07:00
Ulrich Drepper
d94760f944 Fix getttyname on Linux when called for different devices.
If a second call to ttyname is not for the same type of device (e.g.,
serial vs ptty) the prefix of the buffer was wrong.  Don't rely on
the previous content, always reinitialize it.
2009-10-29 11:02:34 -07:00
Philip Prindeville
8d55628106 Add macros for DSCP markings. 2009-10-29 10:40:55 -07:00
Ulrich Drepper
81c84bd902 Fix F_GETOWN on some Linux archs.
The syscall conventions on some Linux archs prevented F_GETOWN from working
correctly in some situations.  This can be rectified when using the new
F_GETOWN_EX command.
2009-10-29 10:12:59 -07:00
Ulrich Drepper
d9e8f9ec55 Define F_OWNER_* and f_owner_ex for Linux targets. 2009-10-29 08:48:17 -07:00
Ulrich Drepper
92934e8b84 Allow compat handling of getutmp. 2009-10-29 08:33:12 -07:00
Petar Bogdanovic
3a85895fa3 Fix mixing IPv4 and IPv6 name server in resolv.conf. 2009-10-29 08:17:48 -07:00
Joseph S. Myers
3ad3a4d059 Readd definition of __expl in ldbl-128 2009-10-28 11:14:56 +01:00
Jakub Jelinek
98363ded87 Fix range checks in coshl. 2009-10-27 13:46:08 -07:00
H.J. Lu
001659f4d5 Implement SSE4.2 optimized strchr and strrchr. 2009-10-22 22:47:12 -07:00
Andreas Schwab
bc5e846218 Handle IFUNC symbols in dlsym. 2009-10-21 06:23:42 -07:00
Andreas Schwab
b7805d0ba8 Correct errno handling in expm1. 2009-10-19 21:23:15 -07:00
David S. Miller
a0902db9fe Add ____longjmp_chk for sparc
tst-longjmp_chk passes, tst-longjmp_chk2 fails but that is because
of some limitations of kernel signal delivery on sparc that I need
to fix, it has nothing to do with the longjmp_chk implementation.

(The problem with tst-longjmp_chk2 is that it tries to do a stack
 fault SIGSEGV within a stack fault SIGSEGV , and the Linux kernel
 will refuse to setup the signal stack and deliver the signal if the
 register windows can't be written out to the stack first)
2009-10-14 14:57:16 +02:00
Andreas Schwab
4bb04b1fb6 Fix USE_MULTIARCH conditional 2009-10-13 16:12:47 +02:00
Ulrich Drepper
1abedcdad2 Remove duplicate __set_errno call in random_r.c. 2009-10-08 13:46:47 -07:00
Ulrich Drepper
1219ddfe54 Typo fix. 2009-10-08 13:39:00 -07:00
Ulrich Drepper
b68053cf7d New Czech translation. 2009-10-08 13:11:13 -07:00
Andreas Schwab
96961bf71d Fix descriptor leak when calling dlopen with RTLD_NOLOAD 2009-10-07 10:25:38 +02:00
Roland McGrath
b0f3a2e43f Clean up unnecessary libc_hidden_builtin_def fiddling in x86 multiarch definitions. 2009-10-06 20:01:23 -07:00
Roland McGrath
9d6982d5d2 Clean up x86 multiarch HAS_FOO macros. 2009-10-06 19:59:03 -07:00
Andreas Schwab
930799d555 Fix week-1stday in C locale 2009-10-05 10:52:22 +02:00
Ulrich Drepper
78aa397939 Define F_SETOWN_EX and F_GETOWN_EX in Linux headers. 2009-10-01 01:18:41 -07:00
Ulrich Drepper
f8d7c1eadd Merge branch 'master' of ssh://sources.redhat.com/git/glibc
Conflicts:
	ChangeLog
2009-09-29 06:13:11 -07:00
Andreas Schwab
199eb0de8d Check for integer overflows in formatting functions 2009-09-29 06:11:59 -07:00
Samuel Thibault
ff28353181 Fix Hurd mkdirat. 2009-09-28 11:37:20 -07:00
Ulrich Drepper
9d076f21cd Fix locale program error handling
If an unknown name is passed to locale, report it and fail.
2009-09-28 10:35:41 -07:00
H.J. Lu
f450806e22 Handle future binutils versions correctly. 2009-09-28 04:18:09 -07:00
Ulrich Drepper
4fd894620f Fix missing reloc dependency
When DL_LOOKUP_ADD_DEPENDENCY was introduced a few callers of
_dl_lookup_versioned_symbol were not properly adjusted.  One of them
survived until now.
2009-09-28 03:19:58 -07:00
Samuel Thibault
0d1804061a Fix IXANY feature macro conditions. 2009-09-27 16:26:59 -07:00
Andreas Schwab
ae0f0dbd0e Fix typo in is646 gconv module 2009-09-20 09:42:48 +02:00
Ulrich Drepper
fc0c556c5f Hungarian and Vietnamese translation update. 2009-09-20 00:21:30 -07:00