tests: use scno.h in tests of relatively new syscalls
* tests/add_key.c: Include "scno.h" after <asm/unistd.h>. * tests/copy_file_range.c: Likewise. * tests/execveat.c: Likewise. * tests/kexec_file_load.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/mlock2.c: Likewise. * tests/pkey_alloc.c: Likewise. * tests/pkey_free.c: Likewise. * tests/pkey_mprotect.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/userfaultfd.c: Likewise.
This commit is contained in:
parent
605a705a63
commit
000fdc4b89
@ -28,8 +28,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_add_key
|
#ifdef __NR_add_key
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_copy_file_range
|
#if defined __NR_copy_file_range
|
||||||
|
|
||||||
|
@ -28,12 +28,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_execveat
|
#ifdef __NR_execveat
|
||||||
|
|
||||||
|
# include <stdio.h>
|
||||||
|
# include <unistd.h>
|
||||||
|
|
||||||
# define FILENAME "test.execveat\nfilename"
|
# define FILENAME "test.execveat\nfilename"
|
||||||
# define Q_FILENAME "test.execveat\\nfilename"
|
# define Q_FILENAME "test.execveat\\nfilename"
|
||||||
|
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_kexec_file_load
|
#ifdef __NR_kexec_file_load
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_membarrier
|
#ifdef __NR_membarrier
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_memfd_create
|
#ifdef __NR_memfd_create
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#ifdef __NR_mlock2
|
#ifdef __NR_mlock2
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_pkey_alloc
|
#ifdef __NR_pkey_alloc
|
||||||
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
@ -28,10 +28,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_pkey_free
|
#ifdef __NR_pkey_free
|
||||||
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
@ -28,15 +28,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_pkey_mprotect
|
#ifdef __NR_pkey_mprotect
|
||||||
|
|
||||||
# include <stdio.h>
|
# include <stdio.h>
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
|
# include <sys/mman.h>
|
||||||
#include <sys/mman.h>
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
sprintptr(kernel_ulong_t ptr)
|
sprintptr(kernel_ulong_t ptr)
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_preadv2 && defined __NR_pwritev2
|
#if defined __NR_preadv2 && defined __NR_pwritev2
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#include "scno.h"
|
||||||
|
|
||||||
#if defined __NR_userfaultfd && defined O_CLOEXEC
|
#if defined __NR_userfaultfd && defined O_CLOEXEC
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user