aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
AgeCommit message (Collapse)Author
2013-04-03Preserve errno across _PC_CHOWN_RESTRICTED call on XFSSiddhesh Poyarekar
Fix BZ #15305. On kernel versions earlier than 2.6.29, the Linux kernel exported a sysctl called restrict_chown for xfs, which could be used to allow chown to users other than the owner. 2.6.29 removed this support, causing the open_not_cancel_2 to fail and thus modify errno. The fix is to save and restore errno so that the caller sees it as unmodified. Additionally, since the code to check the sysctl is not useful on newer kernels, we add an ifdef so that in future the code block gets rmeoved completely.
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-19Consolidate Linux and POSIX libc_fatal code.Roland McGrath
2013-03-15Move _dl_non_dynamic_init, _dl_aux_init declarations.Roland McGrath
2013-03-15PowerPC: gettimeofday optimization by using IFUNCAdhemerval Zanella
2013-03-14Fix formatting in last changeSiddhesh Poyarekar
2013-03-14Fix __times() handling of EFAULT when buf is NULLPetr Baudis
2013-03-11Remove extra pthread_atfork compat symbolsAndreas Schwab
2013-03-08PowerPC: unify math_ldbl.h implementationsAdhemerval Zanella
This patch removes redudant definition from PowerPC specific math_ldbl, using the definitions from ieee754 math_ldbl.h.
2013-03-07Install <bits/mman-linux.h>Andreas Jaeger
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add bits/mman-linux.h.
2013-03-07Remove PIPE_BUF Linux-specific codeSiddhesh Poyarekar
Fixes BZ #12723 The variable pipe buffer size does nothing to the value of PIPE_BUF, since the number of bytes that are atomically written is still PIPE_BUF on Linux.
2013-03-06Use <bits/mman-linux.h> for MIPSAndreas Jaeger
* 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-06Remove MAP_GROWSUP on s390Andreas Jaeger
* sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove, it's not part of Linux headers.
2013-03-06Sync with Linux 3.8Andreas Jaeger
2013-03-06Remove powerpc64 bounded-pointers code.Joseph Myers
2013-03-05Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.hAndreas Jaeger
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Include <bits/mman-linux.h>. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value is fine. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of <bits/mman-linux.h> to end of file. * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT] (MCL_CURRENT, MCL_FUTURE): Define here.
2013-03-05S/390: Fix rt_sigprocmask syscall invocation in get/set/swapcontext.Andreas Krebbel
2013-03-04Create <bits/mman-linux.h>Andreas Jaeger
* sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux common definitions. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines provided by bits/mman-linux.h and include <bits/mman-linux.h>. * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2013-03-01Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath
2013-02-28Remove powerpc32 bounded-pointers code.Joseph Myers
2013-02-21Remove remaining bounded-pointers support from i386 .S files.Joseph Myers
2013-02-18C++11 thread_local destructors supportSiddhesh Poyarekar
This feature is specifically for the C++ compiler to offload calling thread_local object destructors on thread program exit, to glibc. This is to overcome the possible complication of destructors of thread_local objects getting called after the DSO in which they're defined is unloaded by the dynamic linker. The DSO is marked as 'unloadable' if it has a constructed thread_local object and marked as 'unloadable' again when all the constructed thread_local objects defined in it are destroyed.
2013-02-18FUTEX_*_REQUEUE_PI support for non-x86 codeSiddhesh Poyarekar
Add FUTEX_*_REQUEUE_PI support for the default C code and also add implementations for s-390 and ppc.
2013-02-17Remove bounded-pointers handling from x86_64 assembly sources.Joseph Myers
2013-02-15Remove miscellaneous bounded-pointers relics in C code.Joseph Myers
2013-02-14Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers
2013-02-08Remove CHECK_N and bp-checks.h.Joseph Myers
2013-02-08Remove CHECK_1 and CHECK_1_NULL_OK.Joseph Myers
2013-02-07Remove lots of inline keywords.Roland McGrath
2013-02-05Move nss directory into sysdeps Subdirs.Roland McGrath
2013-02-04Remove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.Joseph Myers
2013-02-01Remove BOUNDED_N and BOUNDED_1.Joseph Myers
2013-02-01Remove bp-start.h and INIT_ARGV_and_ENVIRON.Joseph Myers
2013-01-31Remove CHECK_SIGSET and CHECK_SIGSET_NULL_OK.Joseph Myers
2013-01-31Remove bp-semctl.h and CHECK_SEMCTL.Joseph Myers
2013-01-31Remove bp-thunks code.Joseph Myers
2013-01-23ulimit: remove buggy bsd implementationPino Toscano
The bsd implementation of ulimit produces wrong return values, so remove it in favour of the posix implementation. The only regression for non-Linux implementations using bsd sysdeps and not providing an own ulimit is that the __UL_GETMAXBRK case (which is non-standard) is left unimplemented (giving EINVAL).
2013-01-23ulimit: move linux implementation as posixPino Toscano
The linux implementation of ulimit works correctly and has nothing specific to Linux, so move it as general posix implementation.
2013-01-23Make bits/wchar.h correct for all architectures (bug 15036).Joseph Myers
2013-01-18PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.Anton Blanchard
In order for the __kernel_get_tbfreq vDSO call to work the INTERNAL_VSYSCALL_NCS macro needed to be updated to prevent it from assuming an integer return type (since the timebase frequency is a 64-bit value) by specifying the type of the return type as a macro parameter. The macro then specifically declares the return value as a 'register' (or implied pair) of the denoted type. The compiler is then informed that this register (or implied pair) is to be used for the return value.
2013-01-17Add HAVE_MREMAP for mremap usagePino Toscano
Introduce (only on Linux) and use a HAVE_MREMAP symbol to advertize mremap availability. Move the malloc-sysdep.h include from arena.c to malloc.c, since what is provided by malloc-sysdep.h is needed earlier in malloc.c, before the inclusion of arena.c.
2013-01-15scsi/sg.h: include stddef.h for size_tMike Frysinger
This header uses size_t but doesn't include stddef.h for it. So when packages happen to include this before any header that defines size_t, they get a build failure. Reviewed-by: Carlos O'Donell <codonell@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-11Adjust sparc for Roland's multiarch sysdep directory changes.David S. Miller
* sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies: Move to... * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies: Here.
2013-01-11Remove __GLIBC_HAVE_LONG_LONG.Joseph Myers
2013-01-11Add MSG_FASTOPENAndreas Jaeger
[BZ #15003] * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New value. Sync with Linux 3.7.
2013-01-10Use __extension__ with long long in installed headers.Joseph Myers
2013-01-10Correct _XXX_ILP32_OFFBIG for x32H.J. Lu
2013-01-10Revert "Use ieee754/dbl-64/wordsize-64 on powerpc64"Andreas Schwab
This reverts commit 7a9d2c397195d9a19a95dbcdb59fb5df03f2d940.
2013-01-10Use ieee754/dbl-64/wordsize-64 on powerpc64Andreas Schwab
* sysdeps/ieee754/ldbl-opt/wordsize-64/s_ceil.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_finite.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_floor.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_frexp.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_isinf.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_isnan.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_llround.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_logb.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_lround.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_modf.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_nearbyint.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_remquo.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_rint.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_round.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbln.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_scalbn.c: New file. * sysdeps/ieee754/ldbl-opt/wordsize-64/s_trunc.c: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc64/Implies: Add ieee754/ldbl-opt/wordsize-64. * sysdeps/powerpc/powerpc64/Implies: Add ieee754/dbl-64/wordsize-64.