Commit 319a8c45 authored by Rob Pike's avatar Rob Pike

syscall: rename from .sh to .pl, because these files are in Perl.

Also delete references to nacl.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/4275060
parent 2187f43e
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
# #
# * zsyscall_${GOOS}_${GOARCH}.go # * zsyscall_${GOOS}_${GOARCH}.go
# #
# Generated by mksyscall.sh; see syscall_${GOOS}.go above. # Generated by mksyscall.pl; see syscall_${GOOS}.go above.
# #
# * zsysnum_${GOOS}_${GOARCH}.go # * zsysnum_${GOOS}_${GOARCH}.go
# #
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
GOOSARCH="${GOOS}_${GOARCH}" GOOSARCH="${GOOS}_${GOARCH}"
# defaults # defaults
mksyscall="./mksyscall.sh" mksyscall="./mksyscall.pl"
mkerrors="./mkerrors.sh" mkerrors="./mkerrors.sh"
run="sh" run="sh"
...@@ -101,55 +101,46 @@ _* | *_ | _) ...@@ -101,55 +101,46 @@ _* | *_ | _)
;; ;;
freebsd_386) freebsd_386)
mkerrors="$mkerrors -f -m32" mkerrors="$mkerrors -f -m32"
mksyscall="./mksyscall.sh -l32" mksyscall="./mksyscall.pl -l32"
mksysnum="curl -s 'http://svn.freebsd.org/viewvc/base/head/sys/kern/syscalls.master?view=markup' | ./mksysnum_freebsd.sh" mksysnum="curl -s 'http://svn.freebsd.org/viewvc/base/head/sys/kern/syscalls.master?view=markup' | ./mksysnum_freebsd.pl"
mktypes="godefs -gsyscall -f-m32" mktypes="godefs -gsyscall -f-m32"
;; ;;
freebsd_amd64) freebsd_amd64)
mkerrors="$mkerrors -f -m64" mkerrors="$mkerrors -f -m64"
mksysnum="curl -s 'http://svn.freebsd.org/viewvc/base/head/sys/kern/syscalls.master?view=markup' | ./mksysnum_freebsd.sh" mksysnum="curl -s 'http://svn.freebsd.org/viewvc/base/head/sys/kern/syscalls.master?view=markup' | ./mksysnum_freebsd.pl"
mktypes="godefs -gsyscall -f-m64" mktypes="godefs -gsyscall -f-m64"
;; ;;
darwin_386) darwin_386)
mkerrors="$mkerrors -f -m32" mkerrors="$mkerrors -f -m32"
mksyscall="./mksyscall.sh -l32" mksyscall="./mksyscall.pl -l32"
mksysnum="./mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master" mksysnum="./mksysnum_darwin.pl /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
mktypes="godefs -gsyscall -f-m32" mktypes="godefs -gsyscall -f-m32"
;; ;;
darwin_amd64) darwin_amd64)
mkerrors="$mkerrors -f -m64" mkerrors="$mkerrors -f -m64"
mksysnum="./mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master" mksysnum="./mksysnum_darwin.pl /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
mktypes="godefs -gsyscall -f-m64" mktypes="godefs -gsyscall -f-m64"
mkerrors="./mkerrors.sh" mkerrors="./mkerrors.sh"
;; ;;
linux_386) linux_386)
mkerrors="$mkerrors -f -m32" mkerrors="$mkerrors -f -m32"
mksyscall="./mksyscall.sh -l32" mksyscall="./mksyscall.pl -l32"
mksysnum="./mksysnum_linux.sh /usr/include/asm/unistd_32.h" mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_32.h"
mktypes="godefs -gsyscall -f-m32" mktypes="godefs -gsyscall -f-m32"
;; ;;
linux_amd64) linux_amd64)
mkerrors="$mkerrors -f -m64" mkerrors="$mkerrors -f -m64"
mksysnum="./mksysnum_linux.sh /usr/include/asm/unistd_64.h" mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_64.h"
mktypes="godefs -gsyscall -f-m64" mktypes="godefs -gsyscall -f-m64"
;; ;;
nacl_386)
NACL="/home/rsc/pub/nacl/native_client"
NACLRUN="$NACL/src/trusted/service_runtime"
NACLSDK="$NACL/src/third_party/nacl_sdk/linux/sdk/nacl-sdk/nacl"
mksyscall="./mksyscall.sh -l32 -nacl"
mksysnum="./mksysnum_nacl.sh $NACLRUN/include/bits/nacl_syscalls.h"
mktypes="godefs -gsyscall -f-m32 -f-I$NACLSDK/include -f-I$NACL"
mkerrors="./mkerrors_nacl.sh $NACLRUN/include/sys/errno.h"
;;
linux_arm) linux_arm)
mkerrors="$mkerrors" mkerrors="$mkerrors"
mksyscall="./mksyscall.sh -b32" mksyscall="./mksyscall.pl -b32"
mksysnum="./mksysnum_linux.sh /usr/include/asm/unistd.h" mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd.h"
mktypes="godefs -gsyscall" mktypes="godefs -gsyscall"
;; ;;
windows_386) windows_386)
mksyscall="./mksyscall_windows.sh -l32" mksyscall="./mksyscall_windows.pl -l32"
mksysnum= mksysnum=
mktypes= mktypes=
mkerrors="./mkerrors_windows.sh -f -m32" mkerrors="./mkerrors_windows.sh -f -m32"
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
# block, as otherwise the system call could cause all goroutines to # block, as otherwise the system call could cause all goroutines to
# hang. # hang.
$cmdline = "mksyscall.sh " . join(' ', @ARGV); $cmdline = "mksyscall.pl " . join(' ', @ARGV);
$errors = 0; $errors = 0;
$_32bit = ""; $_32bit = "";
$nacl = 0; $nacl = 0;
...@@ -37,7 +37,7 @@ if($ARGV[0] eq "-nacl") { ...@@ -37,7 +37,7 @@ if($ARGV[0] eq "-nacl") {
} }
if($ARGV[0] =~ /^-/) { if($ARGV[0] =~ /^-/) {
print STDERR "usage: mksyscall.sh [-b32 | -l32] [file ...]\n"; print STDERR "usage: mksyscall.pl [-b32 | -l32] [file ...]\n";
exit 1; exit 1;
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
# //sys LoadLibrary(libname string) (handle uint32, errno int) [failretval==-1] = LoadLibraryA # //sys LoadLibrary(libname string) (handle uint32, errno int) [failretval==-1] = LoadLibraryA
# and is [failretval==0] by default. # and is [failretval==0] by default.
$cmdline = "mksyscall_windows.sh " . join(' ', @ARGV); $cmdline = "mksyscall_windows.pl " . join(' ', @ARGV);
$errors = 0; $errors = 0;
$_32bit = ""; $_32bit = "";
...@@ -36,7 +36,7 @@ if($ARGV[0] eq "-b32") { ...@@ -36,7 +36,7 @@ if($ARGV[0] eq "-b32") {
} }
if($ARGV[0] =~ /^-/) { if($ARGV[0] =~ /^-/) {
print STDERR "usage: mksyscall_windows.sh [-b32 | -l32] [file ...]\n"; print STDERR "usage: mksyscall_windows.pl [-b32 | -l32] [file ...]\n";
exit 1; exit 1;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Generate system call table for Darwin from master list # Generate system call table for Darwin from master list
# (for example, xnu-1228/bsd/kern/syscalls.master). # (for example, xnu-1228/bsd/kern/syscalls.master).
my $command = "mksysnum_darwin.sh " . join(' ', @ARGV); my $command = "mksysnum_darwin.pl " . join(' ', @ARGV);
print <<EOF; print <<EOF;
// $command // $command
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# Generate system call table for FreeBSD from master list # Generate system call table for FreeBSD from master list
# (for example, /usr/src/sys/kern/syscalls.master). # (for example, /usr/src/sys/kern/syscalls.master).
my $command = "mksysnum_freebsd.sh " . join(' ', @ARGV); my $command = "mksysnum_freebsd.pl " . join(' ', @ARGV);
print <<EOF; print <<EOF;
// $command // $command
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Use of this source code is governed by a BSD-style # Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file. # license that can be found in the LICENSE file.
my $command = "mksysnum_linux.sh ". join(' ', @ARGV); my $command = "mksysnum_linux.pl ". join(' ', @ARGV);
print <<EOF; print <<EOF;
// $command // $command
......
// mksyscall.sh syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go // mksyscall.pl syscall_bsd.go syscall_darwin.go syscall_darwin_amd64.go
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
package syscall package syscall
......
// mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master // mksysnum_darwin.pl /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT // MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
package syscall package syscall
......
...@@ -229,7 +229,7 @@ type Msghdr struct { ...@@ -229,7 +229,7 @@ type Msghdr struct {
Name *byte Name *byte
Namelen uint32 Namelen uint32
Pad_godefs_0 [4]byte Pad_godefs_0 [4]byte
Iov *Iovec Iov uint64
Iovlen int32 Iovlen int32
Pad_godefs_1 [4]byte Pad_godefs_1 [4]byte
Control *byte Control *byte
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment