summaryrefslogtreecommitdiffstats
path: root/src/runtime/export_linux_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/export_linux_test.go')
-rw-r--r--src/runtime/export_linux_test.go24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/runtime/export_linux_test.go b/src/runtime/export_linux_test.go
new file mode 100644
index 0000000..dea94a9
--- /dev/null
+++ b/src/runtime/export_linux_test.go
@@ -0,0 +1,24 @@
+// Copyright 2015 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// Export guts for testing.
+
+package runtime
+
+import "unsafe"
+
+const SiginfoMaxSize = _si_max_size
+const SigeventMaxSize = _sigev_max_size
+
+var NewOSProc0 = newosproc0
+var Mincore = mincore
+var Add = add
+
+type EpollEvent epollevent
+type Siginfo siginfo
+type Sigevent sigevent
+
+func Epollctl(epfd, op, fd int32, ev unsafe.Pointer) int32 {
+ return epollctl(epfd, op, fd, (*epollevent)(ev))
+}