forked from falcosecurity/libs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyscall_table64.c
29 lines (24 loc) · 862 Bytes
/
syscall_table64.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// SPDX-License-Identifier: GPL-2.0-only OR MIT
/*
Copyright (C) 2023 The Falco Authors.
This file is dual licensed under either the MIT or GPL 2. See MIT.txt
or GPL2.txt for full copies of the license.
*/
#ifdef __KERNEL__
#include <asm/unistd.h>
#else
/*
* In userspace, we always need to compile the full syscall table,
* faking full support; this allows userspace code to be
* able to manage all syscalls->events mappings,
* even if the driver won't be able to send all syscalls.
*/
#if defined(__GNUC__)
#include "syscall_compat.h"
#elif defined(_MSC_VER) || defined(__EMSCRIPTEN__)
// these are Linux syscall numbers and obviously meaningless for Windows/macOS
// but we need *some* definition so that we have a mapping for scap_ppm_sc.c
#include "syscall_compat_x86_64.h"
#endif /* __GNUC__ */
#endif /* __KERNEL__ */
#include "syscall_table.c"