aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/linux_common.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-07-07 20:07:30 +0200
committerDmitry Vyukov <dvyukov@google.com>2018-07-08 22:52:24 +0200
commit306ca0571c5d906ce76df97bd1ea54f4e0e50240 (patch)
treea579718e096c53dc5386f4af2fbabb3318eaf1ed /pkg/csource/linux_common.go
parent93213ec0d3c4522c8844a51b718eb56ce62f395b (diff)
prog, pkg/compiler: support fmt type
fmt type allows to convert intergers and resources to string representation.
Diffstat (limited to 'pkg/csource/linux_common.go')
-rw-r--r--pkg/csource/linux_common.go10
1 files changed, 1 insertions, 9 deletions
diff --git a/pkg/csource/linux_common.go b/pkg/csource/linux_common.go
index c1313c018..b2431c4fe 100644
--- a/pkg/csource/linux_common.go
+++ b/pkg/csource/linux_common.go
@@ -10,6 +10,7 @@ var commonHeaderLinux = `
#endif
#include <endian.h>
+#include <stdio.h>
#include <sys/syscall.h>
#include <unistd.h>
#if defined(SYZ_EXECUTOR) || defined(SYZ_THREADED) || defined(SYZ_COLLIDE)
@@ -21,7 +22,6 @@ var commonHeaderLinux = `
#include <errno.h>
#include <signal.h>
#include <stdarg.h>
-#include <stdio.h>
#include <sys/time.h>
#include <sys/wait.h>
#include <time.h>
@@ -39,7 +39,6 @@ var commonHeaderLinux = `
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
-#include <stdio.h>
#include <sys/prctl.h>
#include <sys/resource.h>
#include <sys/time.h>
@@ -72,7 +71,6 @@ var commonHeaderLinux = `
#include <net/if_arp.h>
#include <stdarg.h>
#include <stdbool.h>
-#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -88,24 +86,20 @@ var commonHeaderLinux = `
#include <fcntl.h>
#include <stdarg.h>
#include <stdbool.h>
-#include <stdio.h>
#include <sys/stat.h>
#endif
#if defined(SYZ_EXECUTOR) || defined(__NR_syz_open_dev) || defined(__NR_syz_open_procfs)
#include <fcntl.h>
-#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#endif
#if defined(SYZ_EXECUTOR) || defined(__NR_syz_fuse_mount) || defined(__NR_syz_fuseblk_mount)
#include <fcntl.h>
-#include <stdio.h>
#include <sys/stat.h>
#include <sys/sysmacros.h>
#endif
#if defined(SYZ_EXECUTOR) || defined(__NR_syz_open_pts)
#include <fcntl.h>
-#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#endif
@@ -115,7 +109,6 @@ var commonHeaderLinux = `
#include <linux/kvm.h>
#include <stdarg.h>
#include <stddef.h>
-#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#endif
@@ -140,7 +133,6 @@ var commonHeaderLinux = `
#include <errno.h>
#include <fcntl.h>
#include <linux/loop.h>
-#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/mount.h>
#include <sys/stat.h>