]> Cypherpunks repositories - gostls13.git/commitdiff
fix build - forgot these files
authorRuss Cox <rsc@golang.org>
Thu, 4 Dec 2008 18:18:53 +0000 (10:18 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 4 Dec 2008 18:18:53 +0000 (10:18 -0800)
TBR=r
OCL=20448
CL=20448

src/lib/syscall/mksignal [new file with mode: 0755]
src/lib/syscall/signal_amd64_darwin.go [new file with mode: 0644]
src/lib/syscall/signal_amd64_linux.go [new file with mode: 0644]

diff --git a/src/lib/syscall/mksignal b/src/lib/syscall/mksignal
new file mode 100755 (executable)
index 0000000..abf2608
--- /dev/null
@@ -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 (file)
index 0000000..892255e
--- /dev/null
@@ -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 (file)
index 0000000..af55028
--- /dev/null
@@ -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;
+)