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:
Дмитрий Левин 2016-12-20 00:06:15 +00:00
parent 605a705a63
commit 000fdc4b89
12 changed files with 19 additions and 12 deletions

View File

@ -28,8 +28,8 @@
*/
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_add_key

View File

@ -29,6 +29,7 @@
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_copy_file_range

View File

@ -28,12 +28,14 @@
*/
#include "tests.h"
#include <stdio.h>
#include <unistd.h>
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_execveat
# include <stdio.h>
# include <unistd.h>
# define FILENAME "test.execveat\nfilename"
# define Q_FILENAME "test.execveat\\nfilename"

View File

@ -28,8 +28,8 @@
*/
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_kexec_file_load

View File

@ -27,6 +27,7 @@
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_membarrier

View File

@ -1,5 +1,6 @@
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_memfd_create

View File

@ -27,6 +27,7 @@
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#ifdef __NR_mlock2

View File

@ -28,10 +28,10 @@
*/
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_pkey_alloc
#ifdef __NR_pkey_alloc
# include <stdio.h>
# include <unistd.h>

View File

@ -28,10 +28,10 @@
*/
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_pkey_free
#ifdef __NR_pkey_free
# include <stdio.h>
# include <unistd.h>

View File

@ -28,15 +28,14 @@
*/
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_pkey_mprotect
#ifdef __NR_pkey_mprotect
# include <stdio.h>
# include <unistd.h>
#include <sys/mman.h>
# include <sys/mman.h>
const char *
sprintptr(kernel_ulong_t ptr)

View File

@ -29,6 +29,7 @@
#include "tests.h"
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_preadv2 && defined __NR_pwritev2

View File

@ -28,6 +28,7 @@
#include "tests.h"
#include <fcntl.h>
#include <asm/unistd.h>
#include "scno.h"
#if defined __NR_userfaultfd && defined O_CLOEXEC