mirror of
https://github.com/golang/go
synced 2024-11-25 02:37:59 -07:00
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
This commit is contained in:
parent
13b26cb36a
commit
5030177ea3
@ -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
|
||||
|
||||
|
49
src/pkg/os/zsignal_netbsd_386.go
Normal file
49
src/pkg/os/zsignal_netbsd_386.go
Normal file
@ -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)
|
||||
)
|
49
src/pkg/os/zsignal_netbsd_amd64.go
Normal file
49
src/pkg/os/zsignal_netbsd_amd64.go
Normal file
@ -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)
|
||||
)
|
Loading…
Reference in New Issue
Block a user