Commit graph

3906 commits

Author SHA1 Message Date
Matt Turner 1480094d1f Update Alpha bits/sigaction.h for XPG7. 2010-01-30 00:21:08 +00:00
Matt Turner 54faff0517 Update Alpha bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h. 2010-01-30 00:19:01 +00:00
Matt Turner 1f4a25ae2b Update Alpha O_SYNC. 2010-01-30 00:17:16 +00:00
Mike Frysinger 77b22d3e99 alpha: fix typo in timer_settime include 2010-01-30 00:11:54 +00:00
Joseph Myers 54b7103af4 Fix microMIPS glibc by avoiding hardcoded instruction length assumptions.
microMIPS is a variable-length encoding of the MIPS32 instruction set
(plus some extra instructions).  As it supports almost all of MIPS32,
assembly sources in glibc do not generally need changes to work with
microMIPS, but dl-trampoline.c contains some code with a hardcoded
assumption that three instructions occupy twelve bytes.  This patch
fixes this code for microMIPS by using the difference between two
labels to let the assembler calculate the relevant length.
2010-01-29 01:54:52 +00:00
Joseph Myers fdefc0e1f1 Fix M68K bits/stat.h double inclusion problem. 2010-01-11 21:51:34 +00:00
Joseph Myers cbbf2c84d8 Fix MIPS bits/stat.h double inclusion problem. 2010-01-11 21:00:28 +00:00
Joseph Myers 31afac4713 Update MIPS bits/sigaction.h for XPG7. 2010-01-11 13:28:37 +00:00
Joseph Myers 2f12146a33 Update M68K bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h. 2010-01-10 19:02:51 +00:00
Joseph Myers 60a0880e36 Update MIPS bits/fcntl.h for XPG7 and allow bits/stat.h inclusion from fcntl.h. 2010-01-10 16:56:19 +00:00
Joseph Myers 0549913fb4 Update ARM bits/fcntl.h for XPG7. 2010-01-10 16:55:39 +00:00
Joseph Myers 5d79f83e90 Update M68K bits/poll.h for POSIX 2008. 2009-12-16 19:35:09 +00:00
Thomas Schwinge 2423dc241a Move ARM EABI mcount into a separate .S file. 2009-12-16 18:02:51 +00:00
Joseph Myers 8ef2c3b0f7 Update MIPS bits/poll.h for POSIX 2008. 2009-12-16 17:48:31 +00:00
Joseph Myers 872083bf15 Update MIPS dl-lookup.c. 2009-12-16 17:44:03 +00:00
Joseph Myers 4b8a7d2c3f Update M68K O_SYNC. 2009-12-16 12:37:07 +00:00
Joseph Myers 93a0dfdaf4 Update MIPS O_SYNC. 2009-12-15 18:11:38 +00:00
Joseph Myers 4d0f4f9f26 Update ARM O_SYNC. 2009-12-15 18:11:13 +00:00
Joseph Myers 5d5cb5a2e5 Update MIPS bits/socket.h for mmsghdr and recvmmsg. 2009-12-09 16:51:18 +00:00
Matt Turner 36a3800af8 Use struct timespec for timestamps in struct stat for Alpha also if __USE_XOPEN2K8.
Signed-off-by: Matt Turner <mattst88@gmail.com>
2009-12-06 18:26:07 +00:00
Matt Turner 015a3d0485 Fix sync_file_range parameter names
Signed-off-by: Matt Turner <mattst88@gmail.com>
2009-12-06 18:24:00 +00:00
Matt Turner 4dc21b9db1 Add new MADV_* values
Signed-off-by: Matt Turner <mattst88@gmail.com>
2009-12-06 18:22:30 +00:00
Joseph Myers 2d68f6afef Fix MIPS64 posix_fadvise and posix_fadvise64.
Similar to the problems I fixed for posix_fallocate
<http://sourceware.org/ml/libc-ports/2008-12/msg00007.html> and
fallocate <http://sourceware.org/ml/libc-ports/2009-05/msg00031.html>,
MIPS64 posix_advise also needs fixes to use the correct syscall
interfaces.  Although the existing n32 posix_fadvise64 is OK, getting
posix_fadvise from syscalls.list does not work correctly, as this
function is supposed to return an error code instead of storing it in
errno as the generic syscall implementations from syscalls.list do.
2009-12-01 01:27:19 +00:00
Joseph Myers 84f926688b Update MIPS dl-lookup.c from generic version. 2009-12-01 00:07:32 +00:00
Carlos O'Donell b80ec53691 Add correct aligment to pthread_*_t structures.
In the switch to NPTL the pthrad_mutex_t, pthread_cond_t,
and pthread_rwlock_t structures were made binary compatible
with the Linuxthread versions. However, their aligment when
embedded in other structures was changed. When rebuilding
libstdc++ this was detected, and the following changes return
the structures to their original Linuxthreads alignments.

2009-11-25  Carlos O'Donell  <carlos@codesourcery.com>

	* sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h:
	Use correct alignment for pthread_mutex_t, pthread_cond_t,
	and pthread_rwlock_t.
2009-11-25 18:18:56 -05:00
Carlos O'Donell 8fe357d5c6 Avoid warnings when including atomic.h.
Cast oldval to the same type as ret to avoid warnings when
including atomic.h.

2009-11-22  Carlos O'Donell  <carlos@codesourcery.com>

	* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Avoid warnings
	by casting oldval to int.
2009-11-25 18:17:27 -05:00
Joseph Myers b00ec94881 Use struct timespec for timestamps in struct stat for MIPS also if __USE_XOPEN2K8. 2009-11-23 19:06:52 +00:00
Andreas Schwab 127f9dc1f0 Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8 2009-11-23 16:34:39 +01:00
Joseph Myers 76d306ec98 Define F_OWNER_PGRP for M68K. 2009-11-19 22:34:08 +00:00
Joseph Myers 78698bbbf1 Define F_OWNER_PGRP for MIPS. 2009-11-19 16:46:57 +00:00
Joseph Myers bc97817ff6 Define F_OWNER_PGRP for ARM. 2009-11-19 16:46:16 +00:00
Joseph Myers 3a2e1f4e6a Assume pselect6 and ppoll on ARM for kernels 2.6.32 and later. 2009-11-19 16:36:58 +00:00
Joseph Myers 6add932d90 Change misleading names of parameters of sync_file_range for M68K. 2009-11-18 17:30:48 +00:00
Joseph Myers 983ee7f269 Change misleading names of parameters of sync_file_range for MIPS. 2009-11-18 17:11:34 +00:00
Joseph Myers 0ecde27222 Change misleading names of parameters of sync_file_range for ARM. 2009-11-18 17:11:07 +00:00
Joseph Myers 862123a316 Add new MADV_* values for M68K. 2009-11-17 23:57:34 +00:00
Joseph Myers 24bcda036c Add new MADV_* values for MIPS. 2009-11-17 20:46:35 +00:00
Joseph Myers 35141d00d4 Add new MADV_* values for ARM. 2009-11-17 20:45:50 +00:00
Joseph Myers 87d2bea064 Define ERFKILL for MIPS. 2009-11-17 20:22:36 +00:00
Carlos O'Donell b8b2e2b9d1 Move socket.h to bits/socket.h
Place socket.h in the correct location.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

	[BZ #6676]

	* sysdeps/unix/sysv/linux/hppa/socket.h: Move from here...
	* sysdeps/unix/sysv/linux/hppa/bits/socket.h: ... to here.
2009-11-15 15:53:20 -05:00
Carlos O'Donell c832a3a9b7 Update bits/fcntl.h for hppa.
Define values for F_GETOWN_EX and F_SETOWN_EX.
Define fallocate64@@GLIBC_2.11 and provide declarations
in fcntl.h with appropriate aliases.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

	* sysdeps/unix/sysv/linux/hppa/Versions (libc): Add
	fallocate64@@GLIBC_2.11.
	* sysdeps/unix/sysv/linux/hppa/bits/fcntl.h
	[__USE_GNU]: Define F_GETOWN_EX, and F_SETOWN_EX.
	[!__USE_FILE_OFFSET64]: Define fallocate.
	[__USE_FILE_OFFSET64 && __REDIRECT]: Define __REDIRECT.
	[__USE_FILE_OFFSET64 && !__REDIRECT]: Define fallocate as
	fallocate64.
	[__USE_LARGEFILE64]: define fallocate64.
2009-11-15 15:46:46 -05:00
Carlos O'Donell 057c783bca Implement ELF_MACHINE_LOAD_ADDRESS using PC relative loads.
The current ELF_MACHINE_LOAD_ADDRESS used by the generic
function pointer code was not safe for use before relocation.
The macro has been rewritten to use only PC relative loads.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

	* sysdeps/hppa/dl-fptr.h: Update copyright year.
	Reduce ELF_MACHINE_BOOT_FPTR_TABLE_LEN to 64.
	Implement ELF_MACHINE_LOAD_ADDRESS using PC relative loads.
2009-11-15 15:11:48 -05:00
Carlos O'Donell a2ed3d2a8e Remove constants which are now defined in generic file.
Several constants are now defined in a generic file and no longer
need to be defined in the hppa specific file.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

	* sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h:
	Remove FUTEX_WAITERS, FUTEX_OWNER_DIED, and FUTEX_TID_MASK.
2009-11-15 14:36:46 -05:00
Carlos O'Donell 926d329540 Fix socket constants.
[BZ #10527] Provide corrected socket constants that match the
kernel values.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>
	    Aurelian Jarno  <aurelien@aurel32.net>

	[BZ #10527]

	* sysdeps/unix/sysv/linux/hppa/socket.h: New file.
2009-11-15 14:33:51 -05:00
Carlos O'Donell d086703d6c Enable the use of -fPIE on hppa
[BZ #6676] Use PIC relocations in start.S to support the use of -fPIE
on hppa.

2009-11-15  Carlos O'Donell  <carlos@codesourcery.com>

	[BZ #6676]

	* sysdeps/hppa/elf/start.S: Use R_PARISC_DLTIND* relocations
	to support -fPIE.
2009-11-15 14:30:29 -05:00
Carlos O'Donell 8ef75725ce Use LIBGCC_S_SO to override generic version.
[BZ #10920] Use the new generic override to specify the hppa
specific libgcc_s.so.4 version number. Remove the files which
hppa no longer has to duplicate in order to accomplish
overriding libgcc_s.so version number.

2009-11-08  Carlos O'Donell  <carlos@codesourcery.com>

	[BZ #10920]

	* sysdeps/hppa/libgcc_s.h: New file.
	* sysdeps/unix/sysv/linux/hppa/nptl/unwind-forcedunwind.c: Remove.
	* sysdeps/unix/sysv/linux/hppa/nptl/unwind-resume.c: Remove.
2009-11-15 14:19:25 -05:00
Andreas Schwab a8e59aa896 Add libgcc_s.h for m68k 2009-11-15 00:28:00 +01:00
Andreas Schwab 722367f5d9 Define F_[GS]ETOWN_EX, F_OWNER_[TPG]ID, f_owner_ex for m68k 2009-11-15 00:27:02 +01:00
Joseph Myers 37a907cc86 Fix F_SETOWN_EX and F_GETOWN_EX definitions for MIPS. 2009-11-14 22:40:19 +00:00
Joseph Myers 06bda6deb5 Fix F_SETOWN_EX and F_GETOWN_EX definitions for ARM. 2009-11-14 22:39:23 +00:00