From 95acf4d2258e7311d1d4deff0ab95053abf65fd1 Mon Sep 17 00:00:00 2001 From: Greg Steuck Date: Tue, 25 Apr 2023 17:16:52 +0100 Subject: executor: remove openbsd bits out of common_bsd.h --- pkg/csource/generated.go | 42 +----------------------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) (limited to 'pkg/csource/generated.go') diff --git a/pkg/csource/generated.go b/pkg/csource/generated.go index 0d0a31e7a..bb62ff41a 100644 --- a/pkg/csource/generated.go +++ b/pkg/csource/generated.go @@ -490,23 +490,6 @@ void child() #include #include -#if GOOS_openbsd -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif - #if GOOS_netbsd #if SYZ_EXECUTOR || __NR_syz_usb_connect @@ -1698,29 +1681,10 @@ static int fault_injected(int fd) #endif -#if GOOS_openbsd -#define CAST -#endif #if GOOS_darwin #define __syscall syscall #endif -#if GOOS_openbsd && (SYZ_EXECUTOR || __NR_syz_open_pts) -#include -#include - -static uintptr_t syz_open_pts(void) -{ - int master, slave; - - if (openpty(&master, &slave, NULL, NULL, NULL) == -1) - return -1; - if (dup2(master, master + 100) != -1) - close(master); - return slave; -} -#endif - #if SYZ_EXECUTOR || SYZ_NET_INJECTION #include @@ -1735,8 +1699,6 @@ static int tunfd = -1; #define MAX_TUN 64 #elif GOOS_freebsd #define MAX_TUN 256 -#elif GOOS_openbsd -#define MAX_TUN 8 #else #define MAX_TUN 4 #endif @@ -1840,9 +1802,7 @@ static void initialize_tun(int tun_id) char local_mac[sizeof(LOCAL_MAC)]; snprintf_check(local_mac, sizeof(local_mac), LOCAL_MAC); -#if GOOS_openbsd - execute_command(1, "ifconfig %s lladdr %s", tun_iface, local_mac); -#elif GOOS_netbsd +#if GOOS_netbsd execute_command(1, "ifconfig %s link %s", tun_iface, local_mac); #else execute_command(1, "ifconfig %s ether %s", tun_iface, local_mac); -- cgit mrf-deployment