lib: Add personality fallback and SAFE macro
PATCH v2 1/3 lib: Add personality fallback and SAFE macro
Add the macro SAFE_PERSONALITY as well as fallback logic for if <sys/personality.h> is missing or incomplete.
--- configure.ac | 3 +++ include/lapi/personality.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++ include/tst_personality.h | 28 +++++++++++++++++++++++++++ lib/tst_personality.c | 33 +++++++++++++++++++++++++++++++ m4/ltp-personality.m4 | 24 +++++++++++++++++++++++ 5 files changed, 136 insertions(+) create mode 100644 include/lapi/personality.h create mode 100644 include/tst_personality.h create mode 100644 lib/tst_personality.c create mode 100644 m4/ltp-personality.m4
configure.ac +3 -0
@@ -37,10 +37,12 @@ AC_CHECK_HEADERS([ \ mm.h \ pthread.h \ sys/xattr.h \ + sys/personality.h \ linux/genetlink.h \ linux/mempolicy.h \ linux/module.h \ linux/netlink.h \ + linux/personality.h \ sys/epoll.h \ sys/inotify.h \ sys/fanotify.h \
@@ -194,5 +196,6 @@ LTP_CHECK_SYNC_ADD_AND_FETCH LTP_CHECK_BUILTIN_CLEAR_CACHE LTP_CHECK_MMSGHDR LTP_CHECK_UNAME_DOMAINNAME +LTP_CHECK_PERSONALITY AC_OUTPUT
include/lapi/personality.h new file +48 -0
48 lines not on this page · raw message
include/tst_personality.h new file +28 -0
@@ -0,0 +1,28 @@ +/* +* Copyright (c) 2017 Richard Palethorpe <[email protected]> +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef TST_PERSONALITY__ +#define TST_PERSONALITY__ + +#include "lapi/personality.h" + +int tst_personality (const char *filename,unsigned int lineno, +unsigned long persona); + +#define SAFE_PERSONALITY (persona) tst_personality(__FILE__, __LINE__, persona) + +#endif
lib/tst_personality.c new file +33 -0
@@ -0,0 +1,33 @@ +/* +* Copyright (c) 2017 Richard Palethorpe <[email protected]> +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#define TST_NO_DEFAULT_MAIN +#include "tst_test.h" +#include "tst_personality.h" + +int tst_personality (const char *filename,unsigned int lineno, +unsigned long persona) +{ +int prev_persona =personality (persona); + +if (prev_persona <0 ) { +tst_brk_ (filename, lineno,TBROK |TERRNO , +"persona(%ld) failed" , persona); + } + +return prev_persona; +}
m4/ltp-personality.m4 new file +24 -0
@@ -0,0 +1,24 @@ +dnl Copyright (c) 2017 Richard Palethorpe <[email protected]> +dnl +dnl This program is free software; you can redistribute it and/or modify +dnl it under the terms of the GNU General Public License as published by +dnl the Free Software Foundation; either version 2 of the License, or +dnl (at your option) any later version. +dnl +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY; without even the implied warranty of +dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +dnl the GNU General Public License for more details. +dnl +dnl You should have received a copy of the GNU General Public License +dnl along with this program. If not, see <http://www.gnu.org/licenses/>. + +AC_DEFUN([LTP_CHECK_PERSONALITY],[ +AC_CHECK_DECLS([UNAME26,READ_IMPLIES_EXEC,PER_LINUX],,,[ +#if defined(HAVE_SYS_PERSONALITY_H) +#include <sys/personality.h> +#elif defined(HAVE_LINUX_PERSONALITY_H) +#include <linux/personality.h> +#endif +]) +])
Signature · 1 line
2.13.2
PATCH v2 2/3 CVE-2012-0957: Use SAFE_PERSONALITY
--- testcases/cve/cve-2012-0957.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
testcases/cve/cve-2012-0957.c +2 -6
@@ -26,10 +26,8 @@#include <string.h> #include <sys/utsname.h> -#include <sys/personality.h> #include "tst_test.h" - -#define UNAME26 0x0020000 +#include "tst_personality.h" static int check_field (char *bytes,size_t length,char *field) {
@@ -75,9 +73,7 @@ static void run(unsigned int test_nr)tst_res (TINFO ,"Calling uname with default personality" );try_leak_bytes (); }else { -if (personality (PER_LINUX |UNAME26 ) <0 ) -tst_brk (TCONF |TERRNO , -"Could not change personality to UNAME26" ); +SAFE_PERSONALITY (PER_LINUX |UNAME26 );tst_res (TINFO ,"Calling uname with UNAME26 personality" );try_leak_bytes (); }
Signature · 1 line
2.13.2
PATCH v2 3/3 Test for CVE-2016-10044 mark AIO pseudo-fs noexec
In reply to Richard Palethorpe--- runtest/cve | 1 + testcases/cve/.gitignore | 1 + testcases/cve/cve-2016-10044.c | 77 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 testcases/cve/cve-2016-10044.c
runtest/cve +1 -0
@@ -4,6 +4,7 @@ cve-2014-0196 cve-2014-0196 cve-2016-4997 cve-2016-4997 cve-2016-5195 dirtyc0w cve-2016-7117 cve-2016-7117 +cve-2016-10044 cve-2016-10044 cve-2017-2671 cve-2017-2671 cve-2017-5669 cve-2017-5669 cve-2017-6951 cve-2017-6951
testcases/cve/.gitignore +1 -0
@@ -2,6 +2,7 @@ cve-2012-0957 cve-2014-0196 cve-2016-4997 cve-2016-7117 +cve-2016-10044 cve-2017-2671 cve-2017-5669 cve-2017-6951
testcases/cve/cve-2016-10044.c new file +77 -0
77 lines not on this page · raw message
Signature · 1 line
2.13.2
PATCH v2 1/3 lib: Add personality fallback and SAFE macro
In reply to Richard PalethorpeLooks like I missed some stuff here.
Quoted 16 lines · Richard Palethorpe
include/lapi/personality.h new file +10
-0@@ -0,0 +1,48 @@ +/* +* Copyright (c) 2017 Richard Palethorpe <[email protected]> +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of
include/lapi/personality.h line 20
Quoted 10 lines
include/lapi/personality.h new file +10
-0+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ +/* In the Linux kernel and glibc enums are (mostly) used for the constants, +* but in musl macros are used. +*/ +
Needs define PERSONALITY_H...
Quoted 7 lines
include/lapi/personality.h new file +7
-0+#include "config.h" + +#if defined(HAVE_SYS_PERSONALITY_H ) +#include <sys/personality.h> +#elif defined(HAVE_LINUX_PERSONALITY_H ) +#include <linux/personality.h> +#endif
include/lapi/personality.h line 37
Quoted 10 lines
include/lapi/personality.h new file +10
-0+ +#ifndef HAVE_SYS_PERSONALITY_H +#include "linux_syscall_numbers.h" + +static int personality (unsigned long persona) +{ +return tst_syscall (__NR_personality, persona); +} +#endif +
Oops, linux_syscall_numbers.h is not available to the LTP library. I am wondering if we can just add it to the include path?
Signature · 2 lines
Thank you, Richard.
PATCH v2 1/3 lib: Add personality fallback and SAFE macro
Hi!
Quoted 12 lines
Quoted 12 lines
include/lapi/personality.h new file +12
-0+#include "config.h" + +#if defined(HAVE_SYS_PERSONALITY_H ) +#include <sys/personality.h> +#elif defined(HAVE_LINUX_PERSONALITY_H ) +#include <linux/personality.h> +#endif + +#ifndef HAVE_SYS_PERSONALITY_H +#include "linux_syscall_numbers.h" + +static int personality (unsigned long persona)
Quoted 8 lines
include/lapi/personality.h line 37
Quoted 5 lines
include/lapi/personality.h new file +5
-0+{ +return tst_syscall (__NR_personality, persona); +} +#endif +Oops,
linux_syscall_numbers.his not available to the LTP library. I am wondering if we can just add it to the include path?
I was wondering the same. But we would have to tweek the build system.
See include/mk/testcases.mk that makes every test depend on the header.
We also have special rule to make lib/ first if we start the build from the top level Makefile.
And lastly but not least recenlty we started to run the regen.sh script from the configure script to avoid races on parallel build.
If code in lib/ makes use of that header we have to make sure that the header is create before we start building the lib.
And given that the header is not removed on make clean we may as well remove all the dependencies from makefiles and depend on configure script to create it. And possibly move the whole thing somewhere into include/lapi/ so that we can drop one of the -I directives and maybe rename the hader to something shorther, maybe lapi/syscalls.h or something.
Signature · 2 lines
Cyril Hrubis [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
RFC PATCH 2/3 Rename linux_syscall_numbers.h to lapi/syscalls.h
--- configure.ac | 3 +-- doc/style-guide.txt | 2 +- include/lapi/.gitignore | 1 + include/lapi/fallocate.h | 2 +- include/lapi/mkdirat.h | 2 +- include/lapi/personality.h | 2 +- include/lapi/readlinkat.h | 2 +- include/lapi/renameat.h | 2 +- include/lapi/sched.h | 2 +- include/lapi/splice.h | 2 +- include/lapi/syscalls/regen.sh | 8 ++++---- include/lapi/tee.h | 2 +- include/lapi/timerfd.h | 2 +- include/lapi/vmsplice.h | 2 +- testcases/cve/cve-2016-10044.c | 2 +- testcases/cve/cve-2016-7117.c | 2 +- testcases/cve/cve-2017-6951.c | 2 +- testcases/kernel/containers/libclone/libclone.h | 2 +- testcases/kernel/containers/mqns/mqns_helper.h | 2 +- testcases/kernel/containers/netns/netns_helper.h | 2 +- testcases/kernel/containers/pidns/pidns30.c | 2 +- testcases/kernel/containers/pidns/pidns31.c | 2 +- testcases/kernel/containers/share/ns_exec.c | 2 +- testcases/kernel/containers/share/setns_check.c | 2 +- testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c | 2 +- testcases/kernel/include/.gitignore | 1 - testcases/kernel/lib/numa_helper.c | 2 +- testcases/kernel/logging/kmsg/kmsg01.c | 2 +- testcases/kernel/module/delete_module/delete_module01.c | 2 +- testcases/kernel/module/delete_module/delete_module02.c | 2 +- testcases/kernel/module/delete_module/delete_module03.c | 2 +- testcases/kernel/syscalls/accept4/accept4_01.c | 2 +- testcases/kernel/syscalls/add_key/add_key01.c | 2 +- testcases/kernel/syscalls/add_key/add_key02.c | 2 +- testcases/kernel/syscalls/bdflush/bdflush01.c | 2 +- testcases/kernel/syscalls/cacheflush/cacheflush01.c | 2 +- testcases/kernel/syscalls/capget/capget01.c | 2 +- testcases/kernel/syscalls/capget/capget02.c | 2 +- testcases/kernel/syscalls/capset/capset01.c | 2 +- testcases/kernel/syscalls/capset/capset02.c | 2 +- testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c | 2 +- testcases/kernel/syscalls/clock_nanosleep2/clock_nanosleep2_01.c | 2 +- testcases/kernel/syscalls/clone/clone08.c | 2 +- testcases/kernel/syscalls/clone/clone09.c | 2 +- testcases/kernel/syscalls/copy_file_range/copy_file_range01.c | 2 +- testcases/kernel/syscalls/dup3/dup3_01.c | 2 +- testcases/kernel/syscalls/dup3/dup3_02.c | 2 +- testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c | 2 +- testcases/kernel/syscalls/epoll_pwait/epoll_pwait.h | 2 +- testcases/kernel/syscalls/eventfd/eventfd01.c | 2 +- testcases/kernel/syscalls/eventfd2/eventfd2_01.c | 2 +- testcases/kernel/syscalls/eventfd2/eventfd2_02.c | 2 +- testcases/kernel/syscalls/eventfd2/eventfd2_03.c | 2 +- testcases/kernel/syscalls/exit_group/exit_group01.c | 2 +- testcases/kernel/syscalls/faccessat/faccessat01.c | 2 +- testcases/kernel/syscalls/fadvise/posix_fadvise01.c | 2 +- testcases/kernel/syscalls/fadvise/posix_fadvise02.c | 2 +- testcases/kernel/syscalls/fadvise/posix_fadvise03.c | 2 +- testcases/kernel/syscalls/fadvise/posix_fadvise04.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify.h | 2 +- testcases/kernel/syscalls/fanotify/fanotify01.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify02.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify03.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify04.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify05.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify06.c | 2 +- testcases/kernel/syscalls/fanotify/fanotify07.c | 2 +- testcases/kernel/syscalls/fchmodat/fchmodat01.c | 2 +- testcases/kernel/syscalls/fchownat/fchownat.h | 2 +- testcases/kernel/syscalls/fcntl/fcntl31.c | 2 +- testcases/kernel/syscalls/fstatat/fstatat01.c | 2 +- testcases/kernel/syscalls/futimesat/futimesat01.c | 2 +- testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c | 2 +- testcases/kernel/syscalls/get_robust_list/get_robust_list01.c | 2 +- testcases/kernel/syscalls/getdents/getdents.h | 2 +- testcases/kernel/syscalls/getrandom/getrandom01.c | 2 +- testcases/kernel/syscalls/getrandom/getrandom02.c | 2 +- testcases/kernel/syscalls/getrandom/getrandom03.c | 2 +- testcases/kernel/syscalls/getrandom/getrandom04.c | 2 +- testcases/kernel/syscalls/inotify/inotify01.c | 2 +- testcases/kernel/syscalls/inotify/inotify02.c | 2 +- testcases/kernel/syscalls/inotify/inotify03.c | 2 +- testcases/kernel/syscalls/inotify/inotify04.c | 2 +- testcases/kernel/syscalls/inotify/inotify05.c | 2 +- testcases/kernel/syscalls/inotify/inotify06.c | 2 +- testcases/kernel/syscalls/inotify_init/inotify_init1_01.c | 2 +- testcases/kernel/syscalls/inotify_init/inotify_init1_02.c | 2 +- testcases/kernel/syscalls/kcmp/kcmp.h | 2 +- testcases/kernel/syscalls/keyctl/keyctl01.c | 2 +- testcases/kernel/syscalls/linkat/linkat01.c | 2 +- testcases/kernel/syscalls/linkat/linkat02.c | 2 +- testcases/kernel/syscalls/mbind/mbind01.c | 2 +- testcases/kernel/syscalls/memfd_create/memfd_create_common.c | 2 +- testcases/kernel/syscalls/migrate_pages/migrate_pages01.c | 2 +- testcases/kernel/syscalls/migrate_pages/migrate_pages02.c | 2 +- testcases/kernel/syscalls/mknodat/mknodat.h | 2 +- testcases/kernel/syscalls/newuname/newuname01.c | 2 +- testcases/kernel/syscalls/openat/openat.h | 2 +- testcases/kernel/syscalls/perf_event_open/perf_event_open01.c | 2 +- testcases/kernel/syscalls/perf_event_open/perf_event_open02.c | 2 +- testcases/kernel/syscalls/pipe2/pipe2_01.c | 2 +- testcases/kernel/syscalls/pipe2/pipe2_02.c | 2 +- testcases/kernel/syscalls/ppoll/ppoll01.c | 2 +- testcases/kernel/syscalls/preadv/preadv.h | 2 +- testcases/kernel/syscalls/pwritev/pwritev.h | 2 +- testcases/kernel/syscalls/readahead/readahead01.c | 2 +- testcases/kernel/syscalls/readahead/readahead02.c | 2 +- testcases/kernel/syscalls/readdir/readdir21.c | 2 +- testcases/kernel/syscalls/readlinkat/readlinkat02.c | 2 +- testcases/kernel/syscalls/renameat2/renameat2.h | 2 +- testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c | 2 +- testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c | 2 +- testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c | 2 +- testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c | 2 +- testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c | 2 +- testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c | 2 +- testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c | 2 +- testcases/kernel/syscalls/sched_getaffinity/sched_getaffinity01.c | 2 +- testcases/kernel/syscalls/sched_getattr/sched_getattr01.c | 2 +- testcases/kernel/syscalls/sched_getattr/sched_getattr02.c | 2 +- testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c | 2 +- testcases/kernel/syscalls/set_thread_area/set_thread_area.h | 2 +- testcases/kernel/syscalls/set_tid_address/set_tid_address01.c | 2 +- testcases/kernel/syscalls/setns/setns01.c | 2 +- testcases/kernel/syscalls/setns/setns02.c | 2 +- testcases/kernel/syscalls/sgetmask/sgetmask01.c | 2 +- testcases/kernel/syscalls/signal/signal06.c | 2 +- testcases/kernel/syscalls/signalfd/signalfd01.c | 2 +- testcases/kernel/syscalls/signalfd4/signalfd4_01.c | 2 +- testcases/kernel/syscalls/signalfd4/signalfd4_02.c | 2 +- testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c | 2 +- testcases/kernel/syscalls/ssetmask/ssetmask01.c | 2 +- testcases/kernel/syscalls/swapoff/swapoff01.c | 2 +- testcases/kernel/syscalls/swapoff/swapoff02.c | 2 +- testcases/kernel/syscalls/swapon/swapon01.c | 2 +- testcases/kernel/syscalls/swapon/swapon02.c | 2 +- testcases/kernel/syscalls/swapon/swapon03.c | 2 +- testcases/kernel/syscalls/switch/endian_switch01.c | 2 +- testcases/kernel/syscalls/symlinkat/symlinkat01.c | 2 +- testcases/kernel/syscalls/sync_file_range/sync_file_range01.c | 2 +- testcases/kernel/syscalls/syscall/syscall01.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs01.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs02.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs03.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs04.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs05.c | 2 +- testcases/kernel/syscalls/sysfs/sysfs06.c | 2 +- testcases/kernel/syscalls/tee/tee01.c | 2 +- testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c | 2 +- testcases/kernel/syscalls/timer_gettime/timer_gettime01.c | 2 +- testcases/kernel/syscalls/timerfd/timerfd01.c | 2 +- testcases/kernel/syscalls/timerfd/timerfd02.c | 2 +- testcases/kernel/syscalls/timerfd/timerfd03.c | 2 +- testcases/kernel/syscalls/tkill/tkill01.c | 2 +- testcases/kernel/syscalls/tkill/tkill02.c | 2 +- testcases/kernel/syscalls/unlinkat/unlinkat01.c | 2 +- testcases/kernel/syscalls/utils/compat_16.h | 2 +- testcases/kernel/syscalls/utimensat/utimensat01.c | 2 +- testcases/kernel/syscalls/utimes/utimes01.c | 2 +- testcases/kernel/syscalls/vmsplice/vmsplice01.c | 2 +- testcases/kernel/syscalls/vmsplice/vmsplice02.c | 2 +- testcases/kernel/syscalls/waitid/waitid02.c | 2 +- testcases/kernel/timers/include/common_timers.h | 4 ++-- 163 files changed, 166 insertions(+), 167 deletions(-) create mode 100644 include/lapi/.gitignore delete mode 100644 testcases/kernel/include/.gitignore
configure.ac +1 -2
@@ -134,8 +134,7 @@ fi AC_CONFIG_SUBDIRS([utils/ffsb-6.0-rc2]) -AC_CONFIG_COMMANDS([linux_syscall_headers.h], - [cd testcases/kernel/include; ./regen.sh]) +AC_CONFIG_COMMANDS([syscalls.h], [cd include/lapi/syscalls; ./regen.sh]) # END testsuites knobs LTP_CHECK_FORTIFY_SOURCE
doc/style-guide.txt +1 -1
@@ -109,7 +109,7 @@ the testcase occurred. 8. Don't roll your own syscall numbers ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Header +linux_syscall_numbers.h+ exists for this purpose and does a pretty +Header +lapi/syscalls.h+ exists for this purpose and does a pretty dang good job. 9. Keep errors as short and sweet as possible
include/lapi/.gitignore new file +1 -0
@@ -0,0 +1 @@ +syscalls.h
include/lapi/fallocate.h +1 -1
@@ -22,7 +22,7 @@#include "config.h" #include "lapi/abisize.h" #include "lapi/seek.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef FALLOC_FL_KEEP_SIZE # define FALLOC_FL_KEEP_SIZE 0x01
include/lapi/mkdirat.h +1 -1
@@ -20,7 +20,7 @@#define __MKDIRAT_H__#include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/fcntl.h" #ifndef HAVE_MKDIRAT
include/lapi/personality.h +1 -1
@@ -30,7 +30,7 @@#endif #ifndef HAVE_SYS_PERSONALITY_H -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static int personality (unsigned long persona) {
include/lapi/readlinkat.h +1 -1
@@ -20,7 +20,7 @@#define __READLINKAT_H__#include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/fcntl.h" #ifndef HAVE_READLINKAT
include/lapi/renameat.h +1 -1
@@ -22,7 +22,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_RENAMEAT ) int renameat(int olddirfd, const char *oldpath, int newdirfd,
include/lapi/sched.h +1 -1
@@ -19,7 +19,7 @@#ifndef __SCHED_H__#define __SCHED_H__ -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include <stdint.h> #include <inttypes.h>
include/lapi/splice.h +1 -1
@@ -22,7 +22,7 @@#define SPLICE_H #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_SPLICE ) ssize_t splice(int fd_in, loff_t *off_in, int fd_out,
include/lapi/syscalls/regen.sh +4 -4
@@ -1,6 +1,6 @@ #!/bin/sh -output="linux_syscall_numbers.h" +output="syscalls.h" rm -f "${output}".[1-9]* output_pid="${output}.$$"
@@ -27,8 +27,8 @@ cat << EOF > "${output_pid}" * Licensed under the GPLv2 or later, see the COPYING file. */ -#ifndef __LINUX_SYSCALL_NUMBERS_H__ -#define __LINUX_SYSCALL_NUMBERS_H__ +#ifndef __LAPI_SYSCALLS_H__ +#define __LAPI_SYSCALLS_H__ #include <errno.h> #include <sys/syscall.h>
@@ -123,6 +123,6 @@ printf "Combining them all ... " for arch in $(cat "${srcdir}/order") _footer ; do cat "${output_pid}.${arch}" done >> "${output_pid}" -mv "${output_pid}" "${output}" +mv "${output_pid}" "../${output}" rm -f "${output_pid}"* echo "OK!"
include/lapi/tee.h +1 -1
@@ -21,7 +21,7 @@#define TEE_H #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_TEE )ssize_t tee (int fd_in,int fd_out,size_t len,unsigned int flags)
include/lapi/timerfd.h +1 -1
@@ -20,7 +20,7 @@#include <time.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifdef HAVE_SYS_TIMERFD_H #include <sys/timerfd.h>
include/lapi/vmsplice.h +1 -1
@@ -22,7 +22,7 @@#define VMSPLICE_H #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/iovec.h"
testcases/cve/cve-2016-10044.c +1 -1
@@ -26,7 +26,7 @@#include <stdio.h> #include <stdint.h> #include <string.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_test.h" #include "tst_personality.h" #include "tst_safe_stdio.h"
testcases/cve/cve-2016-7117.c +1 -1
@@ -56,7 +56,7 @@#include "tst_fuzzy_sync.h" /* The bug was present in the kernel before recvmmsg was exposed by glibc */ -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "config.h"
testcases/cve/cve-2017-6951.c +1 -1
@@ -26,7 +26,7 @@#include <sys/syscall.h> #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define ATTEMPTS 0x100
testcases/kernel/containers/libclone/libclone.h +1 -1
@@ -26,7 +26,7 @@#include <libgen.h> #include <sys/syscall.h> #include <signal.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "test.h" #include "lapi/namespaces_constants.h"
testcases/kernel/containers/mqns/mqns_helper.h +1 -1
@@ -21,7 +21,7 @@#include <sys/types.h> #include <mqueue.h> #include "../libclone/libclone.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "test.h"
testcases/kernel/containers/netns/netns_helper.h +1 -1
@@ -24,7 +24,7 @@#include <sched.h> #include "config.h" #include "libclone.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "test.h" #include "safe_macros.h"
testcases/kernel/containers/pidns/pidns30.c +1 -1
@@ -51,7 +51,7 @@#include <unistd.h> #include <stdio.h> #include <mqueue.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "pidns_helper.h" #include "test.h"
testcases/kernel/containers/pidns/pidns31.c +1 -1
@@ -53,7 +53,7 @@#include <unistd.h> #include <stdio.h> #include <mqueue.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "pidns_helper.h" #include "test.h"
testcases/kernel/containers/share/ns_exec.c +1 -1
@@ -30,7 +30,7 @@#include <string.h> #include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/namespaces_constants.h" #include "ns_common.h"
testcases/kernel/containers/share/setns_check.c +1 -1
@@ -19,7 +19,7 @@*/ #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="setns_check" ;
testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c +1 -1
@@ -48,7 +48,7 @@#include "cpuset.h" #include "common.h" #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "config.h" #if HAVE_LINUX_MEMPOLICY_H #include <linux/mempolicy.h>
testcases/kernel/include/.gitignore deleted +0 -1
@@ -1 +0,0 @@ -linux_syscall_numbers.h
testcases/kernel/lib/numa_helper.c +1 -1
@@ -34,7 +34,7 @@#include "test.h" #include "safe_macros.h" #include "numa_helper.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" unsigned long get_max_node (void ) {
testcases/kernel/logging/kmsg/kmsg01.c +1 -1
@@ -44,7 +44,7 @@#include <unistd.h> #include "config.h" #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define MSG_PREFIX "LTP kmsg01 "#define MAX_MSGSIZE 4096
testcases/kernel/module/delete_module/delete_module01.c +1 -1
@@ -28,7 +28,7 @@#include "test.h" #include "old_module.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define MODULE_NAME "dummy_del_mod"#define MODULE_NAME_KO "dummy_del_mod.ko"
testcases/kernel/module/delete_module/delete_module02.c +1 -1
@@ -42,7 +42,7 @@#include <sys/mman.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define NULLMODNAME ""#define BASEMODNAME "dummy"
testcases/kernel/module/delete_module/delete_module03.c +1 -1
@@ -28,7 +28,7 @@#include "test.h" #include "old_module.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define DUMMY_MOD "dummy_del_mod"#define DUMMY_MOD_KO "dummy_del_mod.ko"
testcases/kernel/syscalls/accept4/accept4_01.c +1 -1
@@ -33,7 +33,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define PORT_NUM 33333
testcases/kernel/syscalls/add_key/add_key01.c +1 -1
@@ -29,7 +29,7 @@# include <linux/keyctl.h> #endif #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void verify_add_key (void ) {
testcases/kernel/syscalls/add_key/add_key02.c +1 -1
@@ -37,7 +37,7 @@# include <linux/keyctl.h> #endif #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifdef HAVE_LINUX_KEYCTL_H struct tcase {
testcases/kernel/syscalls/bdflush/bdflush01.c +1 -1
@@ -83,7 +83,7 @@#include <sys/stat.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="bdflush01" ;int testno;
testcases/kernel/syscalls/cacheflush/cacheflush01.c +1 -1
@@ -45,7 +45,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if __NR_cacheflush != __LTP__NR_INVALID_SYSCALL#include <asm/cachectl.h>
testcases/kernel/syscalls/capget/capget01.c +1 -1
@@ -65,7 +65,7 @@#include <errno.h> #include <unistd.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include <linux/capability.h>
testcases/kernel/syscalls/capget/capget02.c +1 -1
@@ -74,7 +74,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" /**************************************************************************/ /* */
testcases/kernel/syscalls/capset/capset01.c +1 -1
@@ -69,7 +69,7 @@#include <unistd.h> #include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" /**************************************************************************/ /* */
testcases/kernel/syscalls/capset/capset02.c +1 -1
@@ -81,7 +81,7 @@#include <string.h> #include <unistd.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" /**************************************************************************/ /* */
testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c +1 -1
@@ -22,7 +22,7 @@#include <limits.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_sig_proc.h" #include "tst_timer.h" #include "tst_test.h"
testcases/kernel/syscalls/clock_nanosleep2/clock_nanosleep2_01.c +1 -1
@@ -26,7 +26,7 @@#include <sys/syscall.h> #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define NSEC_IN_SEC 1000000000
testcases/kernel/syscalls/clone/clone08.c +1 -1
@@ -25,7 +25,7 @@#include "tst_test.h" #include "clone_platform.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static pid_t ptid, ctid, tgid;static void *child_stack;
testcases/kernel/syscalls/clone/clone09.c +1 -1
@@ -22,7 +22,7 @@#include "tst_test.h" #include "clone_platform.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/namespaces_constants.h" static void *child_stack;
testcases/kernel/syscalls/copy_file_range/copy_file_range01.c +1 -1
@@ -17,7 +17,7 @@#include <errno.h> #include "tst_test.h" #include "tst_safe_stdio.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_FILE_1 "copy_file_range_ltp01.txt"#define TEST_FILE_2 "copy_file_range_ltp02.txt"
testcases/kernel/syscalls/dup3/dup3_01.c +1 -1
@@ -60,7 +60,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="dup3_01" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/dup3/dup3_02.c +1 -1
@@ -35,7 +35,7 @@#include "test.h" #include "safe_macros.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup (void );
testcases/kernel/syscalls/epoll_create1/epoll_create1_01.c +1 -1
@@ -32,7 +32,7 @@#include <sys/epoll.h> #include "tst_test.h" #include "lapi/epoll.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void verify_epoll_create1 (void ) {
testcases/kernel/syscalls/epoll_pwait/epoll_pwait.h +1 -1
@@ -22,7 +22,7 @@#include <sys/types.h> #include <signal.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_EPOLL_PWAIT ) int epoll_pwait(int epfd, struct epoll_event *events, int maxevents,
testcases/kernel/syscalls/eventfd/eventfd01.c +1 -1
@@ -59,7 +59,7 @@#include "test.h" #define CLEANUP cleanup -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifdef HAVE_LIBAIO_H #include <libaio.h>
testcases/kernel/syscalls/eventfd2/eventfd2_01.c +1 -1
@@ -61,7 +61,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define EFD_CLOEXEC O_CLOEXEC
testcases/kernel/syscalls/eventfd2/eventfd2_02.c +1 -1
@@ -58,7 +58,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define EFD_NONBLOCK O_NONBLOCK
testcases/kernel/syscalls/eventfd2/eventfd2_03.c +1 -1
@@ -36,7 +36,7 @@#include <inttypes.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="eventfd2_03" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/exit_group/exit_group01.c +1 -1
@@ -25,7 +25,7 @@#include <sys/wait.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="exit_group01" ;int testno;
testcases/kernel/syscalls/faccessat/faccessat01.c +1 -1
@@ -43,7 +43,7 @@#include <signal.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_CASES 6#ifndef AT_FDCWD
testcases/kernel/syscalls/fadvise/posix_fadvise01.c +1 -1
@@ -43,7 +43,7 @@#include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef _FILE_OFFSET_BITS#define _FILE_OFFSET_BITS 32#endif
testcases/kernel/syscalls/fadvise/posix_fadvise02.c +1 -1
@@ -41,7 +41,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef _FILE_OFFSET_BITS#define _FILE_OFFSET_BITS 32#endif
testcases/kernel/syscalls/fadvise/posix_fadvise03.c +1 -1
@@ -42,7 +42,7 @@#include <limits.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef _FILE_OFFSET_BITS#define _FILE_OFFSET_BITS 32#endif
testcases/kernel/syscalls/fadvise/posix_fadvise04.c +1 -1
@@ -40,7 +40,7 @@#include <signal.h> #include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef _FILE_OFFSET_BITS#define _FILE_OFFSET_BITS 32#endif
testcases/kernel/syscalls/fanotify/fanotify.h +1 -1
@@ -39,7 +39,7 @@/* fanotify(7) wrappers */ #include <stdint.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static int fanotify_init (unsigned int flags,unsigned int event_f_flags) {
testcases/kernel/syscalls/fanotify/fanotify01.c +1 -1
@@ -36,7 +36,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify02.c +1 -1
@@ -36,7 +36,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify03.c +1 -1
@@ -39,7 +39,7 @@#include <signal.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify04.c +1 -1
@@ -37,7 +37,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify05.c +1 -1
@@ -35,7 +35,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify06.c +1 -1
@@ -45,7 +45,7 @@#include <sys/mount.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/fanotify/fanotify07.c +1 -1
@@ -47,7 +47,7 @@#include <signal.h> #include <sys/syscall.h> #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "fanotify.h" #if defined(HAVE_SYS_FANOTIFY_H )
testcases/kernel/syscalls/fchmodat/fchmodat01.c +1 -1
@@ -43,7 +43,7 @@#include <signal.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_CASES 6#ifndef AT_FDCWD
testcases/kernel/syscalls/fchownat/fchownat.h +1 -1
@@ -22,7 +22,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_FCHOWNAT )
testcases/kernel/syscalls/fcntl/fcntl31.c +1 -1
@@ -35,7 +35,7 @@#include "test.h" #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "lapi/fcntl.h"
testcases/kernel/syscalls/fstatat/fstatat01.c +1 -1
@@ -35,7 +35,7 @@#include "config.h" #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_CASES 6#ifndef AT_FDCWD
testcases/kernel/syscalls/futimesat/futimesat01.c +1 -1
@@ -34,7 +34,7 @@#include <signal.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_CASES 5#ifndef AT_FDCWD
testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c +1 -1
@@ -58,7 +58,7 @@#include <numaif.h> #endif #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "include_j_h.h" #include "common_j_h.c" #include "numa_helper.h"
testcases/kernel/syscalls/get_robust_list/get_robust_list01.c +1 -1
@@ -51,7 +51,7 @@#include <stdlib.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="get_robust_list01" ;int TST_TOTAL =5 ;
testcases/kernel/syscalls/getdents/getdents.h +1 -1
@@ -22,7 +22,7 @@#include <stdint.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" /* * See fs/compat.c struct compat_linux_dirent
testcases/kernel/syscalls/getrandom/getrandom01.c +1 -1
@@ -27,7 +27,7 @@*/ #include "lapi/getrandom.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_test.h" static int modes[] = {0 ,GRND_RANDOM ,GRND_NONBLOCK ,
testcases/kernel/syscalls/getrandom/getrandom02.c +1 -1
@@ -28,7 +28,7 @@*/ #include "lapi/getrandom.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_test.h" static int modes[] = {0 ,GRND_RANDOM ,GRND_NONBLOCK ,
testcases/kernel/syscalls/getrandom/getrandom03.c +1 -1
@@ -31,7 +31,7 @@*/ #include "lapi/getrandom.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_test.h" #define MAX_SIZE 256
testcases/kernel/syscalls/getrandom/getrandom04.c +1 -1
@@ -32,7 +32,7 @@#include <sys/resource.h> #include "lapi/getrandom.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "tst_test.h" static void verify_getrandom (void )
testcases/kernel/syscalls/inotify/inotify01.c +1 -1
@@ -38,7 +38,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" #if defined(HAVE_SYS_INOTIFY_H )
testcases/kernel/syscalls/inotify/inotify02.c +1 -1
@@ -40,7 +40,7 @@#include <sys/syscall.h> #include <limits.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" #if defined(HAVE_SYS_INOTIFY_H )
testcases/kernel/syscalls/inotify/inotify03.c +1 -1
@@ -42,7 +42,7 @@#include <sys/syscall.h> #include <signal.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" char *TCID ="inotify03" ;
testcases/kernel/syscalls/inotify/inotify04.c +1 -1
@@ -45,7 +45,7 @@#include <errno.h> #include <string.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/inotify/inotify05.c +1 -1
@@ -35,7 +35,7 @@#include <string.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/inotify/inotify06.c +1 -1
@@ -42,7 +42,7 @@#include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "inotify.h" #include "safe_macros.h"
testcases/kernel/syscalls/inotify_init/inotify_init1_01.c +1 -1
@@ -61,7 +61,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define IN_CLOEXEC O_CLOEXEC
testcases/kernel/syscalls/inotify_init/inotify_init1_02.c +1 -1
@@ -58,7 +58,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define IN_NONBLOCK O_NONBLOCK
testcases/kernel/syscalls/kcmp/kcmp.h +1 -1
@@ -21,7 +21,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_ENUM_KCMP_TYPE )
testcases/kernel/syscalls/keyctl/keyctl01.c +1 -1
@@ -35,7 +35,7 @@#endif #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="keyctl01" ;int testno;
testcases/kernel/syscalls/linkat/linkat01.c +1 -1
@@ -56,7 +56,7 @@#include <inttypes.h> #include <limits.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #ifndef AT_FDCWD
testcases/kernel/syscalls/linkat/linkat02.c +1 -1
@@ -31,7 +31,7 @@#include <sys/mount.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "lapi/fcntl.h"
testcases/kernel/syscalls/mbind/mbind01.c +1 -1
@@ -60,7 +60,7 @@#include <unistd.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "include_j_h.h" #include "numa_helper.h"
testcases/kernel/syscalls/memfd_create/memfd_create_common.c +1 -1
@@ -30,7 +30,7 @@#include "lapi/fcntl.h" #include "lapi/memfd.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "memfd_create_common.h"
testcases/kernel/syscalls/migrate_pages/migrate_pages01.c +1 -1
@@ -44,7 +44,7 @@#include "config.h" #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "numa_helper.h" #include "migrate_pages_common.h"
testcases/kernel/syscalls/migrate_pages/migrate_pages02.c +1 -1
@@ -48,7 +48,7 @@#include "config.h" #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "numa_helper.h" #include "migrate_pages_common.h"
testcases/kernel/syscalls/mknodat/mknodat.h +1 -1
@@ -22,7 +22,7 @@#define MKNODAT_H #include <sys/types.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_MKNODAT )int mknodat (int dirfd,const char *filename,mode_t mode,dev_t dev)
testcases/kernel/syscalls/newuname/newuname01.c +1 -1
@@ -45,7 +45,7 @@#include <stdlib.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="newuname01" ;int testno;
testcases/kernel/syscalls/openat/openat.h +1 -1
@@ -23,7 +23,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_OPENAT )int openat (int dirfd,const char *pathname,int flags,mode_t mode)
testcases/kernel/syscalls/perf_event_open/perf_event_open01.c +1 -1
@@ -43,7 +43,7 @@#endif #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" char *TCID ="perf_event_open01" ;
testcases/kernel/syscalls/perf_event_open/perf_event_open02.c +1 -1
@@ -71,7 +71,7 @@ The -v flag makes it print out the values of each counter.#include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="perf_event_open02" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/pipe2/pipe2_01.c +1 -1
@@ -69,7 +69,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="pipe2_01" ;int testno;
testcases/kernel/syscalls/pipe2/pipe2_02.c +1 -1
@@ -60,7 +60,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="pipe2_02" ;int testno;
testcases/kernel/syscalls/ppoll/ppoll01.c +1 -1
@@ -26,7 +26,7 @@#include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "ltp_signal.h" #include "tst_sig_proc.h" #include "tst_test.h"
testcases/kernel/syscalls/preadv/preadv.h +1 -1
@@ -19,7 +19,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_PREADV )int preadv (int fd,const struct iovec *iov,int iovcnt,off_t offset)
testcases/kernel/syscalls/pwritev/pwritev.h +1 -1
@@ -19,7 +19,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_PWRITEV )int pwritev (int fd,const struct iovec *iov,int iovcnt,off_t offset)
testcases/kernel/syscalls/readahead/readahead01.c +1 -1
@@ -38,7 +38,7 @@#include "config.h" #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="readahead01" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/readahead/readahead02.c +1 -1
@@ -45,7 +45,7 @@#include "config.h" #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="readahead02" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/readdir/readdir21.c +1 -1
@@ -40,7 +40,7 @@#include <sys/mman.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/readdir.h" char *TCID ="readdir21" ;
testcases/kernel/syscalls/readlinkat/readlinkat02.c +1 -1
@@ -35,7 +35,7 @@#include "test.h" #include "safe_macros.h" #include "lapi/readlinkat.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_FILE "test_file"#define SYMLINK_FILE "symlink_file"
testcases/kernel/syscalls/renameat2/renameat2.h +1 -1
@@ -21,7 +21,7 @@#include <sys/types.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if !defined(HAVE_RENAMEAT2 ) int renameat2(int olddirfd, const char *oldpath, int newdirfd,
testcases/kernel/syscalls/rt_sigaction/rt_sigaction01.c +1 -1
@@ -37,7 +37,7 @@#include <string.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/rt_sigaction.h" char *TCID ="rt_sigaction01" ;
testcases/kernel/syscalls/rt_sigaction/rt_sigaction02.c +1 -1
@@ -33,7 +33,7 @@#include <string.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/rt_sigaction.h" char *TCID ="rt_sigaction02" ;
testcases/kernel/syscalls/rt_sigaction/rt_sigaction03.c +1 -1
@@ -33,7 +33,7 @@#include <string.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/rt_sigaction.h" #define INVAL_SIGSETSIZE -1
testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask01.c +1 -1
@@ -44,7 +44,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/rt_sigaction.h" char *TCID ="rt_sigprocmask01" ;
testcases/kernel/syscalls/rt_sigprocmask/rt_sigprocmask02.c +1 -1
@@ -56,7 +56,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "ltp_signal.h" char *TCID ="rt_sigprocmask02" ;
testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c +1 -1
@@ -49,7 +49,7 @@#include <string.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="rt_sigqueueinfo01" ;int testno;
testcases/kernel/syscalls/rt_sigsuspend/rt_sigsuspend01.c +1 -1
@@ -28,7 +28,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/rt_sigaction.h" char *TCID ="rt_sigsuspend01" ;
testcases/kernel/syscalls/sched_getaffinity/sched_getaffinity01.c +1 -1
@@ -50,7 +50,7 @@#include <unistd.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="sched_getaffinity01" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/sched_getattr/sched_getattr01.c +1 -1
@@ -26,7 +26,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/sched.h" char *TCID ="sched_getattr01" ;
testcases/kernel/syscalls/sched_getattr/sched_getattr02.c +1 -1
@@ -35,7 +35,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/sched.h" char *TCID ="sched_getattr02" ;
testcases/kernel/syscalls/sched_setaffinity/sched_setaffinity01.c +1 -1
@@ -41,7 +41,7 @@#include "test.h" #include "safe_macros.h" #include "sched_setaffinity.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="sched_setaffinity01" ;
testcases/kernel/syscalls/set_thread_area/set_thread_area.h +1 -1
@@ -3,7 +3,7 @@/* Harness Specific Include Files. */ #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "config.h" #if definedHAVE_ASM_LDT_H
testcases/kernel/syscalls/set_tid_address/set_tid_address01.c +1 -1
@@ -42,7 +42,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="set_tid_address01" ;int testno;
testcases/kernel/syscalls/setns/setns01.c +1 -1
@@ -34,7 +34,7 @@#include <string.h> #include "config.h" #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" char *TCID ="setns01" ;
testcases/kernel/syscalls/setns/setns02.c +1 -1
@@ -42,7 +42,7 @@#include <string.h> #include "config.h" #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #define CHILD_STACK_SIZE (1024*1024)
testcases/kernel/syscalls/sgetmask/sgetmask01.c +1 -1
@@ -53,7 +53,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="sgetmask01" ;int testno;
testcases/kernel/syscalls/signal/signal06.c +1 -1
@@ -48,7 +48,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="signal06" ;int TST_TOTAL =5 ;
testcases/kernel/syscalls/signalfd/signalfd01.c +1 -1
@@ -83,7 +83,7 @@ int main(int argc, char **argv) #else #if defined USE_OWNIMPL -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" int signalfd(int fd, const sigset_t * mask, int flags) { /* Taken from GLIBC. */
testcases/kernel/syscalls/signalfd4/signalfd4_01.c +1 -1
@@ -63,7 +63,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "ltp_signal.h" #define SFD_CLOEXEC O_CLOEXEC
testcases/kernel/syscalls/signalfd4/signalfd4_02.c +1 -1
@@ -58,7 +58,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "ltp_signal.h" #define SFD_NONBLOCK O_NONBLOCK
testcases/kernel/syscalls/sigwaitinfo/sigwaitinfo01.c +1 -1
@@ -26,7 +26,7 @@#include "../utils/include_j_h.h" #include "../utils/common_j_h.c" #include <limits.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define SUCCEED_OR_DIE (syscall, message, ...) \ (errno = 0, \
testcases/kernel/syscalls/ssetmask/ssetmask01.c +1 -1
@@ -44,7 +44,7 @@#include <signal.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="ssetmask01" ;int testno;
testcases/kernel/syscalls/swapoff/swapoff01.c +1 -1
@@ -24,7 +24,7 @@#include <errno.h> #include <stdlib.h> #include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup (void );static void cleanup (void );
testcases/kernel/syscalls/swapoff/swapoff02.c +1 -1
@@ -31,7 +31,7 @@#include <string.h> #include <stdlib.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" static void setup (void );
testcases/kernel/syscalls/swapon/swapon01.c +1 -1
@@ -23,7 +23,7 @@#include <errno.h> #include <stdlib.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "libswapon.h" static void setup (void );
testcases/kernel/syscalls/swapon/swapon02.c +1 -1
@@ -33,7 +33,7 @@#include <sys/utsname.h> #include <signal.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "libswapon.h"
testcases/kernel/syscalls/swapon/swapon03.c +1 -1
@@ -37,7 +37,7 @@#include <string.h> #include <signal.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "swaponoff.h" #include "libswapon.h"
testcases/kernel/syscalls/switch/endian_switch01.c +1 -1
@@ -51,7 +51,7 @@#include <fcntl.h> #include <sys/utsname.h> #include <unistd.h> -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #if defined (__powerpc64__) || (__powerpc__)static void setup ();
testcases/kernel/syscalls/symlinkat/symlinkat01.c +1 -1
@@ -43,7 +43,7 @@#include <signal.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define MYRETCODE -999#ifndef AT_FDCWD
testcases/kernel/syscalls/sync_file_range/sync_file_range01.c +1 -1
@@ -92,7 +92,7 @@#include <unistd.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef SYNC_FILE_RANGE_WAIT_BEFORE #define SYNC_FILE_RANGE_WAIT_BEFORE 1
testcases/kernel/syscalls/syscall/syscall01.c +1 -1
@@ -28,7 +28,7 @@#include <sys/types.h> #include "tst_test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void verify_getpid (void ) {
testcases/kernel/syscalls/sysfs/sysfs01.c +1 -1
@@ -70,7 +70,7 @@#include <unistd.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup ();static void cleanup ();
testcases/kernel/syscalls/sysfs/sysfs02.c +1 -1
@@ -68,7 +68,7 @@#include <unistd.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup ();static void cleanup ();
testcases/kernel/syscalls/sysfs/sysfs03.c +1 -1
@@ -68,7 +68,7 @@#include <unistd.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup ();static void cleanup ();
testcases/kernel/syscalls/sysfs/sysfs04.c +1 -1
@@ -71,7 +71,7 @@#include <errno.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define INVALID_OPTION 100static void setup ();
testcases/kernel/syscalls/sysfs/sysfs05.c +1 -1
@@ -72,7 +72,7 @@#include <errno.h> #include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup ();static void cleanup ();
testcases/kernel/syscalls/sysfs/sysfs06.c +1 -1
@@ -73,7 +73,7 @@#include <sys/syscall.h> #include <sys/mman.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" static void setup ();static void cleanup ();
testcases/kernel/syscalls/tee/tee01.c +1 -1
@@ -34,7 +34,7 @@#include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "lapi/fcntl.h" #include "lapi/tee.h"
testcases/kernel/syscalls/timer_getoverrun/timer_getoverrun01.c +1 -1
@@ -27,7 +27,7 @@#include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="timer_getoverrun01" ;int TST_TOTAL =1 ;
testcases/kernel/syscalls/timer_gettime/timer_gettime01.c +1 -1
@@ -27,7 +27,7 @@#include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="timer_gettime01" ;int TST_TOTAL =3 ;
testcases/kernel/syscalls/timerfd/timerfd01.c +1 -1
@@ -43,7 +43,7 @@#include <time.h> #include <errno.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define cleanup tst_exit
testcases/kernel/syscalls/timerfd/timerfd02.c +1 -1
@@ -63,7 +63,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TFD_CLOEXEC O_CLOEXEC
testcases/kernel/syscalls/timerfd/timerfd03.c +1 -1
@@ -59,7 +59,7 @@#include "test.h" #include "lapi/fcntl.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TFD_NONBLOCK O_NONBLOCK
testcases/kernel/syscalls/tkill/tkill01.c +1 -1
@@ -49,7 +49,7 @@#include <sys/types.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="tkill01" ;int testno;
testcases/kernel/syscalls/tkill/tkill02.c +1 -1
@@ -33,7 +33,7 @@#include <sys/syscall.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="tkill02" ;int testno;
testcases/kernel/syscalls/unlinkat/unlinkat01.c +1 -1
@@ -35,7 +35,7 @@#include <signal.h> #include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define TEST_CASES 7#ifndef AT_FDCWD
testcases/kernel/syscalls/utils/compat_16.h +1 -1
@@ -32,7 +32,7 @@#include "compat_gid.h" #include "compat_uid.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" int setresuid (uid_t ruid,uid_t euid,uid_t suid);int setresgid (gid_t rgid,gid_t egid,gid_t sgid);
testcases/kernel/syscalls/utimensat/utimensat01.c +1 -1
@@ -40,7 +40,7 @@#include <string.h> #include <sys/stat.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" char *TCID ="utimensat01" ;int TST_TOTAL =0 ;
testcases/kernel/syscalls/utimes/utimes01.c +1 -1
@@ -50,7 +50,7 @@#include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #define MNTPOINT "mntpoint"#define TESTFILE1 "testfile1"
testcases/kernel/syscalls/vmsplice/vmsplice01.c +1 -1
@@ -34,7 +34,7 @@#include <sys/poll.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "safe_macros.h" #include "lapi/fcntl.h" #include "lapi/splice.h"
testcases/kernel/syscalls/vmsplice/vmsplice02.c +1 -1
@@ -37,7 +37,7 @@#include "test.h" #include "safe_macros.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include "lapi/fcntl.h" #include "lapi/vmsplice.h"
testcases/kernel/syscalls/waitid/waitid02.c +1 -1
@@ -48,7 +48,7 @@#include <sys/stat.h> #include "test.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" struct testcase_t {const char *msg;
testcases/kernel/timers/include/common_timers.h +2 -2
@@ -9,7 +9,7 @@#define CLEANUP cleanup#include "config.h" -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #ifndef NSEC_PER_SEC #define NSEC_PER_SEC (1000000000L)
@@ -59,7 +59,7 @@ const char *get_clock_str(const int clock_id) } } -#include "linux_syscall_numbers.h" +#include "lapi/syscalls.h" #include <time.h> #include <unistd.h>
Signature · 1 line
2.13.3
RFC PATCH 2/3 Rename linux_syscall_numbers.h to lapi/syscalls.h
Hi!
Isn't 1/3 of this patchset missing?
I can only seel 2/3 and 3/3 here.
Signature · 2 lines
Cyril Hrubis [email protected]
RFC PATCH 2/3 Rename linux_syscall_numbers.h to lapi/syscalls.h
Hi,
Quoted 8 lines · Cyril Hrubis
Hi!
Isn't 1/3 of this patchset missing?I can only seel 2/3 and 3/3 here.
Signature · 2 lines
Cyril Hrubis [email protected]
Yes, I don't know why. I will try resending.
Signature · 2 lines
Thank you, Richard.
RFC PATCH 3/3 Remove linux_syscall_numbers.h Makefile
In reply to a message not in the archive--- include/lapi/syscalls/Makefile | 35 ----------------------------------- include/mk/testcases.mk | 14 ++------------ testcases/kernel/Makefile | 11 ----------- 3 files changed, 2 insertions(+), 58 deletions(-) delete mode 100644 include/lapi/syscalls/Makefile
include/lapi/syscalls/Makefile deleted +0 -35
@@ -1,35 +0,0 @@ -# -# kernel test suite include Makefile. -# -# Copyright (C) 2009, Cisco Systems Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, July 2009 -# - -top_srcdir ?= ../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -INSTALL_DIR := $(includedir) - -MAKE_TARGETS := linux_syscall_numbers.h - -linux_syscall_numbers.h: $(abs_srcdir)/regen.sh $(wildcard $(abs_srcdir)/*.in) - @touch linux_syscall_numbers.h - $(SHELL) "$<" - -include $(top_srcdir)/include/mk/generic_leaf_target.mk
include/mk/testcases.mk +2 -12
@@ -25,10 +25,6 @@ include $(top_srcdir)/include/mk/functions.mk APICMDS_DIR := $(abs_top_builddir)/tools/apicmds -TKI_DIR := testcases/kernel/include - -LSN_H := $(abs_top_builddir)/$(TKI_DIR)/linux_syscall_numbers.h - LIBLTP_DIR := $(abs_top_builddir)/lib LIBLTP := $(LIBLTP_DIR)/libltp.a
@@ -39,17 +35,11 @@ $(APICMDS_DIR)/tst_kvercmp: $(APICMDS_DIR) $(LIBLTP): $(LIBLTP_DIR) $(MAKE) -C "$^" -f "$(abs_top_srcdir)/lib/Makefile" all -$(LSN_H): $(abs_top_builddir)/$(TKI_DIR) - $(MAKE) -C "$^" -f "$(abs_top_srcdir)/$(TKI_DIR)/Makefile" all - -MAKE_DEPS := $(LIBLTP) $(LSN_H) - -# For linux_syscall_numbers.h -CPPFLAGS += -I$(abs_top_builddir)/$(TKI_DIR) +MAKE_DEPS := $(LIBLTP) INSTALL_DIR := testcases/bin LDLIBS += -lltp -$(APICMDS_DIR) $(LIBLTP_DIR) $(abs_top_builddir)/$(TKI_DIR): %: +$(APICMDS_DIR) $(LIBLTP_DIR): %: mkdir -p "$@"
testcases/kernel/Makefile +0 -11
@@ -66,15 +66,4 @@ FILTER_OUT_DIRS += containers controllers device-drivers fs io ipc mem \ sched security timers endif -MAKE_DEPS := include/linux_syscall_numbers.h - -include: - mkdir -p "$@" - -linux-syscall-numbers-clean:: include - $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" clean - -include/linux_syscall_numbers.h: include - $(MAKE) -C $^ -f "$(abs_srcdir)/$^/Makefile" all - include $(top_srcdir)/include/mk/generic_trunk_target.mk
Signature · 1 line
2.13.3