]>
git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/golang.org/x/sys/unix/mksysnum_darwin.pl
2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file.
6 # Generate system call table for Darwin from sys/syscall.h
10 if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
11 print STDERR
"GOARCH or GOOS not defined in environment\n";
15 my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
19 // Code generated by the command above; see README.md. DO NOT EDIT.
21 // +build $ENV{'GOARCH'},$ENV{'GOOS'}
29 if(/^#define\s+SYS_(\w+)\s+([0-9]+)/){
33 print " SYS_$name = $num;"