summaryrefslogtreecommitdiff
path: root/src/runtime/os2_netbsd.go
diff options
context:
space:
mode:
authorJoel Sing <jsing@google.com>2014-11-22 16:05:31 +1100
committerJoel Sing <jsing@google.com>2014-11-22 16:05:31 +1100
commit4834c71adef00d1de50d1e1e3565b37be8619098 (patch)
tree9149718a95a34106d0bb61aa12b97dd428a6b6e0 /src/runtime/os2_netbsd.go
parent7d9f09fdbaa7610c4a63214470d253006f6b567a (diff)
downloadgo-4834c71adef00d1de50d1e1e3565b37be8619098.tar.gz
[dev.cc] runtime: convert netbsd/amd64 port to Go
LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/169620043
Diffstat (limited to 'src/runtime/os2_netbsd.go')
-rw-r--r--src/runtime/os2_netbsd.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/runtime/os2_netbsd.go b/src/runtime/os2_netbsd.go
new file mode 100644
index 000000000..46576b9bc
--- /dev/null
+++ b/src/runtime/os2_netbsd.go
@@ -0,0 +1,18 @@
+// Copyright 2010 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.
+
+package runtime
+
+const (
+ _SS_DISABLE = 4
+ _SIG_BLOCK = 1
+ _SIG_UNBLOCK = 2
+ _SIG_SETMASK = 3
+ _NSIG = 33
+ _SI_USER = 0
+
+ // From NetBSD's <sys/ucontext.h>
+ _UC_SIGMASK = 0x01
+ _UC_CPU = 0x04
+)