summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv
AgeCommit message (Collapse)AuthorFilesLines
2013-05-28Hopefully fix __syscall for kopensolaris/x86_64Igor Pashev1-5/+36
2013-05-28Copy-n-paste typo in PSEUDO_ENDIgor Pashev1-1/+1
2013-05-27Use _itoa.h instead of stdio-common/_itoa.hIgor Pashev2-2/+2
2013-05-27kopensolaris ttynameIgor Pashev1-3/+141
2013-05-27Undo all kopensolaris changes to linux ttyname.Igor Pashev2-16/+0
Need to write kopensolaris specific versions
2013-05-27Add XPG7 namesIgor Pashev1-0/+51
2013-05-26Fix assembly: l -> qIgor Pashev1-9/+9
2013-05-26Fix typos in getdentsIgor Pashev2-4/+2
WTF?
2013-05-23XPG7 fix for kopensolaris bits/stat.hIgor Pashev1-1/+1
Everybody already has done it, see for example: sysdeps/unix/bsd/bits/stat.h commit f095bb7204d80f609a73a22796edd6cffd4c6add Author: Ulrich Drepper <drepper@redhat.com> Date: Sat Jan 9 10:56:41 2010 -0800 Add support for XPG7 testing. The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
2013-05-22SYSCALL_ERROR_HANDLER for kopensolaris/x86_64Igor Pashev1-71/+23
Copy from linux/x86_64. Some work will be needed for kopensolaris/i386, which can be safely copied from linux/i386. (only take care of syscall args and return values) See the history for linux (git log -p)
2013-05-22Update bits/siginfo.h with Linux hwpoison SIGBUS changesEdjunior Barbosa Machado3-3/+21
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-22No check_consistency() on x86_64Igor Pashev1-23/+0
2013-05-19__USE_XOPEN2K8 in kopensolaris-gnu-bits/fcntl.hIgor Pashev1-2/+6
Put O_CLOEXEC (new), O_NOFOLLOW, O_DIRECTORY under __USE_XOPEN2K8 For O_CLOEXEC on illumos see https://github.com/illumos/illumos-gate/commit/b075ad5b007248d50e4c2e838b460c9c7cfd9fad
2013-05-19Need kopensolaris-gnu/x86_64/sysdep.SIgor Pashev1-0/+40
Copied from kopensolaris-gnu/i386 with trivial changes: i386 -> x86_64
2013-05-19Include guard in kopensolaris-gnu/bits/stat.hIgor Pashev1-0/+5
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold10-0/+10
2013-05-15Update s390/bits/siginfo.hEdjunior Machado1-3/+7
2013-05-15 Edjunior Machado <emachado@linux.vnet.ibm.com> * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove si_trapno and add si_addr_lsb to _sifields.sigfault. (si_trapno): Remove macro. (si_addr_lsb): Define new macro. (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
2013-05-10Add getgid.c for SHChristian Grönke1-0/+1
[BZ #12387] * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
2013-05-10Fix integer overflow in sysdeps/unix/sysv/linux/bits/sched.hAndreas Jaeger1-3/+3
[BZ #15448] * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S) (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
2013-05-06Fix glob64 broken by cleanup.Roland McGrath1-0/+2
2013-05-06Move dummy glob64.c alongside glob.c that defines glob64.Roland McGrath1-1/+0
2013-05-06Split _dl_writev out from _dl_debug_vdprintf.Roland McGrath1-0/+38
2013-05-03Consolidate definitions of _FORTIFY_SOURCE wrappers for open{,64}{,at}.Roland McGrath6-85/+4
2013-05-03PowerPC: Add time vDSO supportAdhemerval Zanella4-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).
2013-05-03Sync with Linux 3.9Andreas Jaeger1-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.
2013-04-23S/390: Change struct statfs[64] member types to unsigned valuesHeiko Carstens1-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>
2013-04-18Remove __wur from setfsuid and setfsgid.Adam Conrad1-2/+2
2013-04-03Preserve errno across _PC_CHOWN_RESTRICTED call on XFSSiddhesh Poyarekar2-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.
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge10-0/+49
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-19Consolidate Linux and POSIX libc_fatal code.Roland McGrath1-179/+37
2013-03-15Move _dl_non_dynamic_init, _dl_aux_init declarations.Roland McGrath1-6/+0
2013-03-15PowerPC: gettimeofday optimization by using IFUNCAdhemerval Zanella2-12/+46
2013-03-14Fix formatting in last changeSiddhesh Poyarekar1-1/+1
2013-03-14Fix __times() handling of EFAULT when buf is NULLPetr Baudis1-4/+6
2013-03-11Remove extra pthread_atfork compat symbolsAndreas Schwab1-1/+0
2013-03-08PowerPC: unify math_ldbl.h implementationsAdhemerval Zanella1-4/+0
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 Jaeger1-1/+2
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add bits/mman-linux.h.
2013-03-07Remove PIPE_BUF Linux-specific codeSiddhesh Poyarekar2-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.
2013-03-06Use <bits/mman-linux.h> for MIPSAndreas Jaeger1-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.
2013-03-06Remove MAP_GROWSUP on s390Andreas Jaeger1-2/+0
* 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 Jaeger13-4/+35
2013-03-06Remove powerpc64 bounded-pointers code.Joseph Myers2-14/+6
2013-03-05Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.hAndreas Jaeger6-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.
2013-03-05S/390: Fix rt_sigprocmask syscall invocation in get/set/swapcontext.Andreas Krebbel7-86/+100
2013-03-04Create <bits/mman-linux.h>Andreas Jaeger6-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.
2013-03-01Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath1-1/+1
2013-02-28Remove powerpc32 bounded-pointers code.Joseph Myers2-14/+6
2013-02-21Remove remaining bounded-pointers support from i386 .S files.Joseph Myers5-28/+20
2013-02-18C++11 thread_local destructors supportSiddhesh Poyarekar10-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.
2013-02-18FUTEX_*_REQUEUE_PI support for non-x86 codeSiddhesh Poyarekar1-0/+5
Add FUTEX_*_REQUEUE_PI support for the default C code and also add implementations for s-390 and ppc.