blob: 4ee28a2a054f3174547741cb58f0e704a5b4e58a [file] [log] [blame]
# 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
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