From cd32498ba5dd12786ef50d670c6124df1b669cfe Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Thu, 13 Aug 2009 13:22:37 -0700 Subject: [PATCH] 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 --- src/pkg/syscall/{PORT => PORT.sh} | 24 +++++++++---------- src/pkg/syscall/{mkerrors => mkerrors.sh} | 3 +-- src/pkg/syscall/{mksyscall => mksyscall.sh} | 4 ++-- .../{mksysnum_darwin => mksysnum_darwin.sh} | 2 +- .../{mksysnum_linux => mksysnum_linux.sh} | 4 ++-- src/pkg/syscall/zerrors_darwin_386.go | 2 +- src/pkg/syscall/zerrors_darwin_amd64.go | 2 +- src/pkg/syscall/zerrors_linux_386.go | 2 +- src/pkg/syscall/zerrors_linux_amd64.go | 2 +- src/pkg/syscall/zsyscall_darwin_386.go | 2 +- src/pkg/syscall/zsyscall_darwin_amd64.go | 2 +- src/pkg/syscall/zsyscall_linux_386.go | 2 +- src/pkg/syscall/zsyscall_linux_amd64.go | 2 +- src/pkg/syscall/zsysnum_darwin_386.go | 2 +- src/pkg/syscall/zsysnum_darwin_amd64.go | 2 +- src/pkg/syscall/zsysnum_linux_386.go | 4 ++-- src/pkg/syscall/zsysnum_linux_amd64.go | 4 ++-- 17 files changed, 32 insertions(+), 33 deletions(-) rename src/pkg/syscall/{PORT => PORT.sh} (87%) rename src/pkg/syscall/{mkerrors => mkerrors.sh} (98%) rename src/pkg/syscall/{mksyscall => mksyscall.sh} (97%) rename src/pkg/syscall/{mksysnum_darwin => mksysnum_darwin.sh} (92%) rename src/pkg/syscall/{mksysnum_linux => mksysnum_linux.sh} (79%) diff --git a/src/pkg/syscall/PORT b/src/pkg/syscall/PORT.sh similarity index 87% rename from src/pkg/syscall/PORT rename to src/pkg/syscall/PORT.sh index 2eb05920c40..e7121c45bf2 100755 --- a/src/pkg/syscall/PORT +++ b/src/pkg/syscall/PORT.sh @@ -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" ;; *) diff --git a/src/pkg/syscall/mkerrors b/src/pkg/syscall/mkerrors.sh similarity index 98% rename from src/pkg/syscall/mkerrors rename to src/pkg/syscall/mkerrors.sh index 015f0214577..15835bdd6af 100755 --- a/src/pkg/syscall/mkerrors +++ b/src/pkg/syscall/mkerrors.sh @@ -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 diff --git a/src/pkg/syscall/mksyscall b/src/pkg/syscall/mksyscall.sh similarity index 97% rename from src/pkg/syscall/mksyscall rename to src/pkg/syscall/mksyscall.sh index 6a2c916cfc9..0a2fb205577 100755 --- a/src/pkg/syscall/mksyscall +++ b/src/pkg/syscall/mksyscall.sh @@ -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; } diff --git a/src/pkg/syscall/mksysnum_darwin b/src/pkg/syscall/mksysnum_darwin.sh similarity index 92% rename from src/pkg/syscall/mksysnum_darwin rename to src/pkg/syscall/mksysnum_darwin.sh index 74e2dfde97e..192e61a7313 100755 --- a/src/pkg/syscall/mksysnum_darwin +++ b/src/pkg/syscall/mksysnum_darwin.sh @@ -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 <