about summary refs log tree commit diff
path: root/sysdeps/unix
Commit message (Collapse)AuthorAgeFilesLines
* Fix glob64 broken by cleanup.Roland McGrath2013-05-061-0/+2
|
* Move dummy glob64.c alongside glob.c that defines glob64.Roland McGrath2013-05-061-1/+0
|
* Split _dl_writev out from _dl_debug_vdprintf.Roland McGrath2013-05-061-0/+38
|
* Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}.Roland McGrath2013-05-036-85/+4
|
* PowerPC: Add time vDSO supportAdhemerval Zanella2013-05-034-3/+70
| | | | | | | | PowerPC kernel now provides a vDSO implementation for time syscall (commit fcb41a2030abe0eb716ef0798035ef9562097f42). This patch changes time syscall wrapper to use the vDSO when available. It also changes the default non vDSO time on PowerPC to use sysdeps/posix/time.c (since gettimeofday is a vDSO call).
* Sync with Linux 3.9Andreas Jaeger2013-05-031-1/+3
| | | | | | | | * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from Linux 3.9. * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add. (PF_MAX): Adjust for VSOCK change.
* S/390: Change struct statfs[64] member types to unsigned valuesHeiko Carstens2013-04-231-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kay Sievers reported that coreutils' stat tool has a problem with s390's statfs[64] definition: > The definition of struct statfs::f_type needs a fix. s390 is the only > architecture in the kernel that uses an int and expects magic > constants lager than INT_MAX to fit into. > > A fix is needed to make Fedora boot on s390, it currently fails to do > so. Userspace does not want to add code to paper-over this issue. [...] > Even coreutils cannot handle it: > #define RAMFS_MAGIC 0x858458f6 > # stat -f -c%t / > ffffffff858458f6 > > #define BTRFS_SUPER_MAGIC 0x9123683E > # stat -f -c%t /mnt > ffffffff9123683e The bug is caused by an implicit sign extension within the stat tool: out_uint_x (pformat, prefix_len, statfsbuf->f_type); where the format finally will be "%lx". A similar problem can be found in the 'tail' tool. s390 is the only architecture which has an int type f_type member in struct statfs[64]. Other architectures have either unsigned ints or long values, so that the problem doesn't occur there. Therefore change the type of the f_type member to unsigned int, so that we get zero extension instead sign extension when assignment to a long value happens. Reported-by: Kay Sievers <kay@vrfy.org> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* Remove __wur from setfsuid and setfsgid.Adam Conrad2013-04-181-2/+2
|
* Preserve errno across _PC_CHOWN_RESTRICTED call on XFSSiddhesh Poyarekar2013-04-032-0/+13
| | | | | | | | | | | | | | 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.
* New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge2013-04-0210-0/+49
| | | | It is based on draft TS 18661 and currently enabled as a GNU extension.
* Consolidate Linux and POSIX libc_fatal code.Roland McGrath2013-03-191-179/+37
|
* Move _dl_non_dynamic_init, _dl_aux_init declarations.Roland McGrath2013-03-151-6/+0
|
* PowerPC: gettimeofday optimization by using IFUNCAdhemerval Zanella2013-03-152-12/+46
|
* Fix formatting in last changeSiddhesh Poyarekar2013-03-141-1/+1
|
* Fix __times() handling of EFAULT when buf is NULLPetr Baudis2013-03-141-4/+6
|
* Remove extra pthread_atfork compat symbolsAndreas Schwab2013-03-111-1/+0
|
* PowerPC: unify math_ldbl.h implementationsAdhemerval Zanella2013-03-081-4/+0
| | | | | This patch removes redudant definition from PowerPC specific math_ldbl, using the definitions from ieee754 math_ldbl.h.
* Install <bits/mman-linux.h>Andreas Jaeger2013-03-071-1/+2
| | | | | * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add bits/mman-linux.h.
* Remove PIPE_BUF Linux-specific codeSiddhesh Poyarekar2013-03-072-24/+0
| | | | | | | | 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.
* Use <bits/mman-linux.h> for MIPSAndreas Jaeger2013-03-061-1/+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.
* Remove MAP_GROWSUP on s390Andreas Jaeger2013-03-061-2/+0
| | | | | * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove, it's not part of Linux headers.
* Sync with Linux 3.8Andreas Jaeger2013-03-0613-4/+35
|
* Remove powerpc64 bounded-pointers code.Joseph Myers2013-03-062-14/+6
|
* Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.hAndreas Jaeger2013-03-056-29/+23
| | | | | | | | | | | | | | | | | | | | * 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.
* S/390: Fix rt_sigprocmask syscall invocation in get/set/swapcontext.Andreas Krebbel2013-03-057-86/+100
|
* Create <bits/mman-linux.h>Andreas Jaeger2013-03-046-338/+104
| | | | | | | | | | | | | * 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.
* Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath2013-03-011-1/+1
|
* Remove powerpc32 bounded-pointers code.Joseph Myers2013-02-282-14/+6
|
* Remove remaining bounded-pointers support from i386 .S files.Joseph Myers2013-02-216-30/+20
|
* C++11 thread_local destructors supportSiddhesh Poyarekar2013-02-1810-0/+30
| | | | | | | | | | | 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.
* FUTEX_*_REQUEUE_PI support for non-x86 codeSiddhesh Poyarekar2013-02-181-0/+5
| | | | | Add FUTEX_*_REQUEUE_PI support for the default C code and also add implementations for s-390 and ppc.
* Remove bounded-pointers handling from x86_64 assembly sources.Joseph Myers2013-02-173-9/+3
|
* Remove miscellaneous bounded-pointers relics in C code.Joseph Myers2013-02-151-9/+0
|
* Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers2013-02-141-9/+6
|
* Remove __ptrvalue, __bounded and __unbounded.Joseph Myers2013-02-1330-83/+66
|
* Remove CHECK_N and bp-checks.h.Joseph Myers2013-02-0829-92/+44
|
* Remove CHECK_1 and CHECK_1_NULL_OK.Joseph Myers2013-02-0831-152/+42
|
* Remove lots of inline keywords.Roland McGrath2013-02-071-1/+1
|
* Move nss directory into sysdeps Subdirs.Roland McGrath2013-02-051-0/+1
|
* Remove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.Joseph Myers2013-02-0422-84/+35
|
* Remove BOUNDED_N and BOUNDED_1.Joseph Myers2013-02-011-2/+1
|
* Remove bp-start.h and INIT_ARGV_and_ENVIRON.Joseph Myers2013-02-011-1/+0
|
* Remove CHECK_SIGSET and CHECK_SIGSET_NULL_OK.Joseph Myers2013-01-3110-23/+11
|
* Remove bp-semctl.h and CHECK_SEMCTL.Joseph Myers2013-01-314-22/+10
|
* Remove bp-thunks code.Joseph Myers2013-01-314-133/+0
|
* ulimit: remove buggy bsd implementationPino Toscano2013-01-231-91/+0
| | | | | | | | | 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).
* ulimit: move linux implementation as posixPino Toscano2013-01-231-91/+0
| | | | | The linux implementation of ulimit works correctly and has nothing specific to Linux, so move it as general posix implementation.
* Make bits/wchar.h correct for all architectures (bug 15036).Joseph Myers2013-01-231-32/+0
|
* PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.Anton Blanchard2013-01-184-29/+33
| | | | | | | | | | 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.
* Add HAVE_MREMAP for mremap usagePino Toscano2013-01-171-0/+2
| | | | | | | | | 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.