]>
git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - vendor/github.com/fsouza/go-dockerclient/external/golang.org/x/sys/unix/mksysnum_linux.pl
4d4017deb2dd8094043c2d344f9172427c7de9be
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.
8 if($ENV{'GOARCH'} eq "" || $ENV{'GOOS'} eq "") {
9 print STDERR
"GOARCH or GOOS not defined in environment\n";
13 my $command = "mksysnum_linux.pl ". join(' ', @ARGV);
17 // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
19 // +build $ENV{'GOARCH'},$ENV{'GOOS'}
27 my ($name, $num) = @_;
29 # ignore deprecated syscalls that are no longer implemented
30 # https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/unistd.h?id=refs/heads/master#n716
34 print " SYS_$name = $num;\n";
38 open(GCC
, "gcc -E -dD $ARGV[0] |") || die "can't run gcc";
40 if(/^#define __NR_syscalls\s+/) {
41 # ignore redefinitions of __NR_syscalls
43 elsif(/^#define __NR_(\w+)\s+([0-9]+)/){
47 elsif(/^#define __NR3264_(\w+)\s+([0-9]+)/){
51 elsif(/^#define __NR_(\w+)\s+\(\w+\+\s*([0-9]+)\)/){