mirror of
https://github.com/golang/go
synced 2024-11-20 09:54:45 -07:00
change the names to have .sh suffixes.
also fix the comments in the generated files. R=rsc DELTA=949 (470 added, 465 deleted, 14 changed) OCL=33197 CL=33201
This commit is contained in:
parent
02cb81ad31
commit
cd32498ba5
@ -62,13 +62,13 @@
|
||||
# * zerror_${GOOS}_${GOARCH}.go
|
||||
#
|
||||
# This machine-generated file defines the system's error numbers,
|
||||
# error strings, and signal numbers. The generator is "mkerrors".
|
||||
# Usually no arguments are needed, but mkerrors will pass its
|
||||
# error strings, and signal numbers. The generator is "mkerrors.sh".
|
||||
# Usually no arguments are needed, but mkerrors.sh will pass its
|
||||
# arguments on to godefs.
|
||||
#
|
||||
# * zsyscall_${GOOS}_${GOARCH}.go
|
||||
#
|
||||
# Generated by mksyscall; see syscall_${GOOS}.go above.
|
||||
# Generated by mksyscall.sh; see syscall_${GOOS}.go above.
|
||||
#
|
||||
# * zsysnum_${GOOS}_${GOARCH}.go
|
||||
#
|
||||
@ -81,8 +81,8 @@
|
||||
GOOSARCH="${GOOS}_${GOARCH}"
|
||||
|
||||
# defaults
|
||||
mksyscall="mksyscall"
|
||||
mkerrors="mkerrors"
|
||||
mksyscall="mksyscall.sh"
|
||||
mkerrors="mkerrors.sh"
|
||||
|
||||
case "$GOOSARCH" in
|
||||
_* | *_ | _)
|
||||
@ -90,22 +90,22 @@ _* | *_ | _)
|
||||
exit 1
|
||||
;;
|
||||
darwin_386)
|
||||
mksyscall="mksyscall -l32"
|
||||
mksysnum="mksysnum_darwin /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
|
||||
mksyscall="mksyscall.sh -l32"
|
||||
mksysnum="mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
|
||||
mktypes="godefs -gsyscall -f-m32"
|
||||
;;
|
||||
darwin_amd64)
|
||||
mksysnum="mksysnum_darwin /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
|
||||
mksysnum="mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master"
|
||||
mktypes="godefs -gsyscall -f-m64"
|
||||
mkerrors="mkerrors"
|
||||
mkerrors="mkerrors.sh"
|
||||
;;
|
||||
linux_386)
|
||||
mksyscall="mksyscall -l32"
|
||||
mksysnum="mksysnum_linux /usr/include/asm/unistd_32.h"
|
||||
mksyscall="mksyscall.sh -l32"
|
||||
mksysnum="mksysnum_linux.sh /usr/include/asm/unistd_32.h"
|
||||
mktypes="godefs -gsyscall -f-m32"
|
||||
;;
|
||||
linux_amd64)
|
||||
mksysnum="mksysnum_linux /usr/include/asm/unistd_64.h"
|
||||
mksysnum="mksysnum_linux.sh /usr/include/asm/unistd_64.h"
|
||||
mktypes="godefs -gsyscall -f-m64"
|
||||
;;
|
||||
*)
|
@ -3,7 +3,6 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
|
||||
# Generate Go code listing error values (ENAMETOOLONG etc)
|
||||
# and signal values (SIGALRM etc). They're unrelated except
|
||||
# that we use the same method for finding them.
|
||||
@ -37,7 +36,7 @@ signals=$(
|
||||
echo '};'
|
||||
) >_errors.c
|
||||
|
||||
echo '// mkerrors' "$@"
|
||||
echo '// mkerrors.sh' "$@"
|
||||
echo '// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT'
|
||||
echo
|
||||
godefs -gsyscall "$@" _errors.c
|
@ -13,7 +13,7 @@
|
||||
# the (x, y, z int) shorthand is not allowed.
|
||||
# * If the return parameter is an error number, it must be named errno.
|
||||
|
||||
$cmdline = "mksyscall " . join(' ', @ARGV);
|
||||
$cmdline = "mksyscall.sh " . join(' ', @ARGV);
|
||||
$errors = 0;
|
||||
$_32bit = "";
|
||||
|
||||
@ -26,7 +26,7 @@ if($ARGV[0] eq "-b32") {
|
||||
}
|
||||
|
||||
if($ARGV[0] =~ /^-/) {
|
||||
print STDERR "usage: mksyscall [-b32 | -l32] [file ...]\n";
|
||||
print STDERR "usage: mksyscall.sh [-b32 | -l32] [file ...]\n";
|
||||
exit 1;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
# Generate system call table for Darwin from master list
|
||||
# (for example, xnu-1228/bsd/kern/syscalls.master).
|
||||
|
||||
my $command = "mksysnum_darwin " . join(' ', @ARGV);
|
||||
my $command = "mksysnum_darwin.sh " . join(' ', @ARGV);
|
||||
|
||||
print <<EOF;
|
||||
// $command
|
@ -3,11 +3,11 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
my $command = "mklinux ". join(' ', @ARGV);
|
||||
my $command = "mksysnum_linux.sh ". join(' ', @ARGV);
|
||||
|
||||
print <<EOF;
|
||||
// Generated by mklinux; DO NOT EDIT.
|
||||
// $command
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mkerrors
|
||||
// mkerrors.sh
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
// godefs -gsyscall _errors.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mkerrors
|
||||
// mkerrors.sh
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
// godefs -gsyscall _errors.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mkerrors
|
||||
// mkerrors.sh
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
// godefs -gsyscall _errors.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mkerrors
|
||||
// mkerrors.sh
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
// godefs -gsyscall _errors.c
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksyscall -l32 syscall_darwin.go syscall_darwin_386.go
|
||||
// mksyscall.sh -l32 syscall_darwin.go syscall_darwin_386.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksyscall syscall_darwin.go syscall_darwin_amd64.go
|
||||
// mksyscall.sh syscall_darwin.go syscall_darwin_amd64.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksyscall -l32 syscall_linux.go syscall_linux_386.go
|
||||
// mksyscall.sh -l32 syscall_linux.go syscall_linux_386.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksyscall syscall_linux.go syscall_linux_amd64.go
|
||||
// mksyscall.sh syscall_linux.go syscall_linux_amd64.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksysnum_darwin /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
|
||||
// mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,4 +1,4 @@
|
||||
// mksysnum_darwin /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
|
||||
// mksysnum_darwin.sh /home/rsc/pub/xnu-1228/bsd/kern/syscalls.master
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Generated by mklinux; DO NOT EDIT.
|
||||
// mklinux /usr/include/asm/unistd_32.h
|
||||
// mksysnum_linux.sh /usr/include/asm/unistd_32.h
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
// Generated by mklinux; DO NOT EDIT.
|
||||
// mklinux /usr/include/asm/unistd_64.h
|
||||
// mksysnum_linux.sh /usr/include/asm/unistd_64.h
|
||||
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
|
||||
|
||||
package syscall
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user