summaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux
AgeCommit message (Collapse)AuthorFilesLines
2012-12-06linux: posix_fadvise: support __NR_fadvise64_64Mike Frysinger1-2/+11
Some arches do not have a __NR_fadvise64 but do have __NR_fadvise64_64. If the former is unavailable, fallback to the latter. Reviewed-by: Carlos O'Donell <carlos@systemhalted.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-12-06Fix "set but not used" warnings for powerpc64Siddhesh Poyarekar1-3/+2
2012-12-04Fix powerpc32 "set but not used" warnings from INTERNAL_SYSCALL_DECL.Joseph Myers1-1/+1
2012-11-29clock_getcpuclockid: delete unused HAS_CPUCLOCKMike Frysinger1-4/+0
In commit 26889eacc24cd9f0cb37c5a67beac1a0ba709adf (Remove __ASSUME_POSIX_CPU_TIMERS), all users of HAS_CPUCLOCK were dropped. Punt the fallback definition too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-28Revert "2012-11-07 Andreas Jaeger <aj@suse.de>"Andreas Schwab1-17/+1
This reverts commit 01f34a3bd8c087ca4be0bd24857e454c8d29f20b. The issue has been fixed in the kernel.
2012-11-20Add recvmmsg and sendmmsg to the generic glibc API.Thomas Schwinge5-58/+16
2012-11-17Include string.h in sysdeps/unix/sysv/linux/fxstatat.c.Joseph Myers1-1/+2
2012-11-11Fix check-localplt regressions on sparc.David S. Miller1-4/+5
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include inttypes.h (__get_clockfreq_via_proc_openprom): Use __open, __read, and __close rather than their public counterparts.
2012-11-09Support --with-pkgversion and --with-bugurl.Joseph Myers1-3/+3
2012-11-09PowerPC: Use <bits/fcntl-linux.h>Andreas Jaeger1-258/+11
* sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all definitions and declarations that are provided by <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-11-08S/390: Add hwcap value for transactional execution.Andreas Krebbel1-0/+1
2012-11-07Fix NULL ucontext->uc_link handling on sparc64.David S. Miller3-12/+43
* sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file. * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c (__start_context): Declare. (__makecontext_ret): Delete. (__makecontext): Hook up __start_context instead of __makecontext_ret. * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (sysdep_routines): Add __start_context when in stdlib.
2012-11-072012-11-07 Andreas Jaeger <aj@suse.de>Jeff Law1-1/+17
[BZ #14809] * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H) (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header guards are changed. Only define if not yet defined, #undef back after including linux/sysctl.h if defined here.
2012-11-04[BZ #157] Remove include/stub-tag.h for good.Thomas Schwinge7-10/+0
2012-11-04Fix small indendation issues in paths.h filesPino Toscano1-2/+2
2012-11-01PowerPC: Fix uc_link == NULL handling for makecontex.Andreas Schwab1-15/+15
If the function registered with makecontext returns with a NULL context link the process should exit with zero, not non-zero.
2012-10-31Fix powerpc abilist sort orderAndreas Schwab2-2/+2
2012-10-31Correct order of entries in powerpc libc.abilist files.Tulio Magno Quites Machado Filho2-2/+2
2012-10-27Remove redundant defines of __O_LARGEFILEAndreas Jaeger2-4/+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-25Fix sparc64 build.David S. Miller1-1/+1
* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c (__get_clockfreq_via_proc_openprom): Use strtoumax instead of strtoull.
2012-10-25Use __getdents instead of __getdirentries in sparc ↵Roland McGrath1-3/+1
__get_clockfreq_via_proc_openprom.
2012-10-24BZ#14743: Move clock_* symbols from librt to libc.Roland McGrath15-20/+72
2012-10-24F_GETLK cleanup for <bits/fcntl.h>Andreas Jaeger3-46/+0
2012-10-22Fix O_RSYNCAndreas Jaeger1-1/+5
(O_RSYNC): Define to __O_RSYNC if it exists, otherwise to O_SYNC.
2012-10-22Always define __O_LARGEFILEAndreas Jaeger2-13/+8
2012-10-22Improve <bits/fcntl-linux.h>: F_GETLK etc.Andreas Jaeger1-3/+9
(F_GETLK, F_SETLK, F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
2012-10-22Install <bits/fcntl-linux.h>Andreas Jaeger1-0/+1
(sysdep_headers): Add bits/fcntl-linux.h.
2012-10-22Use __O_LARGEFILE instead of O_LARGEFILEAndreas Jaeger2-4/+4
2012-10-21SH: Use <bits/fcntl-linux.h>Andreas Jaeger1-278/+3
Remove all definitions and declarations that are provided by <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
2012-10-20Reorganization of bits/fcntl.h for LinuxAndreas Jaeger4-761/+409
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-18Remove _G_OPEN64, _G_LSEEK64, _G_MMAP64, _G_FSTAT64 from _G_config.h.Joseph Myers1-5/+0
2012-10-12Avoid PLT references from __get_clockfreq on powerpcAndreas Schwab1-5/+5
2012-10-10* crypt/crypt-entry.c: Include fips-private.h.Alexandre Oliva1-0/+74
(__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled. * crypt/md5c-test.c (main): Tolerate disabled MD5. * sysdeps/unix/sysv/linux/fips-private.h: New file. * sysdeps/generic/fips-private.h: New file, dummy fallback.
2012-10-09Add missing magic to GLIBC_PROVIDES.Roland McGrath2-219/+0
2012-10-09Remove _G_off64_t and _G_stat64 from _G_config.h.Joseph Myers1-2/+0
2012-10-08Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.cAndreas Schwab1-0/+1
2012-10-04powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.hKhem Raj1-1/+27
Fixes BZ #14251.
2012-10-04Name space hygeine for madvise.Roland McGrath1-2/+0
2012-10-01Get rid of unused __swblk_t type.Roland McGrath3-3/+0
2012-10-01Clean up init-first.c files.Roland McGrath5-123/+12
2012-09-28Move _G_config.h with Linuxism to linux/ directory.Roland McGrath1-0/+65
2012-09-25Add __ppc_get_timebase_freq to ppc.h.Tulio Magno Quites Machado Filho8-0/+135
2012-09-25Shrink heap on linux when overcommit_memory == 2Siddhesh Poyarekar1-0/+57
Using madvise with MADV_DONTNEED to release memory back to the kernel is not sufficient to change the commit charge accounted against the process on Linux. It is OK however, when overcommit is enabled or is heuristic. However, when overcommit is restricted to a percentage of memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it makes a difference since memory requests will fail. Hence, we do what we do with secure exec binaries, which is to call mmap on the region to be dropped with MAP_FIXED. This internally unmaps the pages in question and reduces the amount of memory accounted against the process.
2012-09-01Remove __ASSUME_POSIX_CPU_TIMERS.Joseph Myers5-272/+21
2012-08-29Don't make ttyname* fail if proc filesystem is not availableSiddhesh Poyarekar2-12/+0
The ttyname and ttyname_r functions on Linux now fall back to searching for the tty file descriptor in /dev/pts or /dev if /proc is not available. This allows creation of chroots without the procfs mounted on /proc. Fixes BZ #14516.
2012-08-27Remove __ASSUME_STAT64_SYSCALL.Joseph Myers11-387/+21
2012-08-23Make dl-fxstatat64.c include of fxstatat64.c use <> not "".Joseph Myers1-1/+1
2012-08-22BZ#13696: Add --disable-nscd configure option.Roland McGrath1-13/+25
2012-08-21Remove __ASSUME_FADVISE64_64_SYSCALL.Joseph Myers5-150/+7
2012-08-20Remove __ASSUME_SWAPCONTEXT_SYSCALL.Joseph Myers4-21/+2