]> Cypherpunks repositories - gostls13.git/commitdiff
os: Add NetBSD support for recent signal changes.
authorChristopher Nielsen <m4dh4tt3r@gmail.com>
Sat, 17 Dec 2011 15:29:18 +0000 (02:29 +1100)
committerJoel Sing <jsing@google.com>
Sat, 17 Dec 2011 15:29:18 +0000 (02:29 +1100)
Add NetBSD to mksignals.sh and generate files.
While we're here, also add netbsd to the +build list where appropriate.

R=golang-dev, jsing
CC=golang-dev
https://golang.org/cl/5492064

14 files changed:
src/pkg/os/dir_unix.go
src/pkg/os/error_posix.go
src/pkg/os/exec/lp_unix.go
src/pkg/os/exec_posix.go
src/pkg/os/exec_unix.go
src/pkg/os/file_posix.go
src/pkg/os/file_unix.go
src/pkg/os/mksignals.sh
src/pkg/os/os_unix_test.go
src/pkg/os/path_unix.go
src/pkg/os/sys_bsd.go
src/pkg/os/user/lookup_stubs.go
src/pkg/os/zsignal_netbsd_386.go [new file with mode: 0644]
src/pkg/os/zsignal_netbsd_amd64.go [new file with mode: 0644]

index e4dff835d89975033f728f3aa105465382cf6288..e7a29554c15af5a2fd6597922ad80dc09791a1da 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package os
 
index dbe1b9a8d5eeb37cd7b7a6bc32796ca78586dc26..ebbe4369703328d92f313754c5e54b715f0bad1b 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd windows
+// +build darwin freebsd linux netbsd openbsd windows
 
 package os
 
index 9665ea8f4138a516a01200cf130b1e5537f57246..a221137230db379b04bab33eb6620c4e281e519b 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package exec
 
index 8b08eebd0daf0fb195b6f237ec1aa0d26d135839..fb93eb3c2d04c5948276d07b043a11fe155d16ec 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd windows
+// +build darwin freebsd linux netbsd openbsd windows
 
 package os
 
index 3dcac414c5ab41cba7b14b23c36eac96239ef343..375813895d97d472fad7871a91c0a6ffdb7c457e 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package os
 
index a4ab5d6ae25d36b4d6572d20193ee991234b1854..cbbce204dc5fe1799336916bd4f0e87dbb7bc56f 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd windows
+// +build darwin freebsd linux netbsd openbsd windows
 
 package os
 
index 5e16780741bfef65ad4555ea868910775060ef90..38664d175cc4634f8ef61854c79c6250613dfe3c 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package os
 
index 9c35e8209db4bb4fdf6a2e0a5385419a022dbed8..401e39f143efa149ea67fe94847b9667b603fb01 100755 (executable)
@@ -8,6 +8,8 @@ for targ in \
        linux_386 \
        linux_amd64 \
        linux_arm \
+       netbsd_386 \
+       netbsd_amd64 \
        openbsd_386 \
        openbsd_amd64 \
 ; do
index 3109a8171a58bc6607907ca27cf49da2e196fd1e..1f800d78ccaee956ec3ece4b5338b18d67db17b0 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package os_test
 
index 33045b60c4580887dde1be5f8badf5e14b7df8e9..30a167b1adc0b3e4761f784b220fc013cdb61dcf 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd linux openbsd
+// +build darwin freebsd linux netbsd openbsd
 
 package os
 
index c6a6de5c816f6d39826afa182610022a4a36ab2c..d196469e7d48d00c1d0e4390028a8109a23997f4 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build darwin freebsd openbsd
+// +build darwin freebsd netbsd openbsd
 
 // os code shared between *BSD systems including OS X (Darwin)
 // and FreeBSD.
index 0999dedbb95c81809603d93534bb1750cd6ce3db..7fc087c4dc199192048cba47f6456279c7800fc9 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build openbsd plan9 windows
+// +build netbsd openbsd plan9 windows
 
 package user
 
diff --git a/src/pkg/os/zsignal_netbsd_386.go b/src/pkg/os/zsignal_netbsd_386.go
new file mode 100644 (file)
index 0000000..07d4692
--- /dev/null
@@ -0,0 +1,49 @@
+// MACHINE GENERATED; DO NOT EDIT
+// To regenerate, run
+//     ./mksignals.sh
+// which, for this file, will run
+//     ./mkunixsignals.sh ../syscall/zerrors_netbsd_386.go
+
+package os
+
+import (
+       "syscall"
+)
+
+var _ = syscall.Open // in case there are zero signals
+
+const (
+       SIGABRT   = UnixSignal(syscall.SIGABRT)
+       SIGALRM   = UnixSignal(syscall.SIGALRM)
+       SIGBUS    = UnixSignal(syscall.SIGBUS)
+       SIGCHLD   = UnixSignal(syscall.SIGCHLD)
+       SIGCONT   = UnixSignal(syscall.SIGCONT)
+       SIGEMT    = UnixSignal(syscall.SIGEMT)
+       SIGFPE    = UnixSignal(syscall.SIGFPE)
+       SIGHUP    = UnixSignal(syscall.SIGHUP)
+       SIGILL    = UnixSignal(syscall.SIGILL)
+       SIGINFO   = UnixSignal(syscall.SIGINFO)
+       SIGINT    = UnixSignal(syscall.SIGINT)
+       SIGIO     = UnixSignal(syscall.SIGIO)
+       SIGIOT    = UnixSignal(syscall.SIGIOT)
+       SIGKILL   = UnixSignal(syscall.SIGKILL)
+       SIGPIPE   = UnixSignal(syscall.SIGPIPE)
+       SIGPROF   = UnixSignal(syscall.SIGPROF)
+       SIGQUIT   = UnixSignal(syscall.SIGQUIT)
+       SIGSEGV   = UnixSignal(syscall.SIGSEGV)
+       SIGSTOP   = UnixSignal(syscall.SIGSTOP)
+       SIGSYS    = UnixSignal(syscall.SIGSYS)
+       SIGTERM   = UnixSignal(syscall.SIGTERM)
+       SIGTHR    = UnixSignal(syscall.SIGTHR)
+       SIGTRAP   = UnixSignal(syscall.SIGTRAP)
+       SIGTSTP   = UnixSignal(syscall.SIGTSTP)
+       SIGTTIN   = UnixSignal(syscall.SIGTTIN)
+       SIGTTOU   = UnixSignal(syscall.SIGTTOU)
+       SIGURG    = UnixSignal(syscall.SIGURG)
+       SIGUSR1   = UnixSignal(syscall.SIGUSR1)
+       SIGUSR2   = UnixSignal(syscall.SIGUSR2)
+       SIGVTALRM = UnixSignal(syscall.SIGVTALRM)
+       SIGWINCH  = UnixSignal(syscall.SIGWINCH)
+       SIGXCPU   = UnixSignal(syscall.SIGXCPU)
+       SIGXFSZ   = UnixSignal(syscall.SIGXFSZ)
+)
diff --git a/src/pkg/os/zsignal_netbsd_amd64.go b/src/pkg/os/zsignal_netbsd_amd64.go
new file mode 100644 (file)
index 0000000..6c0d996
--- /dev/null
@@ -0,0 +1,49 @@
+// MACHINE GENERATED; DO NOT EDIT
+// To regenerate, run
+//     ./mksignals.sh
+// which, for this file, will run
+//     ./mkunixsignals.sh ../syscall/zerrors_netbsd_amd64.go
+
+package os
+
+import (
+       "syscall"
+)
+
+var _ = syscall.Open // in case there are zero signals
+
+const (
+       SIGABRT   = UnixSignal(syscall.SIGABRT)
+       SIGALRM   = UnixSignal(syscall.SIGALRM)
+       SIGBUS    = UnixSignal(syscall.SIGBUS)
+       SIGCHLD   = UnixSignal(syscall.SIGCHLD)
+       SIGCONT   = UnixSignal(syscall.SIGCONT)
+       SIGEMT    = UnixSignal(syscall.SIGEMT)
+       SIGFPE    = UnixSignal(syscall.SIGFPE)
+       SIGHUP    = UnixSignal(syscall.SIGHUP)
+       SIGILL    = UnixSignal(syscall.SIGILL)
+       SIGINFO   = UnixSignal(syscall.SIGINFO)
+       SIGINT    = UnixSignal(syscall.SIGINT)
+       SIGIO     = UnixSignal(syscall.SIGIO)
+       SIGIOT    = UnixSignal(syscall.SIGIOT)
+       SIGKILL   = UnixSignal(syscall.SIGKILL)
+       SIGPIPE   = UnixSignal(syscall.SIGPIPE)
+       SIGPROF   = UnixSignal(syscall.SIGPROF)
+       SIGQUIT   = UnixSignal(syscall.SIGQUIT)
+       SIGSEGV   = UnixSignal(syscall.SIGSEGV)
+       SIGSTOP   = UnixSignal(syscall.SIGSTOP)
+       SIGSYS    = UnixSignal(syscall.SIGSYS)
+       SIGTERM   = UnixSignal(syscall.SIGTERM)
+       SIGTHR    = UnixSignal(syscall.SIGTHR)
+       SIGTRAP   = UnixSignal(syscall.SIGTRAP)
+       SIGTSTP   = UnixSignal(syscall.SIGTSTP)
+       SIGTTIN   = UnixSignal(syscall.SIGTTIN)
+       SIGTTOU   = UnixSignal(syscall.SIGTTOU)
+       SIGURG    = UnixSignal(syscall.SIGURG)
+       SIGUSR1   = UnixSignal(syscall.SIGUSR1)
+       SIGUSR2   = UnixSignal(syscall.SIGUSR2)
+       SIGVTALRM = UnixSignal(syscall.SIGVTALRM)
+       SIGWINCH  = UnixSignal(syscall.SIGWINCH)
+       SIGXCPU   = UnixSignal(syscall.SIGXCPU)
+       SIGXFSZ   = UnixSignal(syscall.SIGXFSZ)
+)