1
0
mirror of https://github.com/golang/go synced 2024-11-25 04:17:57 -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:
Christopher Nielsen 2011-12-18 02:29:18 +11:00 committed by Joel Sing
parent 13b26cb36a
commit 5030177ea3
14 changed files with 111 additions and 11 deletions

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd windows // +build darwin freebsd linux netbsd openbsd windows
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package exec package exec

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd windows // +build darwin freebsd linux netbsd openbsd windows
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd windows // +build darwin freebsd linux netbsd openbsd windows
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package os package os

View File

@ -8,6 +8,8 @@ for targ in \
linux_386 \ linux_386 \
linux_amd64 \ linux_amd64 \
linux_arm \ linux_arm \
netbsd_386 \
netbsd_amd64 \
openbsd_386 \ openbsd_386 \
openbsd_amd64 \ openbsd_amd64 \
; do ; do

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package os_test package os_test

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin freebsd linux openbsd // +build darwin freebsd linux netbsd openbsd
package os package os

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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) // os code shared between *BSD systems including OS X (Darwin)
// and FreeBSD. // and FreeBSD.

View File

@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build openbsd plan9 windows // +build netbsd openbsd plan9 windows
package user package user

View 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)
)

View 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)
)