diff --git a/plan9/asm_plan9_386.s b/plan9/asm_plan9_386.s index f8c07c40..fc67ed1a 100644 --- a/plan9/asm_plan9_386.s +++ b/plan9/asm_plan9_386.s @@ -5,7 +5,7 @@ // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // so that go vet can check that they are correct. -#include "../../cmd/ld/textflag.h" +#include "../../cmd/ld/textflag.h" // TODO: How to refer to this? // // System call support for 386, Plan 9 @@ -139,7 +139,7 @@ TEXT ·seek(SB),NOSPLIT,$0-36 MOVL AX, 28(SP) // newoffset high SUBL $8, SP - CALL syscall·errstr(SB) + CALL plan9·errstr(SB) MOVL SP, SI ADDL $8, SP JMP copyresult6 diff --git a/plan9/asm_plan9_amd64.s b/plan9/asm_plan9_amd64.s index 220ea680..41cb77e4 100644 --- a/plan9/asm_plan9_amd64.s +++ b/plan9/asm_plan9_amd64.s @@ -5,7 +5,7 @@ // TODO(rsc): Rewrite all nn(SP) references into name+(nn-8)(FP) // so that go vet can check that they are correct. -#include "../../cmd/ld/textflag.h" +#include "../../cmd/ld/textflag.h" // TODO: How to refer to this? // // System call support for Plan 9 @@ -137,7 +137,7 @@ TEXT ·seek(SB),NOSPLIT,$0-56 MOVQ $-1, newoffset+40(SP) SUBQ $16, SP - CALL syscall·errstr(SB) + CALL plan9·errstr(SB) MOVQ SP, SI ADDQ $16, SP JMP copyresult6 diff --git a/plan9/dir_plan9.go b/plan9/dir_plan9.go index 697bf549..0955e0c5 100644 --- a/plan9/dir_plan9.go +++ b/plan9/dir_plan9.go @@ -4,7 +4,7 @@ // Plan 9 directory marshalling. See intro(5). -package syscall +package plan9 import "errors" @@ -18,7 +18,7 @@ var ( type Qid struct { Path uint64 // the file server's unique identification for the file Vers uint32 // version number for given Path - Type uint8 // the type of the file (syscall.QTDIR for example) + Type uint8 // the type of the file (plan9.QTDIR for example) } // A Dir contains the metadata for a file. @@ -54,7 +54,7 @@ var nullDir = Dir{ } // Null assigns special "don't touch" values to members of d to -// avoid modifying them during syscall.Wstat. +// avoid modifying them during plan9.Wstat. func (d *Dir) Null() { *d = nullDir } // Marshal encodes a 9P stat message corresponding to d into b diff --git a/plan9/env_plan9.go b/plan9/env_plan9.go index 9587ab5a..1ff88386 100644 --- a/plan9/env_plan9.go +++ b/plan9/env_plan9.go @@ -4,7 +4,7 @@ // Plan 9 environment variables. -package syscall +package plan9 import ( "errors" diff --git a/plan9/exec_plan9.go b/plan9/exec_plan9.go index 45ee542b..6d89f666 100644 --- a/plan9/exec_plan9.go +++ b/plan9/exec_plan9.go @@ -4,7 +4,7 @@ // Fork, exec, wait, etc. -package syscall +package plan9 import ( "runtime" diff --git a/plan9/mkall.sh b/plan9/mkall.sh index 886db133..9f73c606 100755 --- a/plan9/mkall.sh +++ b/plan9/mkall.sh @@ -3,7 +3,7 @@ # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. -# The syscall package provides access to the raw system call +# The plan9 package provides access to the raw system call # interface of the underlying operating system. Porting Go to # a new architecture/operating system combination requires # some manual effort, though there are tools that automate @@ -112,127 +112,12 @@ _* | *_ | _) echo 'undefined $GOOS_$GOARCH:' "$GOOSARCH" 1>&2 exit 1 ;; -darwin_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -darwin_amd64) - mkerrors="$mkerrors -m64" - mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -dragonfly_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -dragonfly" - mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -dragonfly_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -dragonfly" - mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_amd64) - mkerrors="$mkerrors -m64" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_arm) - mkerrors="$mkerrors" - mksyscall="./mksyscall.pl -l32 -arm" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - # Let the type of C char be singed for making the bare syscall - # API consistent across over platforms. - mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" - ;; -linux_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_32.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -linux_amd64) - unistd_h=$(ls -1 /usr/include/asm/unistd_64.h /usr/include/x86_64-linux-gnu/asm/unistd_64.h 2>/dev/null | head -1) - if [ "$unistd_h" = "" ]; then - echo >&2 cannot find unistd_64.h - exit 1 - fi - mkerrors="$mkerrors -m64" - mksysnum="./mksysnum_linux.pl $unistd_h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -linux_arm) - mkerrors="$mkerrors" - mksyscall="./mksyscall.pl -l32 -arm" - mksysnum="curl -s 'http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/arch/arm/include/uapi/asm/unistd.h' | ./mksysnum_linux.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -nacl_386) - mkerrors="" - mksyscall="./mksyscall.pl -l32 -nacl" - mksysnum="" - mktypes="" - ;; -nacl_amd64p32) - mkerrors="" - mksyscall="./mksyscall.pl -nacl" - mksysnum="" - mktypes="" - ;; -netbsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -netbsd" - mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -netbsd_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -netbsd" - mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -openbsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -openbsd" - mksysctl="./mksysctl_openbsd.pl" - zsysctl="zsysctl_openbsd.go" - mksysnum="curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -openbsd_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -openbsd" - mksysctl="./mksysctl_openbsd.pl" - zsysctl="zsysctl_openbsd.go" - mksysnum="curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; plan9_386) mkerrors= mksyscall="./mksyscall.pl -l32 -plan9" mksysnum="./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h" mktypes="XXX" ;; -solaris_amd64) - mksyscall="./mksyscall_solaris.pl" - mkerrors="$mkerrors -m64" - mksysnum= - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -windows_*) - mksyscall= - mkerrors= - zerrors= - ;; *) echo 'unrecognized $GOOS_$GOARCH: ' "$GOOSARCH" 1>&2 exit 1 @@ -242,18 +127,8 @@ esac ( if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi case "$GOOS" in - windows) - echo "GOOS= GOARCH= go build mksyscall_windows.go" - echo "./mksyscall_windows syscall_windows.go security_windows.go syscall_$GOOSARCH.go |gofmt >zsyscall_$GOOSARCH.go" - echo "rm -f ./mksyscall_windows" - ;; - *) + plan9) syscall_goos="syscall_$GOOS.go" - case "$GOOS" in - darwin | dragonfly | freebsd | netbsd | openbsd) - syscall_goos="syscall_bsd.go $syscall_goos" - ;; - esac if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos syscall_$GOOSARCH.go |gofmt >zsyscall_$GOOSARCH.go"; fi ;; esac diff --git a/plan9/mkerrors.sh b/plan9/mkerrors.sh index cf0afe0b..052c86d9 100755 --- a/plan9/mkerrors.sh +++ b/plan9/mkerrors.sh @@ -15,193 +15,6 @@ CC=${CC:-gcc} uname=$(uname) -includes_Darwin=' -#define _DARWIN_C_SOURCE -#define KERNEL -#define _DARWIN_USE_64_BIT_INODE -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -' - -includes_DragonFly=' -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -' - -includes_FreeBSD=' -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#if __FreeBSD__ >= 10 -#define IFT_CARP 0xf8 // IFT_CARP is deprecated in FreeBSD 10 -#undef SIOCAIFADDR -#define SIOCAIFADDR _IOW(105, 26, struct oifaliasreq) // ifaliasreq contains if_data -#undef SIOCSIFPHYADDR -#define SIOCSIFPHYADDR _IOW(105, 70, struct oifaliasreq) // ifaliasreq contains if_data -#endif -' - -includes_Linux=' -#define _LARGEFILE_SOURCE -#define _LARGEFILE64_SOURCE -#define _FILE_OFFSET_BITS 64 -#define _GNU_SOURCE - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#ifndef MSG_FASTOPEN -#define MSG_FASTOPEN 0x20000000 -#endif -' - -includes_NetBSD=' -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// Needed since refers to it... -#define schedppq 1 -' - -includes_OpenBSD=' -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -// We keep some constants not supported in OpenBSD 5.5 and beyond for -// the promise of compatibility. -#define EMUL_ENABLED 0x1 -#define EMUL_NATIVE 0x2 -#define IPV6_FAITH 0x1d -#define IPV6_OPTIONS 0x1 -#define IPV6_RTHDR_STRICT 0x1 -#define IPV6_SOCKOPT_RESERVED1 0x3 -#define SIOCGIFGENERIC 0xc020693a -#define SIOCSIFGENERIC 0x80206939 -#define WALTSIG 0x4 -' - -includes_SunOS=' -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -' - includes=' #include #include @@ -222,7 +35,7 @@ ccflags="$@" # Write go tool cgo -godefs input. ( - echo package syscall + echo package plan9 echo echo '/*' indirect="includes_$(uname)" diff --git a/plan9/mksyscall.pl b/plan9/mksyscall.pl index 6d35fa68..81c09ea7 100755 --- a/plan9/mksyscall.pl +++ b/plan9/mksyscall.pl @@ -4,7 +4,7 @@ # license that can be found in the LICENSE file. # This program reads a file containing function prototypes -# (like syscall_darwin.go) and generates system call bodies. +# (like syscall_plan9.go) and generates system call bodies. # The prototypes are marked by lines beginning with "//sys" # and read like func declarations if //sys is replaced by func, but: # * The parameter lists must give a name for each argument. @@ -304,7 +304,7 @@ print <&2 exit 1 @@ -242,11 +231,6 @@ esac ( if [ -n "$mkerrors" ]; then echo "$mkerrors |gofmt >$zerrors"; fi case "$GOOS" in - windows) - echo "GOOS= GOARCH= go build mksyscall_windows.go" - echo "./mksyscall_windows syscall_windows.go security_windows.go syscall_$GOOSARCH.go |gofmt >zsyscall_$GOOSARCH.go" - echo "rm -f ./mksyscall_windows" - ;; *) syscall_goos="syscall_$GOOS.go" case "$GOOS" in diff --git a/unix/mksyscall.pl b/unix/mksyscall.pl index 6d35fa68..3095bc8f 100755 --- a/unix/mksyscall.pl +++ b/unix/mksyscall.pl @@ -304,7 +304,7 @@ print <&2 exit 1 ;; -darwin_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -darwin_amd64) - mkerrors="$mkerrors -m64" - mksysnum="./mksysnum_darwin.pl /usr/include/sys/syscall.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -dragonfly_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -dragonfly" - mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -dragonfly_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -dragonfly" - mksysnum="curl -s 'http://gitweb.dragonflybsd.org/dragonfly.git/blob_plain/HEAD:/sys/kern/syscalls.master' | ./mksysnum_dragonfly.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_amd64) - mkerrors="$mkerrors -m64" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -freebsd_arm) - mkerrors="$mkerrors" - mksyscall="./mksyscall.pl -l32 -arm" - mksysnum="curl -s 'http://svn.freebsd.org/base/stable/10/sys/kern/syscalls.master' | ./mksysnum_freebsd.pl" - # Let the type of C char be singed for making the bare syscall - # API consistent across over platforms. - mktypes="GOARCH=$GOARCH go tool cgo -godefs -- -fsigned-char" - ;; -linux_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32" - mksysnum="./mksysnum_linux.pl /usr/include/asm/unistd_32.h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -linux_amd64) - unistd_h=$(ls -1 /usr/include/asm/unistd_64.h /usr/include/x86_64-linux-gnu/asm/unistd_64.h 2>/dev/null | head -1) - if [ "$unistd_h" = "" ]; then - echo >&2 cannot find unistd_64.h - exit 1 - fi - mkerrors="$mkerrors -m64" - mksysnum="./mksysnum_linux.pl $unistd_h" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -linux_arm) - mkerrors="$mkerrors" - mksyscall="./mksyscall.pl -l32 -arm" - mksysnum="curl -s 'http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/plain/arch/arm/include/uapi/asm/unistd.h' | ./mksysnum_linux.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -nacl_386) - mkerrors="" - mksyscall="./mksyscall.pl -l32 -nacl" - mksysnum="" - mktypes="" - ;; -nacl_amd64p32) - mkerrors="" - mksyscall="./mksyscall.pl -nacl" - mksysnum="" - mktypes="" - ;; -netbsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -netbsd" - mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -netbsd_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -netbsd" - mksysnum="curl -s 'http://cvsweb.netbsd.org/bsdweb.cgi/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_netbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -openbsd_386) - mkerrors="$mkerrors -m32" - mksyscall="./mksyscall.pl -l32 -openbsd" - mksysctl="./mksysctl_openbsd.pl" - zsysctl="zsysctl_openbsd.go" - mksysnum="curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -openbsd_amd64) - mkerrors="$mkerrors -m64" - mksyscall="./mksyscall.pl -openbsd" - mksysctl="./mksysctl_openbsd.pl" - zsysctl="zsysctl_openbsd.go" - mksysnum="curl -s 'http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/kern/syscalls.master' | ./mksysnum_openbsd.pl" - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; -plan9_386) - mkerrors= - mksyscall="./mksyscall.pl -l32 -plan9" - mksysnum="./mksysnum_plan9.sh /n/sources/plan9/sys/src/libc/9syscall/sys.h" - mktypes="XXX" - ;; -solaris_amd64) - mksyscall="./mksyscall_solaris.pl" - mkerrors="$mkerrors -m64" - mksysnum= - mktypes="GOARCH=$GOARCH go tool cgo -godefs" - ;; windows_*) mksyscall= mkerrors= @@ -247,15 +131,6 @@ esac echo "./mksyscall_windows syscall_windows.go security_windows.go syscall_$GOOSARCH.go |gofmt >zsyscall_$GOOSARCH.go" echo "rm -f ./mksyscall_windows" ;; - *) - syscall_goos="syscall_$GOOS.go" - case "$GOOS" in - darwin | dragonfly | freebsd | netbsd | openbsd) - syscall_goos="syscall_bsd.go $syscall_goos" - ;; - esac - if [ -n "$mksyscall" ]; then echo "$mksyscall $syscall_goos syscall_$GOOSARCH.go |gofmt >zsyscall_$GOOSARCH.go"; fi - ;; esac if [ -n "$mksysctl" ]; then echo "$mksysctl |gofmt >$zsysctl"; fi if [ -n "$mksysnum" ]; then echo "$mksysnum |gofmt >zsysnum_$GOOSARCH.go"; fi diff --git a/windows/mksyscall.pl b/windows/mksyscall.pl index 6d35fa68..817b4fe8 100755 --- a/windows/mksyscall.pl +++ b/windows/mksyscall.pl @@ -4,7 +4,7 @@ # license that can be found in the LICENSE file. # This program reads a file containing function prototypes -# (like syscall_darwin.go) and generates system call bodies. +# (like syscall_windows.go) and generates system call bodies. # The prototypes are marked by lines beginning with "//sys" # and read like func declarations if //sys is replaced by func, but: # * The parameter lists must give a name for each argument. @@ -304,7 +304,7 @@ print <> 8) build := uint16(r >> 16) diff --git a/windows/zerrors_windows.go b/windows/zerrors_windows.go index afdeae2b..2e1ea313 100644 --- a/windows/zerrors_windows.go +++ b/windows/zerrors_windows.go @@ -1,7 +1,7 @@ // mkerrors_windows.sh -m32 // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -package syscall +package windows // Go names for Windows errors. const ( diff --git a/windows/zerrors_windows_386.go b/windows/zerrors_windows_386.go index d1008bd0..b71e1f75 100644 --- a/windows/zerrors_windows_386.go +++ b/windows/zerrors_windows_386.go @@ -2,4 +2,4 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syscall +package windows diff --git a/windows/zerrors_windows_amd64.go b/windows/zerrors_windows_amd64.go index d1008bd0..b71e1f75 100644 --- a/windows/zerrors_windows_amd64.go +++ b/windows/zerrors_windows_amd64.go @@ -2,4 +2,4 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syscall +package windows diff --git a/windows/zsyscall_windows_386.go b/windows/zsyscall_windows_386.go index d55211ee..d8bce22f 100644 --- a/windows/zsyscall_windows_386.go +++ b/windows/zsyscall_windows_386.go @@ -1,7 +1,7 @@ // go build mksyscall_windows.go && ./mksyscall_windows syscall_windows.go security_windows.go syscall_windows_386.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -package syscall +package windows import "unsafe" diff --git a/windows/zsyscall_windows_amd64.go b/windows/zsyscall_windows_amd64.go index 47affab7..b27267d3 100644 --- a/windows/zsyscall_windows_amd64.go +++ b/windows/zsyscall_windows_amd64.go @@ -1,7 +1,7 @@ // go build mksyscall_windows.go && ./mksyscall_windows syscall_windows.go security_windows.go syscall_windows_amd64.go // MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -package syscall +package windows import "unsafe" diff --git a/windows/zsysnum_windows_386.go b/windows/zsysnum_windows_386.go index 36bf065d..c10a1181 100644 --- a/windows/zsysnum_windows_386.go +++ b/windows/zsysnum_windows_386.go @@ -1,3 +1,3 @@ // nothing to see here -package syscall +package windows diff --git a/windows/zsysnum_windows_amd64.go b/windows/zsysnum_windows_amd64.go index 36bf065d..c10a1181 100644 --- a/windows/zsysnum_windows_amd64.go +++ b/windows/zsysnum_windows_amd64.go @@ -1,3 +1,3 @@ // nothing to see here -package syscall +package windows diff --git a/windows/ztypes_windows.go b/windows/ztypes_windows.go index 8b3625f1..4efa75ec 100644 --- a/windows/ztypes_windows.go +++ b/windows/ztypes_windows.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syscall +package windows const ( // Windows errors. diff --git a/windows/ztypes_windows_386.go b/windows/ztypes_windows_386.go index 734ee6e0..10f33be0 100644 --- a/windows/ztypes_windows_386.go +++ b/windows/ztypes_windows_386.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syscall +package windows type WSAData struct { Version uint16 diff --git a/windows/ztypes_windows_amd64.go b/windows/ztypes_windows_amd64.go index 78aa55b2..3f272c24 100644 --- a/windows/ztypes_windows_amd64.go +++ b/windows/ztypes_windows_amd64.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package syscall +package windows type WSAData struct { Version uint16