summaryrefslogtreecommitdiff
path: root/ports/sysdeps/unix
AgeCommit message (Collapse)AuthorFilesLines
2013-07-19tile: add missing semicolon in <bits/ptrace.h>Chris Metcalf1-1/+1
Change 521c6785e1fc94d added the enum but missed the semicolon. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2013-07-09[AArch64] Use _dl_static_init to set GLR0(dl_pagesize)Marcus Shawcroft4-0/+128
2013-07-07tile: use _dl_static_init to set GLRO(gl_pagesize)Chris Metcalf4-0/+128
A recently-added test (dlfcn/tststatic5) pointed out that tile was not properly initializing the variable pagesize in certain cases. This change just copies the existing code from MIPS.
2013-07-04Sync sys/ptrace with Linux 3.10Andreas Jaeger3-3/+76
2013-06-28Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.Ryan S. Arnold1-1/+5
2013-06-28[AArch64] Simplify getcontext pstate initialization.Marcus Shawcroft1-2/+1
2013-06-27_dl_static_init: Remove nested locking.Maciej W. Rozycki2-14/+0
This function is now called from dl_open_worker with the GL(dl_load_lock) lock held and no longer needs local protection. GL(dl_load_lock) also correctly protects _dl_lookup_symbol_x called here that relies on the caller to have serialized access to the data structures it uses.
2013-06-24[BZ #15666] alpha: Add __sqrt*_finite definitionsRichard Henderson1-0/+5
With compatibility for ev6 and non-ev6 builds, as the non-ev6 did manage to get definitions emitted for the float and double functions.
2013-06-15New API to set default thread attributesSiddhesh Poyarekar14-0/+54
This patch introduces two new convenience functions to set the default thread attributes used for creating threads. This allows a programmer to set the default thread attributes just once in a process and then run pthread_create without additional attributes.
2013-06-14MicroBlaze: negated errors in lowlevellock.hKirk Meyer1-4/+4
The macros in lowlevellock.h are returning positive errors, but the users of the macros expect negative. This causes e.g. sem_wait to sometimes return an error with errno set to -EWOULDBLOCK. Signed-off-by: Kirk Meyer <kirk.meyer@sencore.com> Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
2013-06-08Use (void) in no-arguments function definitions.Joseph Myers2-2/+2
2013-06-06Fix executable mode.Ondrej Bilka1-0/+0
2013-06-05Remove trailing whitespace in ports.Joseph Myers33-87/+87
2013-06-04[AArch64] Ensure getcontext() initializes PSTATE.Marcus Shawcroft2-0/+5
2013-05-22Update bits/siginfo.h with Linux hwpoison SIGBUS changesEdjunior Barbosa Machado4-5/+31
Adds new SIGBUS error codes for hardware poison signals, syncing with the current kernel headers (v3.9). It also adds si_trapno field for alpha.
2013-05-21Fix MIPS n32 cancellation in static libc (bug 15506).Joseph Myers3-16/+78
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold2-0/+4
2013-05-12[AArch64] Fix out of range branch from ioctl() and clone()Marcus Shawcroft2-4/+3
2013-05-12 Marcus Shawcroft <marcus.shawcroft@linaro.org> * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Do not call sycall_error directly with a confitional branch. * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Do not call sycall_error directly with a confitional branch.
2013-04-18MicroBlaze PortDavid Holsgrove55-0/+5254
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge13-0/+59
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-21Use LIBC_CONFIG_VAR for MIPS default-abi setting.Joseph Myers3-5/+3
2013-03-20Use LIBC_CONFIG_VAR for ARM default-abi setting.Joseph Myers1-3/+0
2013-03-19aarch64: Move rtld link to /libAndreas Schwab2-0/+2
2013-03-15Avoid duplicate MAP_ANONYMOUS definition for MIPS GNU/Linux.Thomas Schwinge1-1/+0
Follow-up to commit 664a9ce4ca40feabff781fff044c93a43ae15b59.
2013-03-14aarch64: use lib64 as default lib and slib directoryAndreas Schwab2-0/+25
2013-03-12ia64: fix set-but-unused warnings with syscallsMike Frysinger1-2/+5
These macros often set up a variable that later macros sometimes do not use. Add unused attribute to avoid that. Similarly, the ia64 code tends to check the err field rather than the val (which is opposite of most arches) leading to the same kind of warning. Replace this with a dummy reference. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-12ia64: fix strict aliasing warnings with func descriptorsMike Frysinger1-10/+6
Function pointers on ia64 are like parisc -- they're plabels. While the parisc port enjoys a gcc builtin for extracting the address here, ia64 has no such luck. Casting & dereferencing in one go triggers a strict aliasing warning. Use a union to fix that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-11Add comments about ARM configure -fno-unwind-tables handling.Joseph Myers2-0/+2
2013-03-11AM33: Use <bits/mman.h>Andreas Jaeger1-61/+2
2013-03-11Use <bits/mman.h> on ia64Andreas Jaeger1-74/+2
2013-03-11Remove extra pthread_atfork compat symbolsAndreas Schwab6-6/+0
2013-03-10ia64: makecontext: fix signed warningsMike Frysinger1-2/+2
The ia64_rse_is_rnat_slot func expects an unsigned pointer, but we're passing in a signed pointer. The signness doesn't matter here, so convert it to unsigned. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-10ia64: fix NEED_DL_SYSINFO_DSO conditionalsMike Frysinger1-23/+4
The recent change to clean up these defines missed the ia64 logic. Update it accordingly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-03-07AARCH64: Use <bits/mman-linux.h>Andreas Jaeger1-73/+3
* sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2013-03-06Use <bits/mman-linux.h> for MIPSAndreas Jaeger1-72/+5
* sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow definition via __MAP_ANONYMOUS. * sysdeps/unix/sysv/linux/mips/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>. (__MAP_ANONYMOUS): Define.
2013-03-06arm: Implement hard-tp for GET_TLSRichard Henderson2-8/+13
2013-03-06arm: Use push/pop mnemonicsRichard Henderson10-49/+48
For arm this makes no difference--the result is bit-for-bit identical; for thumb this results in smaller encodings. Perhaps it ought not and this is in fact an assembler bug, but I also think it's clearer.
2013-03-06arm: Introduce and use GET_TLSRichard Henderson7-31/+43
Factor out the sequence needed to call kuser_get_tls, as we can't play subtract into pc games in thumb mode. Prepare for hard-tp, pulling the save of LR into the macro.
2013-03-06arm: Introduce and use NEGOFF series of macrosRichard Henderson4-14/+19
There are several places in which we access negative offsets from the thread-pointer, but thumb2 only supports positive offsets in memory references. Avoid duplicating the rather large macros in which these references are embedded by abstracting out the operation.
2013-03-06arm: Introduce and use LDST_PCRELRichard Henderson3-24/+18
Macro-ising the few instances where we need to distinguish between arm and thumb pc-relative memory operations.
2013-03-06Sync with Linux 3.8Andreas Jaeger7-2/+14
2013-03-06Use <bits/mman-linux.h> on M68kAndreas Jaeger1-74/+2
2013-03-06Use <bits/mman-linux.h> on ARMAndreas Jaeger1-74/+2
2013-03-05Use bits/mman-linux.h for TILEAndreas Jaeger1-74/+2
* sysdeps/unix/sysv/linux/tile/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>.
2013-02-28tile: Add priority inheritance futex supportChris Metcalf1-0/+28
2013-02-28Remove bounded-pointers relics from am33 code.Joseph Myers1-4/+3
2013-02-28arm: Mark assembly files that will not use thumb modeRichard Henderson2-0/+4
Some routines are written with complex LDM/STM insns that cannot be used in thumb mode, or are highly conditional requiring excessive IT insns. When a future patch goes in to enable thumb2 by default, this marker will be used to override that default.
2013-02-28arm: Add IT insns for thumb modeRichard Henderson7-4/+15
These are ignored by the assembler in ARM mode, so by default this has no effect on generated code.
2013-02-28arm: Introduce and use PC_OFSRichard Henderson7-16/+14
Scour the source for raw "-8" adjustments that are related to the offset created by reading the pc.
2013-02-28arm: Tidy whitespace in sysdep.h filesRichard Henderson2-249/+245