aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmimpl/linux.go
diff options
context:
space:
mode:
authorZach Riggle <zachriggle@users.noreply.github.com>2017-06-26 08:32:38 -0500
committerDmitry Vyukov <dvyukov@google.com>2017-06-26 15:32:38 +0200
commit2420edb02ee04fc1b7dc39e7d5e17f98e3e3a24b (patch)
tree80d02d9248808642724208e809a43062636250b4 /vm/vmimpl/linux.go
parentdd93f0378ab9dcfd951394cb53514bfdee67b4d9 (diff)
Port console to Darwin (#253)
* Port console to Darwin * Get syz-executor to build correctly * Do not export unix and syscall constants * Add presubmit test * Add myself to contributors
Diffstat (limited to 'vm/vmimpl/linux.go')
-rw-r--r--vm/vmimpl/linux.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/vm/vmimpl/linux.go b/vm/vmimpl/linux.go
new file mode 100644
index 000000000..d25b263fc
--- /dev/null
+++ b/vm/vmimpl/linux.go
@@ -0,0 +1,18 @@
+// Copyright 2017 syzkaller project authors. All rights reserved.
+// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+// +build linux
+
+package vmimpl
+
+import (
+ "syscall"
+ "unix"
+)
+
+const (
+ unix_CBAUD = unix.CBAUD
+ unix_CRTSCTS = unix.CRTSCTS
+ syscall_TCGETS = syscall.TCGETS
+ syscall_TCSETS = syscall.TCSETS
+)