H.J. Lu
a9879d4cde
Add x32 support to ldd-rewrite.sed
2012-03-19 15:18:44 -07:00
David S. Miller
90b80344c6
Add missing Versions entry for sparc's __getshmlba.
...
[BZ #6471 ]
* sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
for 2.16.
2012-03-17 15:55:27 -07:00
David S. Miller
77e927affd
Fix warnings when uintptr_t is larger than int.
...
* sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
warnings.
2012-03-16 21:02:54 -07:00
David S. Miller
374976dd13
Fix SHMLBA on sparc.
...
[BZ #6471 ]
* sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
properly.
* sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
* sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
sysdep_routines when subdir is sysvipc.
* sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
__getshmlba helper.
2012-03-16 19:28:51 -07:00
H.J. Lu
6b6cd74bab
Use greg_t and uintptr_t in x86-64 __makecontext
2012-03-16 15:20:45 -07:00
H.J. Lu
f1a77b01f4
Add x32 support to ldconfig
2012-03-16 15:20:45 -07:00
Joseph Myers
bd951ccbe8
Install bits/syscall.h through install-headers.
2012-03-14 20:09:44 +00:00
David S. Miller
10f62770e1
Use correct implementation for dl-fxstatat64 on sparc64.
...
* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2012-03-13 00:45:34 -07:00
David S. Miller
5f0bdb1894
Fix warning in Linux openat implementation when __ASSUME_ATFCTS is set.
...
* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
'err' in the ifdef scope in which it is actually used.
2012-03-13 00:43:20 -07:00
David S. Miller
98bb2f1cd2
Fix another instance of the _dl_random masking bug, plus coding style.
...
* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
masking out of the most significant byte of random value used.
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
Fix coding style in previous change.
2012-03-12 15:57:17 -07:00
David S. Miller
b4b2eb5eae
Add some missing sparc kernel-feature.h entries.
...
* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
(__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
expression.
(__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
later.
2012-03-12 15:51:15 -07:00
David S. Miller
a1bcbd4035
Fix some 64-bit sparc build warnings.
...
* sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
(__makecontext): Fix signedness of pointer casts setting up 'sp'.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
for 'resultvar' otherwise things get truncated on 64-bit.
2012-03-11 20:13:55 -07:00
David S. Miller
cb9d617437
Fix typing of the bit twiddling done in _dl_setup_stack_chk_guard.
...
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
Fix masking out of the most significant byte of random value used.
2012-03-11 19:41:43 -07:00
Joseph Myers
02a6f887cb
Split enum __socket_type from bits/socket.h to bits/socket_type.h.
2012-03-09 22:36:06 +00:00
David S. Miller
c64bf5feb3
Update copyright year after my most recent changes.
...
nptl/
* sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.
/
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
copyright year.
* sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2012-03-08 15:09:27 -08:00
David S. Miller
e92584001a
Fix several build warnings on sparc.
...
/
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(set_obp_int): New function.
(get_obp_int): New function.
(__get_clockfreq_via_dev_openprom): Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P): Avoid
unused variable warnings on 'val' and use builtin_expect.
(INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with builtin_expect.
(INLINE_CLONE_SYSCALL): Likewise.
nptl/
* sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
atomic_increment and remove unused local variable.
(__old_sem_post): Likewise.
2012-03-06 11:15:26 -08:00
H.J. Lu
8542dee325
* sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
...
Replace gettimeofday with __vdso_gettimeofday.
* sysdeps/unix/sysv/linux/x86_64/init-first.c (_libc_vdso_platform_setup):
Replace clock_gettime and getcpu with __vdso_clock_gettime and
__vdso_getcpu.
* sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
time with __vdso_time.
2012-03-05 19:45:53 +01:00
Tom de Vries
6c6a98c983
2012-03-05 Tom de Vries <tom@codesourcery.com>
...
* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
default stack guard is set in last bytes.
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2012-03-05 11:05:42 +01:00
David S. Miller
3c96908397
Kill sparc32 specific __getpagesize, unneeded.
...
* sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
2012-03-01 23:30:55 -08:00
David S. Miller
53362a4b0f
Remove sparc binutils GOTDATA checks in lieu of new minimum version requirement.
...
* sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
* sysdeps/sparc/sparc32/dl-machine.h: Likewise.
* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
* sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
* sysdeps/sparc/sparc64/dl-machine.h: Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
* sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
* config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
* sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
* sysdeps/sparc/elf/configure: Regenerated.
2012-03-01 15:04:16 -08:00
Joseph Myers
abd923dbf2
Require Linux kernel headers from "make headers_install", >= 2.6.19.1.
2012-02-27 20:52:30 +00:00
Ulrich Drepper
8da0464f6f
Fix name mangling of pthread_attr_t after change
2012-02-26 21:42:53 -05:00
Ulrich Drepper
d94a467080
Add first fixes for conformtest for POSIX2008
2012-02-26 21:32:56 -05:00
Ulrich Drepper
4a3dded527
Work around problem of pthread_attr_t definition with old compilers
2012-02-26 17:41:17 -05:00
Ulrich Drepper
4efeffc1d5
Fix up POSIX testing in conformtest
2012-02-26 13:17:27 -05:00
David S. Miller
c0e70b2543
Tweak sparc32 longjmp to not store a dummy frame pointer onto the stack.
...
* sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
using a normal save/restore sequence, rather than allocating a
dummy stack frame just to store a frame pointer and restore.
* sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
2012-02-20 20:50:14 -08:00
David S. Miller
3d2b3019e0
Use sparc GOTDATA relocations whenever possible.
...
* sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
* sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
* sysdeps/sparc/sparc32/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
* sysdeps/sparc/sparc64/elf/start.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
(SYSCALL_ERROR_HANDLER): Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
(SYSCALL_ERROR_HANDLER): Likewise.
2012-02-20 17:51:53 -08:00
Joseph Myers
599af3ca61
Split architecture-specific parts of sys/epoll.h into bits/epoll.h.
2012-02-21 00:32:30 +00:00
Joseph Myers
0e4997508d
Split architecture-specific parts of sys/timerfd.h into bits/timerfd.h.
2012-02-21 00:29:13 +00:00
Andreas Schwab
7638c0fda5
Add support for Linux error EHWPOISON
2012-02-19 18:27:02 +01:00
David S. Miller
dd54084dd9
Rework sparc PIC macros so crt{i,n}.S can use them too.
...
* sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
(SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
%o7 across the call.
(SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
instead.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
SETUP_PIC_REG_LEAF.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
* sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
* sysdeps/sparc/crtn.S: Likewise.
2012-02-18 22:31:42 -08:00
Aurelien Jarno
8dee4833c5
Include <time.h> in clock_settime.c.
2012-02-17 17:46:56 +01:00
David S. Miller
fb59b3a4f5
Add O_FSYNC define to sparc just like other platforms.
2012-02-16 14:56:54 -08:00
Mike Frysinger
df6a4a4aec
Include sys/param.h in getcwd.c.
2012-02-15 20:39:49 +00:00
Joseph Myers
8e475601f6
Split architecture-specific parts of sys/signalfd.h into bits/signalfd.h.
2012-02-15 20:11:20 +00:00
Joseph Myers
2a979d3a14
Split architecture-specific parts of sys/inotify.h into bits/inotify.h.
2012-02-14 00:13:47 +00:00
Joseph Myers
2a418ac326
Split architecture-specific parts of sys/eventfd.h into bits/eventfd.h.
2012-02-13 20:27:59 +00:00
Paul Eggert
59ba27a63a
Replace FSF snail mail address with URLs.
2012-02-09 23:18:22 +00:00
Richard Henderson
af850b1c97
Use <> for include of kernel-features.h.
2012-02-09 11:21:47 -08:00
Joseph Myers
d8e0ca509a
Use macro for PIC setup in inline asm.
2012-02-05 14:34:14 +00:00
Joseph Myers
b1da7dd99d
Use macros for x86 PIC thunk names.
2012-02-03 23:24:19 +00:00
Roland McGrath
ee3c3be688
Merge remote-tracking branch 'origin/cmetcalf/tile_epoll_pwait'
...
Conflicts:
ChangeLog
2012-01-30 09:50:40 -08:00
Roland McGrath
de9298c991
Merge remote-tracking branch 'origin/cmetcalf/tile_not_cancel_h'
...
Conflicts:
ChangeLog
2012-01-30 09:49:39 -08:00
Chris Metcalf
3601428fb0
Call __fxstatat64 from faccessat() to avoid PLT in -Os builds.
2012-01-28 12:07:46 -05:00
Chris Metcalf
463de86252
Use include/sys/epoll.h to provide libc_hidden_proto for epoll_pwait().
2012-01-28 12:00:12 -05:00
Chris Metcalf
540d7568ae
Use <> brackets for not-cancel.h in sysdeps/unix/sysv/linux/grantpt.c.
2012-01-28 11:51:44 -05:00
Joseph Myers
965a54a4ee
Remove __STDC__ conditionals from non-installed headers.
2012-01-26 23:31:37 +00:00
Will Schmidt
929d11c7cf
Powerpc: correct duplicate label issue with multiple passes through context code
2012-01-12 17:05:03 -05:00
Will Schmidt
d1f741e912
Fix typo in Linux/PPC32 getcontext
2012-01-08 21:32:57 -05:00
Ulrich Drepper
d9a216c037
Add checking versions of poll and ppoll
2012-01-08 11:55:32 -05:00
Ulrich Drepper
a0da5fe1e4
More fallout from supporting only ELF
2012-01-08 00:45:01 -05:00
Ulrich Drepper
a784e50247
Remove pre-ISO C support
...
No more __const.
2012-01-07 23:57:22 -05:00
Ulrich Drepper
00bbd29b35
Update ABI information
2012-01-07 19:23:45 -05:00
Ulrich Drepper
a2693a0e2e
Remove m68k support from Linux configure
2012-01-07 13:06:38 -05:00
Ulrich Drepper
664f8cb9d5
More IA-64 removal
2012-01-07 12:55:20 -05:00
Ulrich Drepper
7ae81d88f1
Linux configure cleanup
2012-01-07 12:44:28 -05:00
Ulrich Drepper
b13b98854e
Remove IA-64 support from kernel-features.h
2012-01-07 12:23:45 -05:00
Ulrich Drepper
f03fe7f932
More ia64 removal changes
2012-01-07 11:39:33 -05:00
Ulrich Drepper
d75a0a62b1
Remove IA-64 support
2012-01-07 11:19:05 -05:00
Ulrich Drepper
74033a2507
Implement timespec_get
2012-01-01 07:17:21 -05:00
Joseph Myers
154bfc1622
Support building bits/syscall.h for any number of subarch variants.
2011-12-22 18:22:50 +00:00
Ulrich Drepper
4920765eb4
Define EPOLLONESHOT and EPOLLET using unsigned values
2011-12-21 22:14:05 -05:00
Will Schmidt
91d2a8453f
Simplify code for accessing powerpc GOT
2011-12-17 15:07:31 -05:00
Ulrich Drepper
f101631bfd
SH atomic asms fix for gcc 4.7
2011-12-02 08:19:50 -05:00
Andreas Schwab
6257af2d05
Truncate time values in Linux futimes when falling back to utime
2011-12-01 14:24:08 +01:00
Andreas Schwab
446514f97e
Fix clock_gettime for assumed kernel >= 2.6.12
2011-11-15 15:17:15 +01:00
Ulrich Drepper
a501a01e06
Pretty printing
2011-11-15 07:18:15 -05:00
Andreas Schwab
09f93bd3d6
Fix reference counting in network interface information cache
2011-11-15 10:58:00 +01:00
Ulrich Drepper
312be3f9f5
Clean up internal fopen uses
...
No need to ever not use c and e.
2011-11-15 04:24:42 -05:00
Ulrich Drepper
7edb22eff5
Fix wanings in clock_gettime
2011-11-12 02:54:34 -05:00
Ulrich Drepper
294ce12680
Avoid warning from shifting
2011-11-12 01:31:29 -05:00
Ulrich Drepper
e35f65ea8d
unsigned long it better for the size arguments
...
The new syscalls should use unsigned long not size_t. The parameters
are not a direct measure of memory size.
2011-11-01 10:38:00 -04:00
Ulrich Drepper
78239589cd
New Linux syscalls process_vm_readv and process_vm_writev
2011-11-01 09:59:32 -04:00
Ulrich Drepper
3a2c02424d
Cache network interface information
...
Whenever getaddrinfo needed network interface information it used the
netlink interface to read the information every single time. The
problem is that this information can change at any time.
The patch implements monitoring of the network interfaces through
nscd. If no change is detected the previously read information can
be reused (which is the norm). This timestamp information is also
made available to other processes using the shared memory segment
between nscd and those processes.
2011-10-31 01:51:16 -04:00
Ulrich Drepper
636064eb4c
Fix potential double close in __check_fd if OOM
2011-10-30 14:22:57 -04:00
Ulrich Drepper
fd5bdc0924
Optimize access to isXYZ and toXYZ tables
...
The functions to get the pointers can now depend on the TLS variable
be initialized.
2011-10-15 16:27:08 -04:00
Roland McGrath
5060422095
Conditionalize unnecessary #include.
2011-10-08 15:28:21 -07:00
Ulrich Drepper
2840865d5a
Define IP_MULTICAST_ALL
2011-09-15 18:09:53 -04:00
Roland McGrath
b402e91af4
Use HIDDEN_JUMPTARGET rather than spelling out its effects, for ____longjmp_chk implementations.
2011-09-15 12:26:08 -07:00
Andreas Schwab
a7c8e6a147
Fix invalid conversion in __cmsg_nxthdr
2011-09-12 15:48:12 +02:00
Andreas Schwab
0f31fe7791
Prepend $(..) to $(ldd-rewrite-script) if non-absolute
2011-09-11 20:34:57 +02:00
Ulrich Drepper
02d46fc4b9
Simplify malloc initialization
...
Singificantly reduce the code needed at malloc initialization. In
the process getpagesize is simplified by always initializing
GLRO(dl_pagesize).
2011-09-10 21:47:36 -04:00
Ulrich Drepper
d063d16433
Remove support for !USE___THREAD
2011-09-10 16:50:28 -04:00
Ulrich Drepper
f19009c155
Use (void*) instead of 0 for return value pointer in __cmsg_nexthdr
2011-09-09 21:46:08 -04:00
Andreas Schwab
59178ef977
Revert "Fix semid_ds for x86-64"
...
This reverts commit 2f0ad8f3a4
.
2011-09-07 14:29:53 +02:00
Ulrich Drepper
e38ba7ab6a
Make sure __vdso_clock_gettime always contains a valid pointer
2011-09-07 00:07:08 -04:00
Ulrich Drepper
fc8bffcccf
Fix handling of __vdso_clock_gettime
2011-09-06 23:50:04 -04:00
Ulrich Drepper
a77d3c17dc
Don't unconditionally use clock_gettime vsyscall on x86-64
2011-09-06 21:34:11 -04:00
Ulrich Drepper
d53a73acdb
Avoid gettimeofday vsyscall
2011-09-06 20:22:37 -04:00
Andreas Schwab
a8f84144c9
Fix missing declaration
2011-09-06 11:20:51 +02:00
Ulrich Drepper
ef60624956
Prefer real syscalls instead of vsyscalls on x86-64 outside libc.so
2011-09-06 00:12:18 -04:00
David S. Miller
15c95c5d1a
Fixes and optimizations for 32-bit sparc fabs*().
2011-09-05 10:06:15 -07:00
Ulrich Drepper
3b142ce572
Merge branch 'master' of ssh://sourceware.org/git/glibc
...
Conflicts:
ChangeLog
2011-09-05 12:46:12 -04:00
Ulrich Drepper
2f0ad8f3a4
Fix semid_ds for x86-64
2011-09-05 12:44:22 -04:00
David S. Miller
3ba575169a
Fix sparc localplt testcase failures.
2011-08-31 17:30:41 -07:00
David S. Miller
25ad0df13b
Bug fixes for ____longjmp_chk on sparc.
2011-08-22 16:53:57 -07:00
Andreas Schwab
70538b7fe6
Fix missing declaration
2011-08-22 12:17:05 +02:00
Ulrich Drepper
91b392a4ba
Use ifuncs for time and gettimeofday on x86-64
2011-08-21 13:52:28 -04:00
Andreas Schwab
3b41ae4d7d
Remove the file<
2011-08-20 08:38:58 -04:00
Andreas Schwab
51ccffa074
Use correct scandir64 implementation on ppc64
2011-08-20 08:33:42 -04:00