Commit Graph

2561 Commits

Author SHA1 Message Date
Joseph Myers 2242368302 Fix GPL and GCC references in last paragraphs of license notices. 2011-03-21 15:40:37 +00:00
Aurelien Jarno 79abd1fbfc alpha: Add f_flags to struct statfs 2011-03-01 10:02:04 +10:00
Aurelien Jarno 146c8734c7 alpha: Define F_GET/SETPIPE_SZ 2011-03-01 09:59:13 +10:00
Joseph Myers 91a59c6a5d Define MADV_HUGEPAGE and MADV_NOHUGEPAGE for MIPS. 2011-01-25 20:58:24 +00:00
Joseph Myers 2ca1e67193 Define MADV_HUGEPAGE and MADV_NOHUGEPAGE for ARM. 2011-01-25 20:57:58 +00:00
Joseph Myers eb76b06f88 Define new socket constants for MIPS. 2011-01-25 20:49:51 +00:00
Andreas Schwab bd44238d1a m68k: define MADV_HUGEPAGE and MADV_NOHUGEPAGE 2011-01-18 12:20:06 +01:00
Andreas Schwab fb88ab40ac m68k: fix namespace pollution 2011-01-18 12:18:31 +01:00
Luis Machado a72cc2b29d Enable optimized string routines for several PowerPC 4XX family processors.
This patch provides optimized string routines for the 4XX family of PowerPC
and Power Architecture processors.  For the 476 processor, it can be
configured for either hard-fp with -mcpu=476 --with-fp, or for soft-fp with
-mcpu=476 (since the default is soft-fp).
2011-01-12 12:59:09 -06:00
Andreas Schwab 9524dbd1f3 m68k: force alignment of sem_t 2011-01-10 21:17:12 +01:00
Matt Turner 5811feed3d Delete getpagesize.c for MIPS. 2010-12-06 16:29:02 +00:00
Joseph Myers 604e89e473 Increase minimum MIPS kernel to 2.4.1. 2010-12-06 16:25:46 +00:00
Ken Werner 2c2019389e Use __sync_* on ARM where supported by the compiler. 2010-11-24 23:23:48 +00:00
Andreas Schwab 3ef58249ea m68k: use i386 fchownat 2010-11-05 21:39:30 +01:00
Joseph Myers 94a2483c91 Add MIPS fanotify_mark. 2010-10-21 22:37:53 +00:00
Joseph Myers dc54bc1eaa Add fanotify_mark for ARM. 2010-09-30 18:17:22 +00:00
Richard Henderson 539af0feee Merge branch 'rth/testing' 2010-09-23 08:05:17 -07:00
Andreas Schwab cf64098fc4 m68k: fix SYSCALL_ERROR_LOAD_GOT for Coldfire 2010-08-25 22:55:55 +02:00
Andreas Schwab 9ed28e47dc m68k: remove fanotify_init from syscalls list 2010-08-17 01:13:57 +02:00
Andreas Schwab 9751fb5289 m68k: Add prlimit64, fanotify_init, fanotify_mask syscalls 2010-08-14 13:23:43 +02:00
Joseph Myers 54c0ba292c Correct #undef location in previous commit. 2010-08-13 23:43:22 +00:00
Joseph Myers 5ccc178fd7 Undefine __ASSUME_GETDENTS64_SYSCALL for n32 before 2.6.35. 2010-08-13 23:37:54 +00:00
Chandrakala Chavva 5237c94b63 Fix MIPS PSEUDO define for n32 and n64 non-PIC. 2010-08-13 23:25:10 +00:00
Alexander Kanevskiy fd5fe45924 ARM: Align hwcap names and definitions with kernel, mark VFP and NEON as HWCAP_IMPORTANT.
- Align hwcap names with kernel (arch/arm/kernel/setup.c)
- Align HWCAP_ARM_* definitions with kernel
- Make VFP and NEON as HWCAP_IMPORTANT, this can help in scenarios
where VFP/NEON HW optimizations can be utilized.
2010-08-13 19:43:35 +00:00
Joseph Myers 32b9acf3d9 Define EXTPROC for MIPS. 2010-08-13 16:50:07 +00:00
Joseph Myers 0955180613 Add f_flags to struct statfs for MIPS. 2010-08-12 22:18:00 +00:00
Joseph Myers 9672c67a8c Add IN_EXCL_UNLINK for MIPS. 2010-08-12 22:01:30 +00:00
Joseph Myers c16fd24675 Add prlimit64 for MIPS. 2010-08-12 15:40:29 +00:00
Joseph Myers 3c11c98eaf Add prlimit64 for ARM. 2010-08-12 15:38:57 +00:00
Andreas Schwab 690d264a40 m68k: fix loading of GOT for Coldfire 2010-08-02 18:48:56 +02:00
Andreas Schwab 2aed4f91fd m68k: cleanup sysdep files
Use sysdep files in subdirectories instead of testing cpu macros.
2010-08-02 18:47:27 +02:00
Joseph Myers 71feaf7206 Define F_SETPIPE_SZ and F_GETPIPE_SZ for M68K. 2010-06-24 16:18:51 +00:00
Carlos O'Donell 3680f14a7d [hppa] Fix incorrect stack frame usage in vfork.
In a multithreaded environment the call to vfork was
incorrectly creating a stack frame. Given that the
child unwinds the stack frame first to call exec, it
will corrupt any values the parent stored in the stack
frame. The solution is to avoid creating a stack frame
unless required to call an error function, in which case
we are assured no child was created.
2010-06-24 12:13:36 -04:00
Carlos O'Donell 131fafa7da [hppa] Fix *context stack usage for varargs
The getcontext, and setcontext functions should
not adjust the stack, and should load the stack
pointer from the machine context. Calling makecontext
should create a frame for spilled incoming arguments,
and sync uc_stack.ss_sp to the machine context.
We do not support calling getcontext, modifying ss_sp,
and calling setcontext directly.
2010-06-23 17:03:11 -04:00
Joseph Myers fdb3ec206e Define F_SETPIPE_SZ and F_GETPIPE_SZ for MIPS. 2010-06-14 22:09:52 +00:00
Joseph Myers ce47c03640 Define F_SETPIPE_SZ and F_GETPIPE_SZ for ARM. 2010-06-14 22:09:08 +00:00
Andreas Schwab 08b1b36387 m68k: Add required definitions to sys/user.h 2010-06-13 21:09:38 +02:00
Andreas Schwab 0df5659285 m68k: force alignment of futex variables 2010-06-11 21:59:21 +02:00
Andreas Schwab c14e796ff6 hppa: Update nptl/pthread.h to match generic file 2010-06-07 14:46:19 +02:00
Joseph Myers d0160bcc19 Fix internal_recvmmsg build attributes for ARM EABI. 2010-05-21 23:18:13 +00:00
Joseph Myers 6531684d50 Fix recvmmsg for MIPS. 2010-05-21 23:16:17 +00:00
Richard Henderson 7ffd2bd725 alpha: Do the 32/64-bit split on statfs routines. 2010-05-05 08:12:11 -07:00
GOTO Masanori 6a84c77c71 alpha: fix *xstat.c build failure for Linux headers < 2.6.4
Fixes glibc bug 1026.
http://sourceware.org/ml/libc-alpha/2005-02/msg00122.html

Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-05-04 09:00:25 -07:00
Joseph Myers b1ab8c5fd9 Update MIPS libc-abis configuration for libc changes. 2010-04-14 19:28:10 +00:00
Daniel Jacobowitz 2dcd7ed8fd Fix unwinding through Thumb-2 system calls. 2010-04-08 12:43:55 -04:00
Joseph Myers 1dbb4edc73 Fix abiversion handling for MIPS. 2010-04-06 20:26:22 +00:00
Carlos O'Donell 3af825d53b hppa: Define MSG_WAITFORONE.
Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
2010-03-31 13:52:39 -04:00
Joseph Myers 848fa4a9c0 Update ARM for ABIVERSION changes. 2010-03-30 16:26:07 +00:00
Richard Henderson 8eb49e8ae8 alpha: Define MSG_WAITFORONE.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-30 07:50:27 -07:00
Matt Turner 742c00d3d9 alpha: update kernel-features.h for syscalls added in 2.6.33.
Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-03-30 07:35:30 -07:00
Matt Turner b14e8cb285 alpha: create kernel-features.h.
Signed-off-by: Matt Turner <mattst88@gmail.com>
2010-03-30 07:34:57 -07:00
Joseph Myers e9823ee1b8 Define MSG_WAITFORONE for MIPS. 2010-03-30 13:16:44 +00:00
Richard Henderson 05479f36bb alpha: Implement ____longjmp_chk.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:53 -07:00
Richard Henderson c87187fbb5 alpha: Fix errlist-compat for GLIBC_2.12.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:53 -07:00
Richard Henderson 45e3c40653 alpha: Only define __libc_alpha_cache_shape in dl-sysdep.c.
The static program builds in libc were getting multiple
definition errors between dl-sysdep and dl-support.

Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:53 -07:00
Richard Henderson 6546e0c499 alpha: Don't include asm/page.h in sys/user.h.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:53 -07:00
Richard Henderson c735022ded alpha: Update bits/fcntl.h for XPG7 and define f_owner_ex et al.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:52 -07:00
Richard Henderson ee390edfa9 alpha: Define PTR_MANGLE for !PIC too.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:52 -07:00
Richard Henderson cce01cf0a1 alpha: Avoid unused variable warnings with INTERNAL_SYSCALL_ERR*.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:52 -07:00
Richard Henderson c7b880234d alpha: Add sysdep/unix/sysv/linux/alpha/creat.c.
Signed-off-by: Richard Henderson <rth@twiddle.net>
2010-03-26 13:17:52 -07:00
Thomas Schwinge 01b32e7361 Add CFI statements to ARM's assembly code. 2010-03-26 18:12:56 +00:00
Joseph Myers b6c131119c Really commit intended version of Alpha bits/socket.h. 2010-03-23 15:25:31 +00:00
Matt Turner 0b37400ae4 Create bits/socket.h for alpha, correct SOCK_CLOEXEC and SOCK_NONBLOCK values. 2010-03-23 15:19:04 +00:00
Andreas Schwab dbd0094b3f m68k: TLS reference to errno in syscall stubs 2010-03-13 01:00:03 +01:00
Andreas Schwab 7d6cb729ed m68k: don't include <sysdep.h> in lowlevellock.h 2010-03-12 22:15:23 +01:00
Andreas Schwab 7e261ba3d8 Add m68k-helpers optimized for m680x0 2010-03-12 21:40:09 +01:00
Andreas Schwab 2b3dafb087 Whitespace cleanup 2010-03-12 19:55:40 +01:00
Maxim Kuvyrkov 40111cb9e1 NPTL support for m68k/ColdFire 2010-03-12 19:52:07 +01:00
Maxim Kuvyrkov 75e73e66e4 m68k: update ColdFire sigcontext ABI 2010-03-12 19:52:07 +01:00
Maxim Kuvyrkov d8e90a15fe m68k: remove bits/siginfo.h in favor of generic one 2010-03-12 19:51:56 +01:00
Matt Turner f3ed03373a Fix SOCK_CLOEXEC on HPPA to match O_CLOEXEC.
The kernel defines SOCK_CLOEXEC as
include/linux/net.h:#define SOCK_CLOEXEC        O_CLOEXEC
arch/parisc/include/asm/fcntl.h:#define O_CLOEXEC   010000000

But glibc was defining
sysdeps/unix/sysv/linux/hppa/bits/socket.h:  SOCK_CLOEXEC = 01000000,

Signed-off-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Kyle McMartin <kyle@redhat.com>
Signed-off-by: Carlos O'Donell <carlos@codesourcery.com>
2010-02-17 09:52:26 -05:00
Carlos O'Donell 317d0e66a0 Define MADV_MERGEABLE and MADV_UNMERGEABLE.
Add MADV_MERGEABLE and MADV_UNMERGEABLE to bits/mman.h,
matching HPPA values used in Linux kernel 2.6.32.
2010-02-17 09:27:42 -05:00
Carlos O'Donell 40215fde03 Add unlimited argument support to makecontext()
The initial implementation of makecontext()
supported only 8 arguments. This change adds
support for unlimited argument processing given
a large enough stack.
2010-02-17 09:27:40 -05:00
Carlos O'Donell fa1b9bae63 Fix SOCK_CLOEXEC for accept4
Adjust the value of SOCK_CLOEXEC to match the kernel
value used for accept4. This has never worked in the
past, and all old applications are broken, therefore
we change this value to match the kernel value.
2010-02-01 17:55:00 -05:00
Carlos O'Donell cbbda7adb2 Adjust errlist-compat to 257 for GLIBC_2.12
Added definitions for EOWNERDEAD, ENOTRECOVERABLE
and ERFKILL.
2010-02-01 17:54:59 -05:00
Carlos O'Donell b8eca7ff8c Update constants and rearrange file.
Update F_SETOWN_EX and F_GETOWN_EX. Rearrange
the file to match other targets, reducing future
diffs against other targets and making maintenance
easier.
2010-02-01 17:54:58 -05:00
Matt Turner aa576322e0 Fix Alpha bits/stat.h double inclusion problem. 2010-01-30 00:22:01 +00:00
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 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
Joseph Myers 8ef2c3b0f7 Update MIPS bits/poll.h for POSIX 2008. 2009-12-16 17:48:31 +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
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