about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add Q_GETNEXTQUOTA from Linux 4.6 to sys/quota.h.Joseph Myers2016-05-181-0/+1
| | | | | | | | | | | This patch adds Q_GETNEXTQUOTA, new in Linux 4.6, to sysdeps/unix/sysv/linux/sys/quota.h. Tested for x86_64 and x86 (testsuite, and that installed shared libraries are unchanged by the patch). * sysdeps/unix/sysv/linux/sys/quota.h [_LINUX_QUOTA_VERSION >= 2] (Q_GETNEXTQUOTA): New macro.
* Synchronize <sys/personality.h> with kernel headersAurelien Jarno2016-03-281-0/+3
| | | | | | | | | <sys/personality.h> is out of sync with kernel headers, missing the UNAME26, FDPIC_FUNCPTRS and PER_LINUX_FDPIC entries. Fix that. Changelog: * sysdeps/unix/sysv/linux/sys/personality.h (UNAME26, FDPIC_FUNCPTRS, PER_LINUX_FDPIC): Add.
* Update glibc headers for Linux 4.5.Joseph Myers2016-03-141-0/+2
| | | | | | | | | | | | | | | This patch updates the glibc headers with the defines MADV_FREE, IPV6_HDRINCL and EPOLLEXCLUSIVE that are added in Linux 4.5. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * bits/mman-linux.h [__USE_MISC] (MADV_FREE): New macro. * sysdeps/unix/sysv/linux/hppa/bits/mman.h [__USE_MISC] (MADV_FREE): Likewise. * sysdeps/unix/sysv/linux/bits/in.h (IPV6_HDRINCL): Likewise. * sysdeps/unix/sysv/linux/sys/epoll.h (enum EPOLL_EVENTS): Add EPOLLEXCLUSIVE.
* Add new header definitions from Linux 4.4 (plus older ptrace definitions).Joseph Myers2016-01-121-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds some new header definitions from Linux 4.4: * MCL_ONFAULT is added to bits/mman.h / bits/mman-linux.h (this was already done for hppa). * PTRACE_SECCOMP_GET_FILTER is added to sys/ptrace.h. Along with it, the older PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, added in Linux 3.11 but missed at the time, are also added. Tested for x86_64 and x86 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * bits/mman-linux.h [!MCL_CURRENT] (MCL_ONFAULT): New macro. * sysdeps/unix/sysv/linux/alpha/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/powerpc/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/sparc/bits/mman.h (MCL_ONFAULT): Likewise. * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_GETSIGMASK): New enum constant and macro. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise. * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_GETSIGMASK): Likewise. (PTRACE_SETSIGMASK): Likewise. (PTRACE_SECCOMP_GET_FILTER): Likewise.
* Update copyright dates with scripts/update-copyrights.Joseph Myers2016-01-0424-24/+24
|
* Make obsolete syscall wrappers into compat symbols (bug 18472).Joseph Myers2015-12-141-32/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Various Linux kernel syscalls have become obsolete over time. Specifically, the following are obsolete in all kernel versions supported by glibc, are not present for architectures more recently added to the kernel, and as such, the wrapper functions for them should be compat symbols, not in static libc and not available for new links with shared libc. * bdflush: in Linux 2.6, does nothing if present. * create_module get_kernel_syms query_module: Linux 2.4 module interface, syscalls not present in Linux 2.6. * uselib: part of the mechanism for loading a.out shared libraries, irrelevant with ELF. This patch adds support for syscalls.list to list syscall aliases of the form NAME@VERSION:OBSOLETED, with SHLIB_COMPAT conditionals being generated for such aliases. Those five syscalls are then made into compat symbols (obsoleted in glibc 2.23, so future ports won't have these symbols at all), with the header <sys/kdaemon.h> declaring bdflush being removed. When we move to 3.2 as minimum kernel version, the same can be done for nfsservctl (removed in Linux 3.1) as well. Tested for x86_64 and x86 (testsuite, as well as checking that the symbols in question indeed become compat symbols, that they are indeed omitted from static libc, and that the generated SHLIB_COMPAT conditionals look right). [BZ #18472] * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Handle entries for the form NAME@VERSION:OBSOLETED and generate SHLIB_COMPAT conditionals for them. * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Likewise. * sysdeps/unix/sysv/linux/sys/kdaemon.h: Remove file. * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Remove sys/kdaemon.h. * sysdeps/unix/sysv/linux/syscalls.list (bdflush): Make into compat-only syscall, obsoleted in glibc 2.23. (create_module): Likewise. (get_kernel_syms): Likewise. (query_module): Likewise. (uselib): Likewise. * manual/sysinfo.texi (System Parameters): Do not mention bdflush.
* Update <sys/ptrace.h> for Linux 4.3.Joseph Myers2015-11-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch updates <sys/ptrace.h> for Linux 4.3, adding PTRACE_O_SUSPEND_SECCOMP and updating the value of PTRACE_O_MASK. Some architectures were missing the older PTRACE_O_EXITKILL, so that was added to the files missing it as well. Tested for x86_64 (testsuite, and that installed shared libraries are unchanged by the patch). * sysdeps/unix/sysv/linux/aarch64/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_SUSPEND_SECCOMP): New value in enum __ptrace_setoptions. (PTRACE_O_MASK): Update value. * sysdeps/unix/sysv/linux/tile/sys/ptrace.h (PTRACE_O_EXITKILL): New value in enum __ptrace_setoptions. (PTRACE_O_SUSPEND_SECCOMP): Likewise. (PTRACE_O_MASK): Update value.
* Update headers for Linux 4.0, 4.1 definitions.Joseph Myers2015-06-291-1/+4
| | | | | | | | | | | | | | | | | | | This patch updates installed glibc headers for new definitions from Linux 4.0 and 4.1 that seem relevant to glibc headers. In addition, I noticed that PF_IB / AF_IB, added in Linux 3.11, were missing for no obvious reason, so added those as well. Tested for x86_64 (testsuite, and that installed stripped shared libraries are unchanged by the patch). * sysdeps/unix/sysv/linux/bits/in.h (IP_CHECKSUM): New macro. * sysdeps/unix/sysv/linux/bits/socket.h (PF_IB): Likewise. (PF_MPLS): Likewise. (AF_IB): Likewise. (AF_MPLS): Likewise. * sysdeps/unix/sysv/linux/sys/mount.h (MS_LAZYTIME): New enum value and macro. (MS_RMT_MASK): Include MS_LAZYTIME.
* Update copyright dates with scripts/update-copyrights.Joseph Myers2015-01-0225-25/+25
|
* Fix prototype of eventfd.Rasmus Villemoes2014-09-201-1/+1
|
* ptrace.h: add __ prefix to ptrace_peeksiginfo_argsMike Frysinger2014-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | All the other ptrace structures in this file have a __ prefix except this new one. This in turn causes build problems for most packages that try to use ptrace such as strace: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../linux/x86_64 -I../../linux \ -I./linux -Wall -Wwrite-strings -g -O2 -MT process.o -MD -MP \ -MF .deps/process.Tpo -c -o process.o ../../process.c In file included from ../../process.c:63:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args' struct ptrace_peeksiginfo_args { ^ In file included from ../../defs.h:159:0, from ../../process.c:37: /usr/include/sys/ptrace.h:191:8: note: originally defined here struct ptrace_peeksiginfo_args ^ Since this struct was introduced in glibc-2.18, there shouldn't be any real regressions with adding the __ prefix. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Update copyright notices with scripts/update-copyrightsAllan McRae2014-01-0125-25/+25
|
* Use __glibc_reserved instead __unused.Ondřej Bílka2013-11-261-4/+4
|
* Fix typo in sys/ptrace.h.Carlos O'Donell2013-11-251-1/+1
| | | | | | | The event code is PTRACE_EVENT_SECCOMP, not PTRAVE_EVENT_SECCOMP. This patch fixes the V->C typo. There are no ABI issues since the number remains the same for the code. Code using the old wrong name will need to be updated.
* Sync sys/ptrace with Linux 3.10Andreas Jaeger2013-07-041-1/+20
|
* Remove trailing whitespace.Joseph Myers2013-06-051-1/+1
|
* Remove __wur from setfsuid and setfsgid.Adam Conrad2013-04-181-2/+2
|
* Sync with Linux 3.8Andreas Jaeger2013-03-061-1/+2
|
* Remove __GLIBC_HAVE_LONG_LONG.Joseph Myers2013-01-111-10/+5
|
* Don't check __GNUC__ together with __USE_EXTERN_INLINES.Joseph Myers2013-01-081-1/+1
|
* Update copyright notices with scripts/update-copyrights.Joseph Myers2013-01-0225-26/+25
|
* Revert "2012-11-07 Andreas Jaeger <aj@suse.de>"Andreas Schwab2012-11-281-17/+1
| | | | | | This reverts commit 01f34a3bd8c087ca4be0bd24857e454c8d29f20b. The issue has been fixed in the kernel.
* 2012-11-07 Andreas Jaeger <aj@suse.de>Jeff Law2012-11-071-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.
* Split sys/param.h out into common file and sysdeps bits/param.h file.Roland McGrath2012-08-171-82/+0
|
* * posix/unistd.h (setuid, setreuid, seteuid, setresuid):Florian Weimer2012-08-011-2/+2
| | | | | | | | Declare with warn_unused_result. (setgid, setregid, setegid, setresgid): Likewise. * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid): Likewise. * WUR-REPORT: Remove set*id functions.
* Merge Linux 3.5 ptrace changesAndreas Jaeger2012-07-261-3/+5
| | | | | (__ptrace_eventcodes): Add new value PTRACE_EVENT_SECCOMP from Linux 3.5. (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust PTRACE_O_MASK.
* Merge Linux 3.5 epoll changesAndreas Jaeger2012-07-261-0/+2
| | | | Add EPOLLWAKEUP.
* Add more constants to Linux <sys/reboot.h>Andreas Jaeger2012-05-231-1/+7
| | | | | | | | | 2012-05-23 Andreas Jaeger <aj@suse.de> Maximilian Attems <max@stro.at> * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC): New macros.
* Add sysctl.mk and bits/sysctl.hH.J. Lu2012-05-221-0/+2
|
* Split architecture-specific parts of sys/epoll.h into bits/epoll.h.Joseph Myers2012-02-211-10/+7
|
* Split architecture-specific parts of sys/timerfd.h into bits/timerfd.h.Joseph Myers2012-02-211-9/+2
|
* Split architecture-specific parts of sys/signalfd.h into bits/signalfd.h.Joseph Myers2012-02-151-10/+3
|
* Split architecture-specific parts of sys/inotify.h into bits/inotify.h.Joseph Myers2012-02-141-10/+3
|
* Split architecture-specific parts of sys/eventfd.h into bits/eventfd.h.Joseph Myers2012-02-131-12/+3
|
* Replace FSF snail mail address with URLs.Paul Eggert2012-02-0926-78/+52
|
* Remove pre-ISO C supportUlrich Drepper2012-01-075-14/+14
| | | | No more __const.
* Define EPOLLONESHOT and EPOLLET using unsigned valuesUlrich Drepper2011-12-211-3/+3
|
* Update ptrace constantsUlrich Drepper2011-07-231-4/+32
|
* Add const attr to gnu_dev_{major,minor,makedev}Marek Polacek2011-07-201-6/+6
|
* Actually undefine ARG_MAX from <linux/limits.h>Jonathan Nieder2011-05-071-2/+3
|
* Misplaced new line in last patchUlrich Drepper2011-05-071-3/+1
|
* Add missing {__BEGIN,__END}_DECLS to sys/sysmacros.hPaul Pluzhnikov2011-05-071-1/+5
|
* Fix typo in comment.Ulrich Drepper2011-04-091-2/+2
|
* Add clock_adjtime syscall.Ulrich Drepper2011-03-301-85/+3
|
* Define SWAP_FLAG_DISCARD.Ulrich Drepper2010-11-161-1/+2
|
* Remove third argument from fanotify_init functionAndreas Schwab2010-08-151-2/+2
|
* Define IN_EXCL_UNLINKUlrich Drepper2010-08-111-1/+3
|
* Add support for Linux fanotify_init and fanotify_mask syscalls.Ulrich Drepper2010-08-111-0/+39
|
* Make <sys/timex.h> compatible with C++Andreas Schwab2010-05-211-3/+3
|
* Define UMOUNT_NOFOLLOW.Ulrich Drepper2010-03-121-1/+3
|