1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:30:26 -07:00

os: remove SIGXXX signals variables.

They're not portable, and pkg os is supposed to be portable.

Fixes #2562

R=golang-dev, mikioh.mikioh, r, n13m3y3r, rsc
CC=golang-dev
https://golang.org/cl/5574078
This commit is contained in:
Brad Fitzpatrick 2012-01-27 14:47:02 -08:00
parent b3a5f9e51b
commit a3fdd6e649
32 changed files with 19 additions and 678 deletions

View File

@ -253,7 +253,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/darwin_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_darwin.go ./sys_bsd.go ./time.go ./types.go ./zsignal_darwin_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_darwin.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/darwin_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/darwin_386/os.a

View File

@ -252,7 +252,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/darwin_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_darwin.go ./sys_bsd.go ./time.go ./types.go ./zsignal_darwin_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_darwin.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/darwin_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/darwin_amd64/os.a

View File

@ -253,7 +253,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/freebsd_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_freebsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_freebsd_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_freebsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/freebsd_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/freebsd_386/os.a

View File

@ -252,7 +252,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/freebsd_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_freebsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_freebsd_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_freebsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/freebsd_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/freebsd_amd64/os.a

View File

@ -253,7 +253,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/linux_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go ./zsignal_linux_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/linux_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/linux_386/os.a

View File

@ -252,7 +252,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/linux_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go ./zsignal_linux_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/linux_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/linux_amd64/os.a

View File

@ -256,7 +256,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/linux_arm/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
5g -o "$WORK"/os/_obj/_go_.5 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go ./zsignal_linux_arm.go 5g -o "$WORK"/os/_obj/_go_.5 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_linux.go ./sys_linux.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.5 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.5
cp "$WORK"/os.a "$GOROOT"/pkg/linux_arm/os.a cp "$WORK"/os.a "$GOROOT"/pkg/linux_arm/os.a

View File

@ -253,7 +253,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/netbsd_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_netbsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_netbsd_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_netbsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/netbsd_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/netbsd_386/os.a

View File

@ -252,7 +252,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/netbsd_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_netbsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_netbsd_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_netbsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/netbsd_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/netbsd_amd64/os.a

View File

@ -253,7 +253,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/openbsd_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_openbsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_openbsd_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_openbsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/openbsd_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/openbsd_386/os.a

View File

@ -252,7 +252,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/openbsd_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_openbsd.go ./sys_bsd.go ./time.go ./types.go ./zsignal_openbsd_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_unix.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_unix.go ./file.go ./file_posix.go ./file_unix.go ./getwd.go ./path.go ./path_unix.go ./proc.go ./stat_openbsd.go ./sys_bsd.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/openbsd_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/openbsd_amd64/os.a

View File

@ -265,7 +265,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/windows_386/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_windows.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_windows.go ./file.go ./file_posix.go ./file_windows.go ./getwd.go ./path.go ./path_windows.go ./proc.go ./stat_windows.go ./sys_windows.go ./time.go ./types.go ./zsignal_windows_386.go 8g -o "$WORK"/os/_obj/_go_.8 -p os -I "$WORK" ./dir_windows.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_windows.go ./file.go ./file_posix.go ./file_windows.go ./getwd.go ./path.go ./path_windows.go ./proc.go ./stat_windows.go ./sys_windows.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.8
cp "$WORK"/os.a "$GOROOT"/pkg/windows_386/os.a cp "$WORK"/os.a "$GOROOT"/pkg/windows_386/os.a

View File

@ -264,7 +264,7 @@ cp "$WORK"/time.a "$GOROOT"/pkg/windows_amd64/time.a
mkdir -p "$WORK"/os/_obj/ mkdir -p "$WORK"/os/_obj/
cd "$GOROOT"/src/pkg/os cd "$GOROOT"/src/pkg/os
6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_windows.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_windows.go ./file.go ./file_posix.go ./file_windows.go ./getwd.go ./path.go ./path_windows.go ./proc.go ./stat_windows.go ./sys_windows.go ./time.go ./types.go ./zsignal_windows_amd64.go 6g -o "$WORK"/os/_obj/_go_.6 -p os -I "$WORK" ./dir_windows.go ./doc.go ./env.go ./error.go ./error_posix.go ./exec.go ./exec_posix.go ./exec_windows.go ./file.go ./file_posix.go ./file_windows.go ./getwd.go ./path.go ./path_windows.go ./proc.go ./stat_windows.go ./sys_windows.go ./time.go ./types.go
gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6 gopack grc "$WORK"/os.a "$WORK"/os/_obj/_go_.6
cp "$WORK"/os.a "$GOROOT"/pkg/windows_amd64/os.a cp "$WORK"/os.a "$GOROOT"/pkg/windows_amd64/os.a

View File

@ -27,7 +27,6 @@ GOFILES_freebsd=\
sys_bsd.go\ sys_bsd.go\
exec_posix.go\ exec_posix.go\
exec_unix.go\ exec_unix.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_darwin=\ GOFILES_darwin=\
dir_unix.go\ dir_unix.go\
@ -38,7 +37,6 @@ GOFILES_darwin=\
sys_bsd.go\ sys_bsd.go\
exec_posix.go\ exec_posix.go\
exec_unix.go\ exec_unix.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_linux=\ GOFILES_linux=\
dir_unix.go\ dir_unix.go\
@ -49,7 +47,6 @@ GOFILES_linux=\
sys_linux.go\ sys_linux.go\
exec_posix.go\ exec_posix.go\
exec_unix.go\ exec_unix.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_netbsd=\ GOFILES_netbsd=\
dir_unix.go\ dir_unix.go\
@ -60,7 +57,6 @@ GOFILES_netbsd=\
sys_bsd.go\ sys_bsd.go\
exec_posix.go\ exec_posix.go\
exec_unix.go\ exec_unix.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_openbsd=\ GOFILES_openbsd=\
dir_unix.go\ dir_unix.go\
@ -71,7 +67,6 @@ GOFILES_openbsd=\
sys_bsd.go\ sys_bsd.go\
exec_posix.go\ exec_posix.go\
exec_unix.go\ exec_unix.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_windows=\ GOFILES_windows=\
dir_windows.go\ dir_windows.go\
@ -82,7 +77,6 @@ GOFILES_windows=\
sys_windows.go\ sys_windows.go\
exec_posix.go\ exec_posix.go\
exec_windows.go\ exec_windows.go\
zsignal_$(GOOS)_$(GOARCH).go\
GOFILES_plan9=\ GOFILES_plan9=\
dir_plan9.go\ dir_plan9.go\

View File

@ -48,7 +48,7 @@ func StartProcess(name string, argv []string, attr *ProcAttr) (p *Process, err e
// Kill causes the Process to exit immediately. // Kill causes the Process to exit immediately.
func (p *Process) Kill() error { func (p *Process) Kill() error {
return p.Signal(SIGKILL) return p.Signal(UnixSignal(syscall.SIGKILL))
} }
// Exec replaces the current process with an execution of the // Exec replaces the current process with an execution of the

View File

@ -37,8 +37,7 @@ func (p *Process) Signal(sig Signal) error {
if p.done { if p.done {
return errors.New("os: process already finished") return errors.New("os: process already finished")
} }
switch sig.(UnixSignal) { if us, ok := sig.(UnixSignal); ok && us == syscall.SIGKILL {
case SIGKILL:
e := syscall.TerminateProcess(syscall.Handle(p.handle), 1) e := syscall.TerminateProcess(syscall.Handle(p.handle), 1)
return NewSyscallError("TerminateProcess", e) return NewSyscallError("TerminateProcess", e)
} }

View File

@ -1,24 +0,0 @@
#!/bin/sh
for targ in \
darwin_386 \
darwin_amd64 \
freebsd_386 \
freebsd_amd64 \
linux_386 \
linux_amd64 \
linux_arm \
netbsd_386 \
netbsd_amd64 \
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

View File

@ -1,27 +0,0 @@
#!/usr/bin/env bash
# Copyright 2010 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# 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
cat <<EOH
package os
import (
"syscall"
)
var _ = syscall.Open // in case there are zero signals
const (
EOH
sed -n 's/^[ ]*\(SIG[A-Z0-9][A-Z0-9]*\)[ ].*/ \1 = UnixSignal(syscall.\1)/p' "$1"
echo ")"

View File

@ -12,11 +12,13 @@ import (
"testing" "testing"
) )
const sighup = os.UnixSignal(syscall.SIGHUP)
func TestSignal(t *testing.T) { func TestSignal(t *testing.T) {
// Send this process a SIGHUP. // Send this process a SIGHUP.
syscall.Syscall(syscall.SYS_KILL, uintptr(syscall.Getpid()), syscall.SIGHUP, 0) syscall.Syscall(syscall.SYS_KILL, uintptr(syscall.Getpid()), syscall.SIGHUP, 0)
if sig := (<-Incoming).(os.UnixSignal); sig != os.SIGHUP { if sig := (<-Incoming).(os.UnixSignal); sig != sighup {
t.Errorf("signal was %v, want %v", sig, os.SIGHUP) t.Errorf("signal was %v, want %v", sig, sighup)
} }
} }

View File

@ -1,48 +0,0 @@
// 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)
)

View File

@ -1,48 +0,0 @@
// 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)
)

View File

@ -1,50 +0,0 @@
// 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)
)

View File

@ -1,50 +0,0 @@
// 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)
)

View File

@ -1,51 +0,0 @@
// 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)
)

View File

@ -1,51 +0,0 @@
// 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)
)

View File

@ -1,51 +0,0 @@
// 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)
)

View File

@ -1,49 +0,0 @@
// 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

@ -1,49 +0,0 @@
// 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)
)

View File

@ -1,49 +0,0 @@
// 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)
)

View File

@ -1,49 +0,0 @@
// 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)
)

View File

@ -1,29 +0,0 @@
// 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)
)

View File

@ -1,29 +0,0 @@
// 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)
)