| # 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. |
| # Generate system call table for OpenBSD from master list |
| # (for example, /usr/src/sys/kern/syscalls.master). |
| my $command = "mksysnum_netbsd.pl " . join(' ', @ARGV); |
| // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT |
| if($line =~ /^(.*)\\$/) { |
| if($line =~ /^([0-9]+)\s+((STD)|(NOERR))\s+(RUMP\s+)?({\s+\S+\s*\*?\s*\|(\S+)\|(\S*)\|(\w+).*\s+})(\s+(\S+))?$/) { |
| $name = "$7_$11" if $11 ne ''; |
| if($compat eq '' || $compat eq '30' || $compat eq '50') { |
| print " $name = $num; // $proto\n"; |