Commit Graph

6719 Commits

Author SHA1 Message Date
Liubov Dmitrieva
99710781cc Improve 64 bit strcat functions with SSE2/SSSE3 2011-07-19 17:11:54 -04:00
Ulrich Drepper
298711ffe4 Fix typos in pretty much unused code in sched.h header. 2011-07-18 20:19:14 -04:00
Roland McGrath
db290cf592 Never use -mpreferred-stack-boundary=2 on i386, now disallowed by GCC. 2011-07-16 03:10:06 -07:00
Roland McGrath
661607b3dd Quash a warning in strstr-c.c built for static. 2011-07-14 20:47:54 -07:00
Ulrich Drepper
319b9ad4bc Generalize framework to register monitoring of files in nscd
nscd can clear caches when certain files change.  The list of files
was hardcoded so far and worked for nss_files and nss_dns and those
modules which need no monitoring.  nss_db, for instance, has its
own set of files to monitor.  Now the NSS modules themselves can
request that certain files are monitored.
2011-07-11 14:50:24 -04:00
Ulrich Drepper
4e5f31c847 Handle ext4 in {,f}pathconf
ext4 has a higher LINK_MAX limit than ext2/3.  Unfortunately it is
not easy to distinguish the filesystems from userlevel.
2011-07-07 10:53:16 -04:00
Andreas Dilger
de283087c7 Handle Lustre filesystem 2011-07-07 00:20:32 -04:00
Ulrich Drepper
c0cfb5eb3d Fix for installation in sysdeps/s390/s390-64/Makefile 2011-07-06 21:38:49 -04:00
Ulrich Drepper
ecaddd6699 Rebuild configure scripts 2011-07-06 21:29:02 -04:00
Andreas Schwab
89f654c57b Make sure RES_USE_INET6 is always restored 2011-06-30 06:33:32 -04:00
Aurelien Jarno
751626f948 Fix build with multiarch disabled. 2011-06-29 05:00:49 -07:00
Ulrich Drepper
4902da17c8 Add missing HAVE_SENDFILE definition 2011-06-27 12:29:04 -04:00
H.J. Lu
c2344f56e4 Use __gettimeofday instead of gettimeofday 2011-06-26 03:08:01 -04:00
H.J. Lu
acb0d739c5 Fix unwind info in 32bit SSE2/SSSE3 strncpy 2011-06-25 01:32:27 -04:00
H.J. Lu
8912479f9e Improved st{r,p}{,n}cpy for SSE2 and SSSE3 on x86-64 2011-06-24 15:14:22 -04:00
Ulrich Drepper
d5495a116c Work around limit in writev in 2.6.38+ kernels 2011-06-24 14:59:17 -04:00
H.J. Lu
0b1cbaaef5 Optimized st{r,p}{,n}cpy for SSE2/SSSE3 on x86-32 2011-06-24 14:15:32 -04:00
Ulrich Drepper
fa3fc0fe5f Avoid __check_pf calls in getaddrinfo unless really needed 2011-06-22 15:00:54 -04:00
Andreas Schwab
e12df166d3 Fix Ipv4&IPv6 lookup in getaddrinfo
Problem introduced in the last patch.
2011-06-22 14:35:49 -04:00
Ulrich Drepper
84e2a551a7 Use a /sys/devices/system/cpu/online for _SC_NPROCESSORS_ONLN implementation 2011-06-22 10:32:07 -04:00
Ulrich Drepper
852eb34d5c Rate limit expensive _SC_NPROCESSORS_ONLN computation 2011-06-22 09:50:39 -04:00
Ulrich Drepper
6e502e1945 Clean up after kernel sigcontext header mess 2011-06-22 08:32:55 -04:00
Ulrich Drepper
c0244a9ded Fix IPv6-only lookups through getaddrinfo
A recent patch introduced a problem where IPv6 lookups happily returned
IPv4 addresses.
2011-06-21 17:03:38 -04:00
Ulrich Drepper
c5e3c2ae59 Minor optimization of getaddrinfo after recent patch 2011-06-21 13:06:42 -04:00
David S. Miller
42675c6ff0 Add an elf_ifunc_invoke interface so that architectures can implement
the ifunc resolver calls however they wish.
2011-06-20 19:56:40 -07:00
Andreas Schwab
ee22793dd0 Improve 64-bit build
An imperfect version of fxstatat64 was used in ld.so.
2011-06-15 21:46:20 -04:00
Andreas Jaeger
c71ca1f89c Quash two memset undeclared warnings. 2011-06-14 13:11:39 -07:00
Ulrich Drepper
3154bfb8c7 Fix memory leak in getaddrinfo 2011-06-13 08:31:50 -04:00
David S. Miller
9b849836f5 sparc: Fix LD_BIND_NOW with multiarch. 2011-06-07 19:51:06 -07:00
Ulrich Drepper
06c07b8b9f Merge branch 'master' of ssh://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2011-06-03 07:02:32 -04:00
H.J. Lu
3d29045b5e Assume Intel Core i3/i5/i7 processor if AVX is available 2011-06-03 07:01:25 -04:00
Ulrich Drepper
8c29731192 Fix typo in stack guard setup code for old kernels 2011-05-31 14:23:01 -04:00
Ulrich Drepper
7ae22829af Restore _res correctly
getaddrinfo works around the resolver functionality to avoid automatic
IPv6 lookups.  The restoring didn't allow for the resolver to set
additional bits in _res.
2011-05-29 23:49:49 -04:00
Ulrich Drepper
80e2212d8e Same change for the other siginfi.h files 2011-05-29 20:12:15 -04:00
Ulrich Drepper
b1ebd700c5 Don't document si_code used for raise() 2011-05-29 20:05:30 -04:00
Ulrich Drepper
d0478f0c81 Fix build for platforms with socketcall syscall 2011-05-28 13:18:57 -04:00
Ulrich Drepper
c738465a4c Add support for time syscall in vDSO 2011-05-28 01:53:26 -04:00
Ulrich Drepper
f1f929d74a Add sendmmsg syscall 2011-05-28 01:43:20 -04:00
Ulrich Drepper
ce67228d57 Set setns system call 2011-05-28 00:53:13 -04:00
Ulrich Drepper
a8509ca540 Use getcpu definition from vDSO on x86-64 2011-05-27 16:09:52 -04:00
Jakub Jelinek
ea486f691d Undo accidental change in x86-64 user.h 2011-05-25 16:57:13 -04:00
Ulrich Drepper
67f86a251e Define RLIMIT_RTTIME 2011-05-23 15:53:37 -04:00
Andreas Schwab
f50ef8f1ef Fix sysconf compilation for !HP_TIMING_AVAIL archs 2011-05-23 11:51:12 -04:00
Ulrich Drepper
05bb4a68ad Define CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM 2011-05-21 17:20:41 -04:00
Ulrich Drepper
34a9094f49 Don't unconditionally use alloca in gaih_inet 2011-05-20 23:46:03 -04:00
Ryan S. Arnold
457bddfc2a Prevent Altivec and VSX insns on PowerPC64 when no FPRs or VRs are avail.
(cherry picked from commit 4749a0058b)

Conflicts:

	ChangeLog
2011-05-20 06:34:48 -04:00
H.J. Lu
8db736347c Fix typo in x86-64 powl 2011-05-18 19:50:48 -04:00
Ulrich Drepper
d79a9c949c Cleanup x86-64 sys/user.h 2011-05-16 01:35:07 -04:00
Ulrich Drepper
94b7cc3711 Fix a few problems in fopen and freopen
fopen should set the FD_CLOEXEC flag if requested evenif the kernel does
not support an aotmic operation.

freopen should reuse the file descriptor for the stream.  This is
especially important for calls to change the standard streams (stin,
stdout, stderr).
2011-05-15 15:28:46 -04:00
Ulrich Drepper
3b85df2787 sysconf on Linux/ia64 reported outdate versions for some options
The code is also cleaned up to avoid inefficiencies.
2011-05-15 11:18:10 -04:00
Ulrich Drepper
15a856b109 Make stack canary value harder to read through read overflow 2011-05-15 10:59:07 -04:00
Ulrich Drepper
05f399e634 Use non-cancelable interfaces in setup code 2011-05-15 09:40:30 -04:00
Ulrich Drepper
f8a3b5bf8f Use mmap for allocation of buffers used for __abort_msg 2011-05-15 00:34:48 -04:00
Ulrich Drepper
2fc54d6f9f Fix initialization of optimization values for AIO 2011-05-14 19:30:37 -04:00
Ulrich Drepper
32ad1972a8 Fix typo in comment 2011-05-14 11:16:18 -04:00
Ulrich Drepper
da3c19ef5a Fix potential problem with out-of-scope buffer 2011-05-14 11:13:31 -04:00
Ulrich Drepper
d6f67f7d83 Handle recursive calls in backtrace better 2011-05-14 10:46:17 -04:00
Ulrich Drepper
f574184a0e Fix sched_setscheduler call in spawn implementation 2011-05-11 23:58:02 -04:00
Ulrich Drepper
6fb2dde3f1 Make complete getcwd work in rtld 2011-05-08 14:53:20 -04:00
Ulrich Drepper
7fb90fb89b Fix Linux getcwd for long paths
The getcwd syscall (so far?) can only handle path up to one page
in size.  There is no limit about directory hierarchy depth, though,
and the POSIX getcwd is supposed to handle this.  In that case fall
back to the generic getcwd.

Additionally, optimize the generic getcwd to use openat when possible
to change the asymptotic performance from O(N^2) to O(n).
2011-05-08 08:37:19 -04:00
Ulrich Drepper
28377d1bf5 Optimize fdopendir a bit.
Don't call fcntl(F_SETFD) unnecessarily.
2011-05-08 00:48:30 -04:00
Jonathan Nieder
9572119174 Actually undefine ARG_MAX from <linux/limits.h> 2011-05-07 13:20:33 -04:00
Ulrich Drepper
d08055417d Misplaced new line in last patch 2011-05-07 09:13:43 -04:00
Paul Pluzhnikov
8a35c9120f Add missing {__BEGIN,__END}_DECLS to sys/sysmacros.h 2011-05-07 09:03:36 -04:00
Ulrich Drepper
1bfbe0d335 Better use of open in pathconf. 2011-05-02 21:34:34 -04:00
Maciej Babinski
0b592a30f5 getaddrinfo(AF_INET6) does not return scope_id info provided by NSS modules 2011-05-02 21:11:17 -04:00
Ulrich Drepper
6e04cbbe79 Fix pathconf(_PC_BUF_SIZE). 2011-05-02 20:59:51 -04:00
Ulrich Drepper
7a41d99a35 Fix whitespaces. 2011-04-22 21:38:13 -04:00
Jim Meyering
ded5b9b7c7 Remove doubled words. 2011-04-22 21:34:32 -04:00
Mike Frysinger
4c559bcdf3 Fix static linking with checking x86/x86-64 memcpy. 2011-04-17 22:20:47 -04:00
Andreas Schwab
4420675c9d Fix POWER4/POWER7 optimized strncmp to not read past differing bytes 2011-04-17 22:03:53 -04:00
Ulrich Drepper
75ea32abcd Fix FPU context handling in getcontext on x86-64.
fnstenv on x86-64 seems to clear the state.  Work around.
2011-04-17 21:51:26 -04:00
Justin P. Mattock
94409c736b Typo fix appproximated. 2011-04-17 20:56:07 -04:00
Andreas Krebbel
2739047682 Use .machine to prevent AS from complaining about z9-109 instructions in iconv modules 2011-04-17 20:43:59 -04:00
Andreas Krebbel
1044270502 Skip extra zeroes when searching auxv on s390 2011-04-17 20:41:45 -04:00
Ulrich Drepper
e6c6149412 Fix memory leak in TLS of loaded objects. 2011-04-10 22:43:01 -04:00
Andreas Schwab
f12a32e6f0 Make ppc sync_file_range cancelable. 2011-04-09 11:07:18 -04:00
Ulrich Drepper
38a7d692fc Fix typo in comment. 2011-04-09 11:01:37 -04:00
Andreas Schwab
e451d22b22 Maintain stack alignment in ____longjmp_chk on x86_64 2011-04-07 16:23:52 -04:00
Ulrich Drepper
dedc7c7b05 Fix typo in cache information table for x86-{32,64}. 2011-04-03 09:32:31 -04:00
Ulrich Drepper
94521213b6 Define CLOCK_BOOTTIME. 2011-04-02 15:27:07 -04:00
H.J. Lu
0354e35501 Work around old buggy program which cannot cope with memcpy semantics. 2011-04-01 19:38:21 -04:00
Andreas Schwab
81a5726bd2 Add syncfs syscall. 2011-04-01 13:08:28 -04:00
Andreas Schwab
00e5419f8e Rename open_by_handle to open_by_handle_at. 2011-04-01 13:05:15 -04:00
Ulrich Drepper
658e451d8b Define O_PATH. 2011-04-01 11:46:10 -04:00
Ulrich Drepper
3167dad07c Also make x86 sync_file_range a cancellation point. 2011-04-01 11:33:14 -04:00
Ulrich Drepper
748876bf1c Really implement fallocate{,64} and sync_file_range as cancellation points. 2011-04-01 11:15:08 -04:00
Andreas Schwab
6e63d5e1ae Install bits/timex.h header. 2011-04-01 10:40:53 -04:00
Ulrich Drepper
158648c0bd Add support for name_to_handle_at and open_by_handle. 2011-04-01 10:33:37 -04:00
Ulrich Drepper
034c4e1503 Export new symbol. 2011-03-31 06:30:18 -04:00
Ulrich Drepper
83fe108b0a Add clock_adjtime syscall. 2011-03-30 22:00:57 -04:00
Ulrich Drepper
bb2420590c Last change caused infinite loops because of missing loop increment. 2011-03-22 01:52:43 -04:00
H.J. Lu
c97a1282a4 Handle page boundaries in x86 SSE4.2 strncmp. 2011-03-21 05:35:38 -04:00
Ulrich Drepper
2a11560107 Implement x86 cpuid handling of leaf4 for cache information. 2011-03-20 08:14:30 -04:00
Ryan S. Arnold
ccfe366e6f PowerPC: Fix POWER6 s_isnanf.S: END(__isnan) to END(__isnanf) 2011-03-18 05:15:00 -04:00
Ulrich Drepper
f6ce0f974b Merge branch 'master' of ssh://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2011-03-10 12:53:39 -05:00
Ulrich Drepper
908ea63341 Regenerate. 2011-03-10 05:27:54 -05:00
Mike Frysinger
03592fc7ea sparc64: Relax tls linking test. 2011-03-10 00:38:59 -08:00
Harsha Jagasia
7e4ba49cd3 Enable SSE2 memset for AMD'supcoming Orochi processor.
This patch enables SSE2 memset for AMD's upcoming Orochi processor.
This patch also fixes the following bug:
For misaligned blocks larger than > 144 Bytes, memset branches into
the integer code path depending on the value of misalignment even if
the startup code chooses the SSE2 code path upfront, when multiarch
is enabled.
2011-03-04 23:30:08 -05:00
David S. Miller
012d35f761 Fix sparc64 bzero on non-Niagara systems. 2011-03-03 13:25:36 -08:00
Samuel Thibault
6c8a2e88d1 Fix __if_freereq crash: Unlike the generic version which uses free, Hurd needs munmap. 2011-02-21 16:53:10 -08:00
Ulrich Drepper
baa6c69a57 Work around empty line at end file generated by autoconf. 2011-02-17 01:26:07 -05:00
Ulrich Drepper
be6bd0b7ab Merge branch 'master' of ssh://sourceware.org/git/glibc
Conflicts:
	ChangeLog
2011-02-17 01:22:52 -05:00
Ryan S. Arnold
d55fd7a557 Fix INTERNAL_[V]SYSCALL_NCS macros to not cast return val to int. 2011-02-17 01:21:08 -05:00
Ryan S. Arnold
2206397e1c Disable VSX usage in rtld.c to prevent TOC ref before relocs are resolved. 2011-02-17 00:59:15 -05:00
Samuel Thibault
8e31c82dbd Add multiple inclusion protection to some Mach/i386 internal headers. 2011-02-16 15:16:33 -08:00
Ulrich Drepper
e943389325 Remove use of ranlib. 2011-02-15 14:52:29 -05:00
Andreas Schwab
edf9294e7a Update sysdeps/unix/sysv/linux/sparc/bits/socket.h 2011-02-07 22:48:55 -05:00
Roland McGrath
a0bf67cca2 Fix some warning nits. 2011-02-04 10:53:51 -08:00
H.J. Lu
435b95ebd0 AVX audit test failures with gcc 4.6 2011-02-02 19:28:44 -05:00
Ulrich Drepper
86e9235918 Fix decoding of canonical name in getaddrinfo. 2011-01-19 15:50:05 -05:00
Ulrich Drepper
18ba70a559 Define MADV_NOHUGEPAGE. 2011-01-17 18:35:17 -05:00
Ulrich Drepper
32465c3ea0 Define MADV_HUGEPAGE. 2011-01-17 18:24:59 -05:00
Ulrich Drepper
a77e8cbc39 Add definitions for new socket protocols. 2011-01-17 14:21:02 -05:00
Ulrich Drepper
70181fddf1 Change setgroups to affect all the threads in the process. 2011-01-14 08:42:11 -05:00
Ulrich Drepper
8cf8ce1702 Clean up PLT use for getrlimit64. 2011-01-13 16:21:04 -05:00
Ulrich Drepper
cfa28e560e Relax requirement on close in child created by posix_spawn. 2011-01-13 13:27:46 -05:00
Ulrich Drepper
1086d70d91 Fix handling of missing syscall in Linux mkdirat. 2011-01-13 12:42:06 -05:00
Ulrich Drepper
5e49c52efd Fix alignment in x86 destructor calls. 2011-01-12 20:59:32 -05:00
Ulrich Drepper
f257bbd77d Clean up some bits/select.h headers. 2011-01-09 16:49:17 -05:00
David S. Miller
16c2895fea sparc64: Use i386 implementation for fxstat.
This was simply missed when Jakub converted all of the
other sparc64 xstat cases.
2011-01-04 12:22:41 -08:00
Ulrich Drepper
5bd6dc5c2c Use prlimit64 for 32-bit [gs]etrlimit64 implementation. 2010-12-25 20:12:27 -05:00
Ulrich Drepper
98727dbea2 Change XPG-compliant strerror_r function to return error code. 2010-12-25 13:56:48 -05:00
H.J. Lu
4a531bb0b3 Remove .ctors' and .dtors' output sections 2010-12-24 20:14:37 -05:00
Ryan S. Arnold
30950a5fd2 Make PowerPC64 default to nonexecutable stack 2010-12-19 22:49:01 -05:00
Ulrich Drepper
db753e2cfb More accurate computatin of reclen in readdir_r.
Alignment issue can increase the reclen limit.
Make sure Linux 64-bit readdir_r also accounts for 64-bit alignment
in getdents.
2010-12-19 16:00:59 -05:00
Ulrich Drepper
283007197c Undo accidental checkin. 2010-12-14 13:09:28 -05:00
Jakub Jelinek
42acbb92c8 Fix -D_FORTIFY_SOURCE memmove and bcop 2010-12-09 10:38:18 -05:00
H.J. Lu
3a4a2499ec Remove dead code from x86-32 SSSE3 strncmp. 2010-12-01 22:18:31 -05:00
Ulrich Drepper
1e24cf6e6e Relax libm tests for x86-32. 2010-11-30 14:57:57 -05:00
Jakub Jelinek
3bf8d1b10c ldbl-128 fmal compile fix 2010-11-22 15:38:35 -05:00
Ulrich Drepper
cf7c9078a5 Define MAP_HUGETLB. 2010-11-19 09:35:39 -05:00
Ulrich Drepper
a1fb5e3ebe Define SWAP_FLAG_DISCARD. 2010-11-16 12:17:04 -05:00
H.J. Lu
13b695749a Support Intel processor model 6 and model 0x2. 2010-11-12 03:48:52 -05:00
Luis Machado
da93d21475 Fix comparison in sqrtl for IBM long double 128. 2010-11-10 16:15:05 -05:00
H.J. Lu
8ca52c6e3b Fix one exit path in x86-64 SSE4.2 str{,n}casecmp. 2010-11-10 03:05:37 -05:00
Ulrich Drepper
69da074d7a Fix warnings in __bswap_16. 2010-11-10 02:38:35 -05:00
H.J. Lu
ff02d5280b Use IFUNC on x86-64 memset 2010-11-08 03:41:34 -05:00
Luis Machado
344d0b545d power7-optimized mempcpy 2010-11-05 08:01:13 -04:00
Ulrich Drepper
c0dde15b5d 32bit memset-sse2.S fails with uneven cache size
32bit memset-sse2.S assumes cache size is multiple of 128 bytes.  If
it isn't true, memset-sse2.S will fail.  For example, a processor can
have 24576 KB L3 cache and 20 cores. That is 2516582 byte per core. Half
of it is 1258291, which isn't helpful for vector instructions.  This
patch rounds cache sizes to multiple of 256 bytes and adds "raw" cache
sizes.
2010-11-05 07:57:46 -04:00
Miklos Szeredi
0e516e0e14 Verify in ttyname() that the symlink is valid. 2010-11-03 00:25:45 -04:00
Andreas Krebbel
f09677388a Fix concurrency problem between dl_open and dl_iterate_phdr 2010-10-26 00:23:14 -04:00
Richard Li
dbf3a06904 Fix x86-64 strchr propagation of search byte into all bytes of SSE register 2010-10-25 14:13:17 -04:00
Michael B. Brutman
d0b9e94faf powerpc: PPCA2/A2 optimized memcpy function 2010-10-24 21:47:33 -04:00
Andreas Schwab
8e9f92e9d5 Require suid bit on audit objects in privileged programs 2010-10-24 21:43:15 -04:00
Ulrich Drepper
18edac4857 Provide FP_FAST_FMA{,F,L} definitions for x86/x86-64. 2010-10-19 12:56:42 -04:00
Michael Meissner
d20501241e Add C99 FP_FAST_FMA{,F,L} macros to math.h 2010-10-19 12:49:05 -04:00
Jakub Jelinek
7c08a05c5f IEEE quad fmal fixes 2010-10-18 07:29:50 -04:00
Jakub Jelinek
3e692e0518 Implement fmal, some fma bugfixes 2010-10-15 15:26:06 -04:00
Jakub Jelinek
f3f7372de1 Fix some more dbl-64/s_fma.c issue 2010-10-15 15:25:14 -04:00