From: David Symonds Date: Mon, 11 Jan 2010 19:23:46 +0000 (-0800) Subject: Replicate signal names from syscall in os/signal. X-Git-Tag: weekly.2010-01-13~35 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0ed728c48a0cfe7ad5dd90dbc0b9cc2558aa9424;p=gostls13.git Replicate signal names from syscall in os/signal. R=rsc CC=golang-dev https://golang.org/cl/183142 --- diff --git a/.hgignore b/.hgignore index c739a20b7f..7e039d12bd 100644 --- a/.hgignore +++ b/.hgignore @@ -20,6 +20,7 @@ src/cmd/gc/mkbuiltin1 src/cmd/gc/opnames.h src/pkg/Make.deps src/pkg/exp/ogle/ogle +src/pkg/os/signal/unix.go src/pkg/runtime/cgo2c src/pkg/runtime/*/asm.h src/pkg/runtime/runtime.acid.* diff --git a/src/pkg/os/signal/Makefile b/src/pkg/os/signal/Makefile index a1f04b6e18..5a245464a0 100644 --- a/src/pkg/os/signal/Makefile +++ b/src/pkg/os/signal/Makefile @@ -7,5 +7,11 @@ include ../../../Make.$(GOARCH) TARG=os/signal GOFILES=\ signal.go\ + unix.go\ + +CLEANFILES+=unix.go include ../../../Make.pkg + +unix.go: ../../syscall/zerrors_$(GOOS)_$(GOARCH).go + ./mkunix.sh $< > $@ || rm -f $@ diff --git a/src/pkg/os/signal/mkunix.sh b/src/pkg/os/signal/mkunix.sh new file mode 100755 index 0000000000..e1ea66059b --- /dev/null +++ b/src/pkg/os/signal/mkunix.sh @@ -0,0 +1,24 @@ +#!/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 '// ./mkunix.sh' "$1" +echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT' +echo + +cat <