summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/s390/bits
AgeCommit message (Collapse)AuthorFilesLines
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae17-17/+17
2013-11-26Use __glibc_reserved instead __unused.Ondřej Bílka7-26/+26
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-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-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 Jaeger1-0/+1
2013-03-05Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.hAndreas Jaeger1-4/+2
* 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-04Create <bits/mman-linux.h>Andreas Jaeger1-69/+1
* 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-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers17-19/+17
2012-11-08S/390: Add hwcap value for transactional execution.Andreas Krebbel1-0/+1
2012-10-27Remove redundant defines of __O_LARGEFILEAndreas Jaeger1-2/+0
* sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE) [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>. * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): [__WORDSIZE != 64]: Likewise. * sysdeps/unix/sysv/linux/generic/bits/fcntl.h: (__O_LARGEFILE) [__WORDSIZE != 64]: Do not define, take value from <bits/fcntl-linux.h>.
2012-10-24F_GETLK cleanup for <bits/fcntl.h>Andreas Jaeger1-22/+0
2012-10-22Always define __O_LARGEFILEAndreas Jaeger1-6/+4
2012-10-22Use __O_LARGEFILE instead of O_LARGEFILEAndreas Jaeger1-2/+2
2012-10-20Reorganization of bits/fcntl.h for LinuxAndreas Jaeger1-257/+9
Create a new bits/fcntl-linux.h that contains Linux generic code and a include it from the architecture specific bits/fcntl.h. Architectures done: x86, SPARC, s390
2012-10-01Get rid of unused __swblk_t type.Roland McGrath1-1/+0
2012-08-06Clean up {alphasort,versionsort,scandir,scandirat}{,64} for struct dirent == ↵Roland McGrath1-0/+3
struct dirent64.
2012-08-06Clean up lockf64, fseeko64, ftello64, fgetpos64, fsetpos64 for off64_t == off_t.Roland McGrath1-0/+7
2012-07-26Merge _sigsys changes from Linux 3.5Andreas Jaeger1-1/+12
2012-05-23Update from Linux 3.4Andreas Jaeger1-0/+3
2012-05-20Add <sys/auxv.h> and getauxval.Richard Henderson1-0/+36
2012-05-17Add __fsword_t and use it in bits/statfs.hH.J. Lu1-0/+1
2012-05-16Fold copyright yearsH.J. Lu1-1/+1
2012-05-15Remove __snseconds_tH.J. Lu1-2/+1
2012-05-15Add __syscall_slong_t and __syscall_ulong_tH.J. Lu1-0/+2
2012-04-11Add __snseconds_t and __SNSECONDS_T_TYPEH.J. Lu1-0/+1
2012-03-27Define MAP_STACK and MAP_HUGETLB on powerpc, s390, sh and sparc.Anton Blanchard1-1/+3
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and MAP_HUGETLB. * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
2012-02-26Fix name mangling of pthread_attr_t after changeUlrich Drepper1-1/+1
2012-02-26Work around problem of pthread_attr_t definition with old compilersUlrich Drepper1-1/+7
2012-02-26Fix up POSIX testing in conformtestUlrich Drepper1-2/+2
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert16-48/+32
2011-05-29Same change for the other siginfi.h filesUlrich Drepper1-2/+2
2011-04-01Rename open_by_handle to open_by_handle_at.Andreas Schwab1-2/+2
2011-04-01Define O_PATH.Ulrich Drepper1-0/+1
2011-04-01Add support for name_to_handle_at and open_by_handle.Ulrich Drepper1-6/+47
2011-01-17Define MADV_NOHUGEPAGE.Ulrich Drepper1-0/+1
2011-01-17Define MADV_HUGEPAGE.Ulrich Drepper1-1/+2
2010-08-11f_flags in Linux statfs implementation.Ulrich Drepper1-3/+6
The 2.6.36 kernel provides an additional field in the statfs results. Use this value in the statvfs emulation to avoid filling in f_flag the hard way.
2010-06-14Define F_SETPIPE_SZ and F_GETPIPE_SZ.Ulrich Drepper1-0/+2
2010-01-11Fix double-inclusion problem of bits/stat.h.Ulrich Drepper1-0/+5
2010-01-10FIx up signal.h for XPG7.Ulrich Drepper1-1/+3
2010-01-09Add support for XPG7 testing.Ulrich Drepper2-7/+12
The header conformance testing code needed extending for XPG7. This exposed a few bugs in the headers. There are more changes to come.
2009-12-11Redefine O_SYNC and O_DSYNC to match 2.6.33+ kernels.Ulrich Drepper1-3/+3
2009-11-23Use struct timespec for timestamps in struct stat also if __USE_XOPEN2K8.Andreas Schwab1-19/+19
POSIX.1-2008 made stat.st_[acm]tim mandatory.
2009-11-19Follow kernel F_OWNER_{GID -> PGRP} change.Ulrich Drepper1-3/+4
But maintain compatiblity for 2.11.
2009-11-17Change misleading names of parameters of sync_file_range.Ulrich Drepper1-1/+1
2009-11-17Add missing Linux MADV_* definitions.Ulrich Drepper1-9/+12
2009-11-14Fix F_SETOWN_EX and F_GETOWN_EX definitions.Ulrich Drepper1-2/+2
2009-11-06Fix preadv, pwritev and fallocate for -D_FILE_OFFSET_BITS=64.Jakub Jelinek1-2/+2
As reported in http://bugzilla.redhat.com/533063 , preadv/pwritev prototypes are wrong on 32-bit arches with -D_FILE_OFFSET_BITS=64 and as I've just found, fallocate is wrong too. The problem is that only off_t is remapped to the 64-bit type transparently, __off_t is not.
2009-10-29Fix IA-64 and S390 sigevent definitions.Ulrich Drepper1-3/+7