diff options
| author | Russ Cox <rsc@golang.org> | 2008-12-04 10:18:53 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2008-12-04 10:18:53 -0800 |
| commit | 3e8faa640fa49f432060097e8dabbf8e4ecc2ef9 (patch) | |
| tree | 981035493982a654b601a07cbb705084a10bc299 /src | |
| parent | 79e1db2da13b0d9aafe39831bdb0c1b7940aab0c (diff) | |
| download | go-3e8faa640fa49f432060097e8dabbf8e4ecc2ef9.tar.xz | |
fix build - forgot these files
TBR=r
OCL=20448
CL=20448
Diffstat (limited to 'src')
| -rwxr-xr-x | src/lib/syscall/mksignal | 26 | ||||
| -rw-r--r-- | src/lib/syscall/signal_amd64_darwin.go | 43 | ||||
| -rw-r--r-- | src/lib/syscall/signal_amd64_linux.go | 46 |
3 files changed, 115 insertions, 0 deletions
diff --git a/src/lib/syscall/mksignal b/src/lib/syscall/mksignal new file mode 100755 index 0000000000..abf2608157 --- /dev/null +++ b/src/lib/syscall/mksignal @@ -0,0 +1,26 @@ +# Copyright 2009 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. + +my $command = "mksignal ". join(' ', @ARGV); + +print <<EOF; +// Generated by mksignal; DO NOT EDIT. +// $command + +package syscall + +export const( +EOF + +while(<>){ + next if /SIGSTKSZ/; + next if /SIGEV_/; + if(/^#define\s+(SIG[^_\s]\w*)\s+([0-9]+)/){ + print " $1 = $2;\n"; + } +} + +print <<EOF; +) +EOF diff --git a/src/lib/syscall/signal_amd64_darwin.go b/src/lib/syscall/signal_amd64_darwin.go new file mode 100644 index 0000000000..892255eea8 --- /dev/null +++ b/src/lib/syscall/signal_amd64_darwin.go @@ -0,0 +1,43 @@ +// Copyright 2009 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. + +// Generated by mksignal; DO NOT EDIT. +// mksignal /usr/include/sys/signal.h + +package syscall + +export const( + SIGHUP = 1; + SIGINT = 2; + SIGQUIT = 3; + SIGILL = 4; + SIGTRAP = 5; + SIGABRT = 6; + SIGPOLL = 7; + SIGEMT = 7; + SIGFPE = 8; + SIGKILL = 9; + SIGBUS = 10; + SIGSEGV = 11; + SIGSYS = 12; + SIGPIPE = 13; + SIGALRM = 14; + SIGTERM = 15; + SIGURG = 16; + SIGSTOP = 17; + SIGTSTP = 18; + SIGCONT = 19; + SIGCHLD = 20; + SIGTTIN = 21; + SIGTTOU = 22; + SIGIO = 23; + SIGXCPU = 24; + SIGXFSZ = 25; + SIGVTALRM = 26; + SIGPROF = 27; + SIGWINCH = 28; + SIGINFO = 29; + SIGUSR1 = 30; + SIGUSR2 = 31; +) diff --git a/src/lib/syscall/signal_amd64_linux.go b/src/lib/syscall/signal_amd64_linux.go new file mode 100644 index 0000000000..af55028dcf --- /dev/null +++ b/src/lib/syscall/signal_amd64_linux.go @@ -0,0 +1,46 @@ +// Copyright 2009 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. + +// Generated by mksignal; DO NOT EDIT. +// mksignal /usr/include/asm/signal.h + +package syscall + +export const( + SIGHUP = 1; + SIGINT = 2; + SIGQUIT = 3; + SIGILL = 4; + SIGTRAP = 5; + SIGABRT = 6; + SIGIOT = 6; + SIGBUS = 7; + SIGFPE = 8; + SIGKILL = 9; + SIGUSR1 = 10; + SIGSEGV = 11; + SIGUSR2 = 12; + SIGPIPE = 13; + SIGALRM = 14; + SIGTERM = 15; + SIGSTKFLT = 16; + SIGCHLD = 17; + SIGCONT = 18; + SIGSTOP = 19; + SIGTSTP = 20; + SIGTTIN = 21; + SIGTTOU = 22; + SIGURG = 23; + SIGXCPU = 24; + SIGXFSZ = 25; + SIGVTALRM = 26; + SIGPROF = 27; + SIGWINCH = 28; + SIGIO = 29; + SIGLOST = 29; + SIGPWR = 30; + SIGSYS = 31; + SIGUNUSED = 31; + SIGRTMIN = 32; +) |
