Commit 5030177e authored by Christopher Nielsen's avatar Christopher Nielsen Committed by Joel Sing

os: Add NetBSD support for recent signal changes.

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
parent 13b26cb3
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -8,6 +8,8 @@ for targ in \
linux_386 \
linux_amd64 \
linux_arm \
netbsd_386 \
netbsd_amd64 \
openbsd_386 \
openbsd_amd64 \
; do
......
......@@ -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
......
......@@ -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
......
......@@ -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.
......
......@@ -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
......
// 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)
)
// 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)
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment