Commit Graph

1859 Commits

Author SHA1 Message Date
Richard Henderson 1d3b830192 alpha: Add __SYSCALL_SLONG_TYPE, __SYSCALL_ULONG_TYPE, __FSWORD_T_TYPE 2012-05-18 11:35:03 -07:00
Chris Metcalf 30aa747c68 tile: add proper versioning for fegetenv() 2012-05-17 15:18:45 -04:00
Chris Metcalf 0adc5f3892 tilegx32: fix various bugs in setcontext/getcontext/swapcontext 2012-05-17 09:03:24 -04:00
Joseph Myers 7fbf19e1fd Add powerpc-nofpu ABI baselines. 2012-05-16 21:19:06 +00:00
Chris Metcalf 981416291c linux-generic: add header guard for <not-cancel.h>
In general we just try to include <not-cancel.h> once, thus avoiding
any issues with multiple inclusion.

However, the getaddrinfo sources are somewhat tangled, and .c files
include each other to get the final result.  Each .c file currently has
its own include of <not-cancel.h>.  While you could properly re-factor
this for the case of gai.c, the posix/tst-rfc3484.c tests directly include
one of the sub-files (sysdeps/posix/getaddrinfo.c), and it starts to
feel fragile.
2012-05-16 09:34:38 -04:00
Chris Metcalf a110b27ee2 linux-generic: fix typesizes.h to match recent core changes
Remove __SNSECONDS_T_TYPE; add __SYSCALL_{S,U}LONG_TYPE.
2012-05-16 09:28:31 -04:00
Joseph Myers dbeb70630b Declare MIPS stat nanoseconds fields similarly to other architectures. 2012-05-16 10:53:31 +00:00
Joseph Myers 8ae9fa0ec7 Assume accept4 on ARM for kernels 2.6.36 and later. 2012-05-16 10:38:40 +00:00
Mike Frysinger c757085ec8 ia64: use __aligned__ inside of attributes
Installed headers should always use the forms of attributes with __
prefixes and suffixes, so __attribute__ ((__aligned__ (8))) instead of
the plain "aligned" form, to avoid taking identifiers from the user's
namespace.

URL: http://sourceware.org/bugzilla/show_bug.cgi?id=14109
Reported-by: Joseph Myers <joseph@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-14 21:25:17 -04:00
Chris Metcalf 3486bf3633 Merge branch 'master' of git://sourceware.org/git/glibc-ports 2012-05-14 16:13:02 -04:00
Chris Metcalf d45ba2bc26 linux-generic: use "__aligned__", not "aligned", in public headers 2012-05-14 16:01:44 -04:00
Chris Metcalf b55e1c1e81 tile: add abilist files 2012-05-14 15:46:14 -04:00
Chris Metcalf 8927be2b21 tile: add include <features.h> to <sys/dataplane.h>
We were using __BEGIN_DECLS without <features.h> and it just happened
to mostly work, but of course we should include it here.
2012-05-14 15:46:13 -04:00
Chris Metcalf 024bb7b4a2 tile: fix bug in CFI definitions for clone.S
We were missing a critical cfi_def_cfa_offset call in .Lthread_start
which caused backtracing to get badly confused for threads.
2012-05-14 15:46:13 -04:00
Chris Metcalf 3c19868059 linux-generic: add wordsize-32 version of prlimit64/fanotify syscalls 2012-05-14 15:46:11 -04:00
Chris Metcalf 87df4a4b09 tile: update pthread_attr_t and struct siginfo names
This adds a tag to the pthread_attr_t underlying type so we can
forward-declare it, and removes the siginfo_t type, to match
changes in the main tree.
2012-05-14 15:46:08 -04:00
Chris Metcalf 538c451b2b tile: Remove elf/ and create crti.S/crtn.S
This patches fixes up the tile startup files, moving elf/start.S up a
directory level and implementing the required crti.S and crtn.S files
based on the old initfini.c compiler output (hand-optimized to bum a
couple of cycles).
2012-05-14 15:34:04 -04:00
Andreas Schwab 5b86315c81 m68k: remove duplicate __ASSUME_VFORK_SYSCALL 2012-05-14 17:31:45 +02:00
Andreas Schwab 3f753e3ad5 m68k: use default minimum kernel version for m680x0 2012-05-14 17:31:44 +02:00
Joseph Myers a7375c94a8 Remove pre-2.2 kernel support for MIPS. 2012-05-14 14:17:16 +00:00
Joseph Myers c5754569dd Remove pre-2.2 Linux kernel support for ARM. 2012-05-14 14:16:40 +00:00
Chris Metcalf ec0001e175 Add _SNSECONDS_T_TYPE for linux-generic 2012-05-11 19:55:20 -04:00
Mike Frysinger f5cf58f794 ia64: include errno.h in sysdep.h
This header uses __set_errno(), so make sure we include errno.h for it.
Otherwise, if INLINE_SYSCALL() is used and errno.h isn't included, we
hit warnings like so:
In file included from libc-start.c:36:0:
../sysdeps/unix/sysv/linux/dl-osinfo.h: In function '_dl_setup_stack_chk_guard':
../sysdeps/unix/sysv/linux/dl-osinfo.h:79:7: warning: implicit declaration of function '__set_errno'

Which culminate in errors like so:
libc-start.c:(.text+0x692): undefined reference to '__set_errno'
libc-start.c:(.text+0x752): undefined reference to '__set_errno'
collect2: ld returned 1 exit status

Reported-by: Dennis Schridde <devurandom@gmx.net>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-07 23:22:59 -04:00
Mike Frysinger e44af88e6a ia64: update abilist
For the most part, these are adding symbols from newer glibc releases that
should have been added to ia64 in the first place, but no one noticed.

There were also adding symbols from older versions, but that appears to be
an oversight in the old abilist files where the ia64 tuple wasn't added to
the symbol block.

A few symbols did get deleted, but that looks normal as no other arch has
them, and comparing to an old glibc-2.7 build, things have been this way
for quite a while.

After this, `make check-abi` now passes for ia6.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-06 14:13:37 -04:00
Mike Frysinger 064b706950 ia64: restore abilist files
These are the abilists as ia64 had them before being removed from the
main tree.  Most libs pass, but a bunch need updating.  That'll be done
in a follow up commit.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-05-06 04:49:52 -04:00
Joseph Myers 360f4e6880 Restore MIPS n64 posix_fadvise64 export at GLIBC_2.3.3 (bug 14044). 2012-05-01 08:48:54 -07:00
Joseph Myers d353499456 Restore ARM profil_counter export (bug 14043). 2012-05-01 07:22:52 -07:00
Andreas Schwab cae2bdf1f3 m68k: add abilist files 2012-04-28 15:10:21 +02:00
Joseph Myers 8689e8776e Add abilist data for MIPS. 2012-04-28 04:29:32 -07:00
Joseph Myers 7a886e6fb1 Add abilist data for ARM. 2012-04-28 03:04:28 -07:00
Mike Frysinger 4625d0ae8d ia64: define __ASSUME_ACCEPT4
The latest kernels finally added accept4() to the ia64 kernel.
Define __ASSUME_ACCEPT4 accordingly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:13:25 -04:00
Mike Frysinger 91e5f2e441 ia64: ucontext.h: drop __cplusplus
Building a lot of glibc files trigger warnings like so:
.../ucontext.h:52:25: warning: variably modified '_pad' at file scope

The ia64 header protects the use of __builtin_offsetof by a C++
compiler, but this builtin works just fine with C compilers, so
allow it to be used there too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:10:28 -04:00
Mike Frysinger e43013840b ia64: pthread_attr_t type mangling
This applies the same updates that already exist in the main tree for
making the pthread_attr_t union more standards compliant.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:10:09 -04:00
Mike Frysinger 7e4fc5890e ia64: add MAP_{STACK,HUGETLB} to bits/mman.h
Just adding new bit flags that newer kernels define.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:09:53 -04:00
Mike Frysinger 16aca1f771 ia64: drop __STDC__ handlings
The main tree dropped support for !__STDC__ code, so drop it from the
few places in the ia64 code too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:09:13 -04:00
Mike Frysinger 293432b4af ia64: convert __const to const
The main tree decided to drop support for pre-ISO C code, so we
can use "const" instead of "__const".

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
	's:\<__const\>:const:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:08:17 -04:00
Mike Frysinger 6eeb0e8f7f ia64: convert <stdio-common/_itoa.h> to <_itoa.h>
The main tree relocated the _itoa.h header, so update our include
paths to match.

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
	'/<stdio-common._itoa.h>/s:<stdio-common/_itoa.h>:<_itoa.h>:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:07:38 -04:00
Mike Frysinger d928ab870e ia64: initfini.c -> crt{i,n}.S split
This was done mostly by looking at the processed crt{i,n}.S files in
glibc-2.15, and then added the required update for using in either
csu/ or nptl/.

Seems to work -- when an earlier version didn't call the initializers,
many tests (pthread related) failed.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:07:20 -04:00
Mike Frysinger 15be91c2a0 ia64: add split-out settings into dedicated files
Logic specific to ia64 used to live in the main tree in common files.
Now that we can't do that (with #ifdef and such), we need to add that
logic into dedicated overriding files.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:06:32 -04:00
Mike Frysinger 5f870869a6 ia64: update include paths
We need to update the file paths after the ia64 code was moved from
the main tree to ports/.  In the case of backtrace.c, the main tree
actually copied the ia64 version to the x86_64 code, so we can go
ahead and drop the ia64 version.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-27 23:06:07 -04:00
Joseph Myers 4053d054cd Increase minimum MIPS kernel version to 2.6.12. 2012-04-27 20:52:33 +00:00
Matt Turner 99449c154f alpha: Use fopen "rce" in ioperm 2012-04-27 07:34:53 -07:00
Matt Turner cdf73ff5b6 alpha: Update bits/mman.h. 2012-04-27 07:33:47 -07:00
Matt Turner 4ca39b2a40 alpha: Remove __STDC__ conditionals. 2012-04-27 07:33:47 -07:00
Matt Turner 24d6e175c2 alpha: Use const instead of __const. 2012-04-27 07:33:47 -07:00
Matt Turner b44167c02a alpha: Define O_PATH. 2012-04-27 07:33:47 -07:00
Joseph Myers 8dc2363998 Use siginfo_t instead of struct siginfo for MIPS kernel_rt_sigframe. 2012-04-26 19:20:45 +00:00
Mike Frysinger 928501fb7b ia64: fix license text to "Lesser" not "Library"
Looks like these two files got the wrong boiler plate text.
Convert them over to the right one.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-25 23:40:54 -04:00
Mike Frysinger 9f2b22d5fc mips: use $dir for path to ldd-rewrite.sed
The $dest variable is based on the top build dir but we need the ldd
rewrite variable to be based on the top source dir, so use $dir.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-24 00:05:32 -04:00
Mike Frysinger 75efb01851 ia64: update FSF license address to URL
Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
	-e '/Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA/d' \
	-e 's:License along with the GNU C Library; if not, write to the Free:License along with the GNU C Library; if not, see:' \
	-e 's|02111-1307 USA.|<http://www.gnu.org/licenses/>.|' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-22 23:26:51 -04:00
Mike Frysinger 0347518d63 ia64: strip trailing whitespace
Many ia64 files have trailing whitespace which gets in the way and
annoys me.  So strip it away:

	find `find sysdeps/ -name ia64` -type f -exec sed -i 's:[[:space:]]*$::' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-22 15:11:02 -04:00
Mike Frysinger d5efd131d4 ia64: move from main tree
This is a simple copy of the last version of ia64 in the main tree.
It does not work as-is, but serves as a basis for follow up changes
to restore it to working order.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-22 15:09:03 -04:00
Joseph Myers 8466459037 Remove ARM EABI/old-ABI conditionals. 2012-04-21 10:03:39 -07:00
Joseph Myers 1f60a18d81 Merge sysdeps/arm/eabi into sysdeps/arm. 2012-04-21 09:30:03 -07:00
Joseph Myers 25593dcaf4 Merge sysdeps/unix/sysv/linux/arm/eabi into sysdeps/unix/sysv/linux/arm. 2012-04-21 08:38:55 -07:00
Andreas Jaeger c325f0f226 Avoid warnings about redefinition
* sysdeps/unix/sysv/linux/arm/ldsodefs.h: Undefine
        MORE_ELF_HEADER_DATA to avoid warnings about redefinition.
2012-04-17 07:59:37 +02:00
Mike Frysinger cde9262435 tile: update _itoa.h include path
Common code moved _itoa.h necessitating a change in the #include path.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-15 12:09:17 -04:00
Andreas Schwab 29dc68465c m68k: define MAP_STACK and MAP_HUGETLB 2012-03-29 00:22:33 +02:00
Joseph Myers aa06d8e46a MIPS: Define MAP_STACK and MAP_HUGETLB. 2012-03-28 12:37:21 +00:00
Joseph Myers 268413928e ARM: Define MAP_STACK and MAP_HUGETLB. 2012-03-28 12:36:51 +00:00
Carlos O'Donell 2b6c81984b Update copyright year to 2012. 2012-03-22 00:12:30 -04:00
Carlos O'Donell 0e8a8f6d58 [PARISC] small atomic.h optimization
We do not negate the light-weight syscall return and instead
just check for the negative errno value allowing the compiler
to optimize as required.
2012-03-22 00:05:14 -04:00
Andreas Schwab 57988d0ba7 m68k: update _itoa.h include 2012-03-21 00:38:10 +01:00
Joseph Myers 1422b9df29 MIPS: Update _itoa.h include. 2012-03-20 23:14:19 +00:00
Joseph Myers bf98494a8a ARM: Update _itoa.h include. 2012-03-20 23:13:50 +00:00
Andreas Schwab dbf5dff174 m68k: update kernel-features.h 2012-03-13 14:31:45 +01:00
Richard Henderson 2be0ac4d53 alpha: replace bits/socket.h with bits/socket_type.h. 2012-03-11 11:15:09 -07:00
Paul Eggert ab84e3ff9c Replace FSF snail mail address by URL. 2012-03-09 23:56:38 +00:00
Joseph Myers 23b8c9ac74 MIPS: replace bits/socket.h with bits/socket_type.h. 2012-03-09 22:43:01 +00:00
Michael Hope 402a76b62d ARM: Implement *context routines.
* sysdeps/unix/sysv/linux/arm/eabi/getcontext.S: New file.
	* sysdeps/unix/sysv/linux/arm/eabi/makecontext.c: New file.
	* sysdeps/unix/sysv/linux/arm/eabi/setcontext.S: New file.
	* sysdeps/unix/sysv/linux/arm/eabi/swapcontext.S: New file.
	* sysdeps/unix/sysv/linux/arm/ucontext_i.sym: New file.
	* sysdeps/unix/sysv/linux/arm/Makefile (gen-as-const-headers): Add
	ucontext_i.sym.
2012-03-05 18:00:14 -05:00
Carlos O'Donell a64b8a466b HPPA: Update socket.h, pthreadtypes.h and pthread.h
Synchronize from core libc headers.
2012-03-05 10:37:28 -05:00
Richard Henderson ee78ea885a alpha: Avoid -Winline warning in ioperm.c.
Specifically:
warning: inlining failed in call to 'inline_sethae.part.1':
call is unlikely and code size would grow [-Winline]
2012-03-04 12:03:59 -08:00
Richard Henderson dff6d47156 alpha: Update recvmmsg and sendmmsg declarations. 2012-03-04 12:02:55 -08:00
Richard Henderson 5414279644 alpha: Update for pthread_attr_t typedef changes. 2012-03-04 11:30:01 -08:00
Andreas Schwab 175763ab68 m68k: only define pthread_attr_t if not already defined 2012-02-27 21:17:06 +01:00
Joseph Myers bf8becc54b MIPS: do not declare recvmmsg and sendmmsg for !__USE_GNU. 2012-02-27 15:54:30 +00:00
Joseph Myers 7bb9ccad9c MIPS: fix pthread_attr_t definitions. 2012-02-27 15:14:41 +00:00
Joseph Myers e7c0dc24ea ARM: fix pthread_attr_t definitions. 2012-02-27 15:14:04 +00:00
Andreas Schwab d735f8d4f0 m68k: fix name of pthread_attr_t union 2012-02-27 14:57:16 +01:00
Andreas Schwab 2abba740a9 m68k: name pthread_attr_t union 2012-02-26 20:40:48 +01:00
Joseph Myers 397c66b465 MIPS: Name pthread_attr_t union, use it in sigevent, don't name siginfo_t struct. 2012-02-26 19:39:23 +00:00
Joseph Myers 7ba6eb7c8a ARM: name pthread_attr_t union. 2012-02-26 19:39:00 +00:00
Joseph Myers 429ee403b8 Remove CRIS port. 2012-02-21 17:32:26 +00:00
Richard Henderson 7ae95db5d7 alpha: Convert to bits/timerfd.h and bits/epoll.h. 2012-02-21 08:48:08 -08:00
Joseph Myers 8864c99fe4 Replace MIPS sys/epoll.h and sys/timerfd.h with bits/epoll.h and bits/timerfd.h. 2012-02-21 00:40:35 +00:00
Andreas Schwab f157a61945 alpha: Add support for Linux error EHWPOISON 2012-02-20 18:16:05 +01:00
Andreas Schwab d6353c0f81 mips: Add support for Linux error EHWPOISON 2012-02-20 18:07:59 +01:00
Aurelien Jarno 3287d4162f alpha: Fix _SC_LEVEL*CACHE* 2012-02-20 08:38:54 -08:00
Mike Hommey f3ce45f370 alpha: Support 6th argument to syscall 2012-02-15 16:27:55 -08:00
Richard Henderson 596720af7a alpha: Convert to bits/signalfd.h. 2012-02-15 16:24:45 -08:00
Richard Henderson f0a81bf387 alpha: Do signed promotion of 32-bit arguments to syscalls 2012-02-15 16:07:11 -08:00
Robert Millan a31567f46f Define SYSCALL_ERROR_LABEL for mips32. 2012-02-15 22:39:15 +00:00
Robert Millan d2cc32ab71 Provide sys/tas.h for all MIPS systems. 2012-02-15 22:35:18 +00:00
Robert Millan d05f2edbc2 Use __start for all Unices on MIPS. 2012-02-15 22:29:31 +00:00
Khem Raj 3fdf1316ac Only build libc-do-syscall.S in Thumb mode. 2012-02-15 22:09:44 +00:00
Joseph Myers 7504de5a6a Replace MIPS sys/signalfd.h with bits/signalfd.h. 2012-02-15 20:21:50 +00:00
Richard Henderson 4c85d632e4 BZ #13361
alpha: More Linux additions copied from generic/bits/fcntl.h.
2012-02-15 12:19:47 -08:00
Richard Henderson b991ef778a alpha: Don't let preconfigure interfere with other targets. 2012-02-15 08:02:19 -08:00
Richard Henderson 1b006be5c5 Replace Alpha sys/inotify.h with bits/inotify.h 2012-02-13 17:03:46 -08:00
Joseph Myers c5430dd069 Replace MIPS sys/inotify.h with bits/inotify.h. 2012-02-14 00:17:32 +00:00