aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/generated.go
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@freebsd.org>2018-11-30 13:53:59 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-30 13:48:23 +0000
commit9656dc4c83633f3a34da6b6105ec04c383965816 (patch)
treed085441991b74688abddb7ac7b491e5d3287dbbc /pkg/csource/generated.go
parent3d61cddf64ee00ccfa9f1d7bc28503bc05e375e6 (diff)
executor: Fix compilation on FreeBSD.
This is an autogenerated file, but it seem that changes to it resulting from changes in executor/common_bsd.h must also be committed. e
Diffstat (limited to 'pkg/csource/generated.go')
-rw-r--r--pkg/csource/generated.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go
index e63341912..931b0f2f4 100644
--- a/pkg/csource/generated.go
+++ b/pkg/csource/generated.go
@@ -406,6 +406,8 @@ void child()
#include <stdbool.h>
#include <string.h>
+#if GOOS_openbsd
+
static void vsnprintf_check(char* str, size_t size, const char* format, va_list args)
{
int rv;
@@ -448,8 +450,6 @@ static void execute_command(bool panic, const char* format, ...)
}
}
-#if GOOS_openbsd
-
#define __syscall syscall
#if SYZ_EXECUTOR || __NR_syz_open_pts
@@ -632,12 +632,13 @@ static long syz_extract_tcp_res(long a0, long a1, long a2)
return 0;
}
#endif
+#endif
#if SYZ_EXECUTOR || SYZ_SANDBOX_NONE
static void loop();
static int do_sandbox_none(void)
{
-#if SYZ_EXECUTOR || SYZ_TUN_ENABLE
+#if SYZ_TUN_ENABLE
initialize_tun(procid);
#endif
loop();
@@ -645,8 +646,6 @@ static int do_sandbox_none(void)
}
#endif
-#endif
-
#elif GOOS_fuchsia
#include <fcntl.h>