mirror of
https://github.com/golang/go
synced 2024-11-20 07:14:40 -07:00
os: make compatible with go/build
It is probably a mistake to have these here at all - os is supposed to be portable - but this only fixes the build issue. R=golang-dev, r, r, iant CC=golang-dev https://golang.org/cl/5487073
This commit is contained in:
parent
6e8875551a
commit
1b82e03a8f
@ -26,7 +26,7 @@ GOFILES_freebsd=\
|
|||||||
sys_bsd.go\
|
sys_bsd.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_unix.go\
|
exec_unix.go\
|
||||||
signal_unix.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_darwin=\
|
GOFILES_darwin=\
|
||||||
dir_unix.go\
|
dir_unix.go\
|
||||||
@ -37,7 +37,7 @@ GOFILES_darwin=\
|
|||||||
sys_bsd.go\
|
sys_bsd.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_unix.go\
|
exec_unix.go\
|
||||||
signal_unix.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_linux=\
|
GOFILES_linux=\
|
||||||
dir_unix.go\
|
dir_unix.go\
|
||||||
@ -48,7 +48,7 @@ GOFILES_linux=\
|
|||||||
sys_linux.go\
|
sys_linux.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_unix.go\
|
exec_unix.go\
|
||||||
signal_unix.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_netbsd=\
|
GOFILES_netbsd=\
|
||||||
dir_unix.go\
|
dir_unix.go\
|
||||||
@ -59,7 +59,7 @@ GOFILES_netbsd=\
|
|||||||
sys_bsd.go\
|
sys_bsd.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_unix.go\
|
exec_unix.go\
|
||||||
signal_unix.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_openbsd=\
|
GOFILES_openbsd=\
|
||||||
dir_unix.go\
|
dir_unix.go\
|
||||||
@ -70,7 +70,7 @@ GOFILES_openbsd=\
|
|||||||
sys_bsd.go\
|
sys_bsd.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_unix.go\
|
exec_unix.go\
|
||||||
signal_unix.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_windows=\
|
GOFILES_windows=\
|
||||||
dir_windows.go\
|
dir_windows.go\
|
||||||
@ -81,7 +81,7 @@ GOFILES_windows=\
|
|||||||
sys_windows.go\
|
sys_windows.go\
|
||||||
exec_posix.go\
|
exec_posix.go\
|
||||||
exec_windows.go\
|
exec_windows.go\
|
||||||
signal_windows.go\
|
zsignal_$(GOOS)_$(GOARCH).go\
|
||||||
|
|
||||||
GOFILES_plan9=\
|
GOFILES_plan9=\
|
||||||
dir_plan9.go\
|
dir_plan9.go\
|
||||||
@ -94,12 +94,4 @@ GOFILES_plan9=\
|
|||||||
|
|
||||||
GOFILES+=$(GOFILES_$(GOOS))
|
GOFILES+=$(GOFILES_$(GOOS))
|
||||||
|
|
||||||
CLEANFILES+=signal_unix.go signal_windows.go
|
|
||||||
|
|
||||||
include ../../Make.pkg
|
include ../../Make.pkg
|
||||||
|
|
||||||
signal_unix.go: ../syscall/zerrors_$(GOOS)_$(GOARCH).go
|
|
||||||
./mkunixsignals.sh $< > $@ || rm -f $@
|
|
||||||
|
|
||||||
signal_windows.go: ../syscall/ztypes_$(GOOS).go
|
|
||||||
./mkunixsignals.sh $< > $@ || rm -f $@
|
|
||||||
|
22
src/pkg/os/mksignals.sh
Executable file
22
src/pkg/os/mksignals.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
for targ in \
|
||||||
|
darwin_386 \
|
||||||
|
darwin_amd64 \
|
||||||
|
freebsd_386 \
|
||||||
|
freebsd_amd64 \
|
||||||
|
linux_386 \
|
||||||
|
linux_amd64 \
|
||||||
|
linux_arm \
|
||||||
|
openbsd_386 \
|
||||||
|
openbsd_amd64 \
|
||||||
|
; do
|
||||||
|
./mkunixsignals.sh ../syscall/zerrors_$targ.go |gofmt >zsignal_$targ.go
|
||||||
|
done
|
||||||
|
|
||||||
|
for targ in \
|
||||||
|
windows_386 \
|
||||||
|
windows_amd64 \
|
||||||
|
; do
|
||||||
|
./mkunixsignals.sh ../syscall/ztypes_windows.go |gofmt >zsignal_$targ.go
|
||||||
|
done
|
@ -3,8 +3,11 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
|
echo '// MACHINE GENERATED; DO NOT EDIT'
|
||||||
|
echo '// To regenerate, run'
|
||||||
|
echo '// ./mksignals.sh'
|
||||||
|
echo '// which, for this file, will run'
|
||||||
echo '// ./mkunixsignals.sh' "$1"
|
echo '// ./mkunixsignals.sh' "$1"
|
||||||
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
cat <<EOH
|
cat <<EOH
|
||||||
|
48
src/pkg/os/zsignal_darwin_386.go
Normal file
48
src/pkg/os/zsignal_darwin_386.go
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_darwin_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)
|
||||||
|
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)
|
||||||
|
)
|
48
src/pkg/os/zsignal_darwin_amd64.go
Normal file
48
src/pkg/os/zsignal_darwin_amd64.go
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_darwin_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)
|
||||||
|
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)
|
||||||
|
)
|
50
src/pkg/os/zsignal_freebsd_386.go
Normal file
50
src/pkg/os/zsignal_freebsd_386.go
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_freebsd_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)
|
||||||
|
SIGLWP = UnixSignal(syscall.SIGLWP)
|
||||||
|
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)
|
||||||
|
)
|
50
src/pkg/os/zsignal_freebsd_amd64.go
Normal file
50
src/pkg/os/zsignal_freebsd_amd64.go
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_freebsd_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)
|
||||||
|
SIGLWP = UnixSignal(syscall.SIGLWP)
|
||||||
|
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)
|
||||||
|
)
|
51
src/pkg/os/zsignal_linux_386.go
Normal file
51
src/pkg/os/zsignal_linux_386.go
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_linux_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)
|
||||||
|
SIGCLD = UnixSignal(syscall.SIGCLD)
|
||||||
|
SIGCONT = UnixSignal(syscall.SIGCONT)
|
||||||
|
SIGFPE = UnixSignal(syscall.SIGFPE)
|
||||||
|
SIGHUP = UnixSignal(syscall.SIGHUP)
|
||||||
|
SIGILL = UnixSignal(syscall.SIGILL)
|
||||||
|
SIGINT = UnixSignal(syscall.SIGINT)
|
||||||
|
SIGIO = UnixSignal(syscall.SIGIO)
|
||||||
|
SIGIOT = UnixSignal(syscall.SIGIOT)
|
||||||
|
SIGKILL = UnixSignal(syscall.SIGKILL)
|
||||||
|
SIGPIPE = UnixSignal(syscall.SIGPIPE)
|
||||||
|
SIGPOLL = UnixSignal(syscall.SIGPOLL)
|
||||||
|
SIGPROF = UnixSignal(syscall.SIGPROF)
|
||||||
|
SIGPWR = UnixSignal(syscall.SIGPWR)
|
||||||
|
SIGQUIT = UnixSignal(syscall.SIGQUIT)
|
||||||
|
SIGSEGV = UnixSignal(syscall.SIGSEGV)
|
||||||
|
SIGSTKFLT = UnixSignal(syscall.SIGSTKFLT)
|
||||||
|
SIGSTOP = UnixSignal(syscall.SIGSTOP)
|
||||||
|
SIGSYS = UnixSignal(syscall.SIGSYS)
|
||||||
|
SIGTERM = UnixSignal(syscall.SIGTERM)
|
||||||
|
SIGTRAP = UnixSignal(syscall.SIGTRAP)
|
||||||
|
SIGTSTP = UnixSignal(syscall.SIGTSTP)
|
||||||
|
SIGTTIN = UnixSignal(syscall.SIGTTIN)
|
||||||
|
SIGTTOU = UnixSignal(syscall.SIGTTOU)
|
||||||
|
SIGUNUSED = UnixSignal(syscall.SIGUNUSED)
|
||||||
|
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)
|
||||||
|
)
|
51
src/pkg/os/zsignal_linux_amd64.go
Normal file
51
src/pkg/os/zsignal_linux_amd64.go
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_linux_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)
|
||||||
|
SIGCLD = UnixSignal(syscall.SIGCLD)
|
||||||
|
SIGCONT = UnixSignal(syscall.SIGCONT)
|
||||||
|
SIGFPE = UnixSignal(syscall.SIGFPE)
|
||||||
|
SIGHUP = UnixSignal(syscall.SIGHUP)
|
||||||
|
SIGILL = UnixSignal(syscall.SIGILL)
|
||||||
|
SIGINT = UnixSignal(syscall.SIGINT)
|
||||||
|
SIGIO = UnixSignal(syscall.SIGIO)
|
||||||
|
SIGIOT = UnixSignal(syscall.SIGIOT)
|
||||||
|
SIGKILL = UnixSignal(syscall.SIGKILL)
|
||||||
|
SIGPIPE = UnixSignal(syscall.SIGPIPE)
|
||||||
|
SIGPOLL = UnixSignal(syscall.SIGPOLL)
|
||||||
|
SIGPROF = UnixSignal(syscall.SIGPROF)
|
||||||
|
SIGPWR = UnixSignal(syscall.SIGPWR)
|
||||||
|
SIGQUIT = UnixSignal(syscall.SIGQUIT)
|
||||||
|
SIGSEGV = UnixSignal(syscall.SIGSEGV)
|
||||||
|
SIGSTKFLT = UnixSignal(syscall.SIGSTKFLT)
|
||||||
|
SIGSTOP = UnixSignal(syscall.SIGSTOP)
|
||||||
|
SIGSYS = UnixSignal(syscall.SIGSYS)
|
||||||
|
SIGTERM = UnixSignal(syscall.SIGTERM)
|
||||||
|
SIGTRAP = UnixSignal(syscall.SIGTRAP)
|
||||||
|
SIGTSTP = UnixSignal(syscall.SIGTSTP)
|
||||||
|
SIGTTIN = UnixSignal(syscall.SIGTTIN)
|
||||||
|
SIGTTOU = UnixSignal(syscall.SIGTTOU)
|
||||||
|
SIGUNUSED = UnixSignal(syscall.SIGUNUSED)
|
||||||
|
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)
|
||||||
|
)
|
51
src/pkg/os/zsignal_linux_arm.go
Normal file
51
src/pkg/os/zsignal_linux_arm.go
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/zerrors_linux_arm.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)
|
||||||
|
SIGCLD = UnixSignal(syscall.SIGCLD)
|
||||||
|
SIGCONT = UnixSignal(syscall.SIGCONT)
|
||||||
|
SIGFPE = UnixSignal(syscall.SIGFPE)
|
||||||
|
SIGHUP = UnixSignal(syscall.SIGHUP)
|
||||||
|
SIGILL = UnixSignal(syscall.SIGILL)
|
||||||
|
SIGINT = UnixSignal(syscall.SIGINT)
|
||||||
|
SIGIO = UnixSignal(syscall.SIGIO)
|
||||||
|
SIGIOT = UnixSignal(syscall.SIGIOT)
|
||||||
|
SIGKILL = UnixSignal(syscall.SIGKILL)
|
||||||
|
SIGPIPE = UnixSignal(syscall.SIGPIPE)
|
||||||
|
SIGPOLL = UnixSignal(syscall.SIGPOLL)
|
||||||
|
SIGPROF = UnixSignal(syscall.SIGPROF)
|
||||||
|
SIGPWR = UnixSignal(syscall.SIGPWR)
|
||||||
|
SIGQUIT = UnixSignal(syscall.SIGQUIT)
|
||||||
|
SIGSEGV = UnixSignal(syscall.SIGSEGV)
|
||||||
|
SIGSTKFLT = UnixSignal(syscall.SIGSTKFLT)
|
||||||
|
SIGSTOP = UnixSignal(syscall.SIGSTOP)
|
||||||
|
SIGSYS = UnixSignal(syscall.SIGSYS)
|
||||||
|
SIGTERM = UnixSignal(syscall.SIGTERM)
|
||||||
|
SIGTRAP = UnixSignal(syscall.SIGTRAP)
|
||||||
|
SIGTSTP = UnixSignal(syscall.SIGTSTP)
|
||||||
|
SIGTTIN = UnixSignal(syscall.SIGTTIN)
|
||||||
|
SIGTTOU = UnixSignal(syscall.SIGTTOU)
|
||||||
|
SIGUNUSED = UnixSignal(syscall.SIGUNUSED)
|
||||||
|
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_openbsd_386.go
Normal file
49
src/pkg/os/zsignal_openbsd_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_openbsd_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_openbsd_amd64.go
Normal file
49
src/pkg/os/zsignal_openbsd_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_openbsd_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)
|
||||||
|
)
|
29
src/pkg/os/zsignal_windows_386.go
Normal file
29
src/pkg/os/zsignal_windows_386.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/ztypes_windows.go
|
||||||
|
|
||||||
|
package os
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ = syscall.Open // in case there are zero signals
|
||||||
|
|
||||||
|
const (
|
||||||
|
SIGHUP = UnixSignal(syscall.SIGHUP)
|
||||||
|
SIGINT = UnixSignal(syscall.SIGINT)
|
||||||
|
SIGQUIT = UnixSignal(syscall.SIGQUIT)
|
||||||
|
SIGILL = UnixSignal(syscall.SIGILL)
|
||||||
|
SIGTRAP = UnixSignal(syscall.SIGTRAP)
|
||||||
|
SIGABRT = UnixSignal(syscall.SIGABRT)
|
||||||
|
SIGBUS = UnixSignal(syscall.SIGBUS)
|
||||||
|
SIGFPE = UnixSignal(syscall.SIGFPE)
|
||||||
|
SIGKILL = UnixSignal(syscall.SIGKILL)
|
||||||
|
SIGSEGV = UnixSignal(syscall.SIGSEGV)
|
||||||
|
SIGPIPE = UnixSignal(syscall.SIGPIPE)
|
||||||
|
SIGALRM = UnixSignal(syscall.SIGALRM)
|
||||||
|
SIGTERM = UnixSignal(syscall.SIGTERM)
|
||||||
|
)
|
29
src/pkg/os/zsignal_windows_amd64.go
Normal file
29
src/pkg/os/zsignal_windows_amd64.go
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
// MACHINE GENERATED; DO NOT EDIT
|
||||||
|
// To regenerate, run
|
||||||
|
// ./mksignals.sh
|
||||||
|
// which, for this file, will run
|
||||||
|
// ./mkunixsignals.sh ../syscall/ztypes_windows.go
|
||||||
|
|
||||||
|
package os
|
||||||
|
|
||||||
|
import (
|
||||||
|
"syscall"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ = syscall.Open // in case there are zero signals
|
||||||
|
|
||||||
|
const (
|
||||||
|
SIGHUP = UnixSignal(syscall.SIGHUP)
|
||||||
|
SIGINT = UnixSignal(syscall.SIGINT)
|
||||||
|
SIGQUIT = UnixSignal(syscall.SIGQUIT)
|
||||||
|
SIGILL = UnixSignal(syscall.SIGILL)
|
||||||
|
SIGTRAP = UnixSignal(syscall.SIGTRAP)
|
||||||
|
SIGABRT = UnixSignal(syscall.SIGABRT)
|
||||||
|
SIGBUS = UnixSignal(syscall.SIGBUS)
|
||||||
|
SIGFPE = UnixSignal(syscall.SIGFPE)
|
||||||
|
SIGKILL = UnixSignal(syscall.SIGKILL)
|
||||||
|
SIGSEGV = UnixSignal(syscall.SIGSEGV)
|
||||||
|
SIGPIPE = UnixSignal(syscall.SIGPIPE)
|
||||||
|
SIGALRM = UnixSignal(syscall.SIGALRM)
|
||||||
|
SIGTERM = UnixSignal(syscall.SIGTERM)
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user