Commit 35726a76 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

compel: criu -- Start using uapi/std syscalls stubs

Real syscalls generation is inside criu for a while
but will be moved out in the next patch.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 55bc5518
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "restorer.h" #include "restorer.h"
#include "asm/restorer.h" #include "asm/restorer.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "log.h" #include "log.h"
#include "asm/fpu.h" #include "asm/fpu.h"
#include "cpu.h" #include "cpu.h"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
#include "asm/types.h" #include "asm/types.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "common/bug.h" #include "common/bug.h"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "restorer.h" #include "restorer.h"
#include "asm/restorer.h" #include "asm/restorer.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "log.h" #include "log.h"
#include "asm/fpu.h" #include "asm/fpu.h"
#include "cpu.h" #include "cpu.h"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "asm/restorer.h" #include "asm/restorer.h"
#include "asm/fpu.h" #include "asm/fpu.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "log.h" #include "log.h"
int restore_nonsigframe_gpregs(UserPpc64RegsEntry *r) int restore_nonsigframe_gpregs(UserPpc64RegsEntry *r)
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "asm/types.h" #include "asm/types.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "common/bug.h" #include "common/bug.h"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "util.h" #include "util.h"
#include "cpu.h" #include "cpu.h"
#include "errno.h" #include "errno.h"
#include "syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "kerndat.h" #include "kerndat.h"
#include "protobuf.h" #include "protobuf.h"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include "asm/types.h" #include "asm/types.h"
#include "asm/fpu.h" #include "asm/fpu.h"
#include "images/core.pb-c.h" #include "images/core.pb-c.h"
#include "uapi/std/syscall-codes.h"
#include "sigframe.h" #include "sigframe.h"
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "asm/fpu.h" #include "asm/fpu.h"
#include "asm/string.h" #include "asm/string.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "log.h" #include "log.h"
#include "cpu.h" #include "cpu.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <sys/mman.h> #include <sys/mman.h>
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "uapi/std/syscall.h"
#else #else
# define sys_mmap mmap # define sys_mmap mmap
# define sys_munmap munmap # define sys_munmap munmap
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "string.h" #include "string.h"
#include "asm/types.h" #include "asm/types.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "log.h" #include "log.h"
#include "common/bug.h" #include "common/bug.h"
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
#include "parasite-syscall.h" #include "parasite-syscall.h"
#include "files-reg.h" #include "files-reg.h"
#include "syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "protobuf.h" #include "protobuf.h"
#include "images/sa.pb-c.h" #include "images/sa.pb-c.h"
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#include "namespaces.h" #include "namespaces.h"
#include "pstree.h" #include "pstree.h"
#include "fault-injection.h" #include "fault-injection.h"
#include "syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "protobuf.h" #include "protobuf.h"
#include "images/fsnotify.pb-c.h" #include "images/fsnotify.pb-c.h"
......
...@@ -26,8 +26,8 @@ ...@@ -26,8 +26,8 @@
#include "lsm.h" #include "lsm.h"
#include "proc_parse.h" #include "proc_parse.h"
#include "config.h" #include "config.h"
#include "syscall-codes.h"
#include "sk-inet.h" #include "sk-inet.h"
#include "uapi/std/syscall-codes.h"
struct kerndat_s kdat = { struct kerndat_s kdat = {
}; };
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "proc_parse.h" #include "proc_parse.h"
#include "aio.h" #include "aio.h"
#include "fault-injection.h" #include "fault-injection.h"
#include "syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "signal.h" #include "signal.h"
#include "sigframe.h" #include "sigframe.h"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "types.h" #include "types.h"
#include "string.h" #include "string.h"
#include "common/bitsperlong.h" #include "common/bitsperlong.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "log.h" #include "log.h"
struct simple_buf { struct simple_buf {
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
#include "int.h" #include "int.h"
#include "types.h" #include "types.h"
#include "page.h" #include "page.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "image.h" #include "image.h"
#include "parasite-vdso.h" #include "parasite-vdso.h"
#include "vma.h" #include "vma.h"
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include "int.h" #include "int.h"
#include "types.h" #include "types.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "parasite.h" #include "parasite.h"
#include "config.h" #include "config.h"
#include "fcntl.h" #include "fcntl.h"
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "types.h" #include "types.h"
#include "common/compiler.h" #include "common/compiler.h"
#include "string.h" #include "string.h"
#include "syscall.h" #include "uapi/std/syscall.h"
#include "signal.h" #include "signal.h"
#include "config.h" #include "config.h"
#include "prctl.h" #include "prctl.h"
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#include "string.h" #include "string.h"
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "uapi/std/syscall.h"
# define __sys(foo) sys_##foo # define __sys(foo) sys_##foo
# define __sys_err(ret) ret # define __sys_err(ret) ret
#else #else
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "util-pie.h" #include "util-pie.h"
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "uapi/std/syscall.h"
# define __sys(foo) sys_##foo # define __sys(foo) sys_##foo
#else #else
# define __sys(foo) foo # define __sys(foo) foo
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include "vma.h" #include "vma.h"
#include "mem.h" #include "mem.h"
#include "config.h" #include "config.h"
#include "syscall-codes.h" #include "uapi/std/syscall-codes.h"
#include "bitops.h" #include "bitops.h"
#include "log.h" #include "log.h"
#include "types.h" #include "types.h"
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#define LOCK_BUG() LOCK_BUG_ON(1) #define LOCK_BUG() LOCK_BUG_ON(1)
#ifdef CR_NOGLIBC #ifdef CR_NOGLIBC
# include "syscall.h" # include "uapi/std/syscall.h"
#else #else
# include <unistd.h> # include <unistd.h>
# include <sys/syscall.h> # include <sys/syscall.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment