Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
92c8df46
Commit
92c8df46
authored
Jan 14, 2012
by
Mikio Hara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src: make use of runtime.GOOS, GOARCH instead of syscall.OS, ARCH
R=rsc, r CC=golang-dev
https://golang.org/cl/5545048
parent
5f733776
Changes
35
Show whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
51 additions
and
83 deletions
+51
-83
src/buildscript_darwin_386.sh
src/buildscript_darwin_386.sh
+1
-1
src/buildscript_darwin_amd64.sh
src/buildscript_darwin_amd64.sh
+1
-1
src/buildscript_freebsd_386.sh
src/buildscript_freebsd_386.sh
+1
-1
src/buildscript_freebsd_amd64.sh
src/buildscript_freebsd_amd64.sh
+1
-1
src/buildscript_linux_386.sh
src/buildscript_linux_386.sh
+1
-1
src/buildscript_linux_amd64.sh
src/buildscript_linux_amd64.sh
+1
-1
src/buildscript_linux_arm.sh
src/buildscript_linux_arm.sh
+1
-1
src/buildscript_netbsd_386.sh
src/buildscript_netbsd_386.sh
+1
-1
src/buildscript_netbsd_amd64.sh
src/buildscript_netbsd_amd64.sh
+1
-1
src/buildscript_openbsd_386.sh
src/buildscript_openbsd_386.sh
+1
-1
src/buildscript_openbsd_amd64.sh
src/buildscript_openbsd_amd64.sh
+1
-1
src/buildscript_plan9_386.sh
src/buildscript_plan9_386.sh
+1
-1
src/buildscript_windows_386.sh
src/buildscript_windows_386.sh
+1
-1
src/buildscript_windows_amd64.sh
src/buildscript_windows_amd64.sh
+1
-1
src/pkg/debug/gosym/pclntab_test.go
src/pkg/debug/gosym/pclntab_test.go
+2
-2
src/pkg/net/file_test.go
src/pkg/net/file_test.go
+2
-3
src/pkg/net/server_test.go
src/pkg/net/server_test.go
+3
-4
src/pkg/os/os_test.go
src/pkg/os/os_test.go
+15
-15
src/pkg/os/os_unix_test.go
src/pkg/os/os_unix_test.go
+2
-1
src/pkg/os/path_test.go
src/pkg/os/path_test.go
+2
-3
src/pkg/syscall/Makefile
src/pkg/syscall/Makefile
+0
-1
src/pkg/syscall/exec_bsd.go
src/pkg/syscall/exec_bsd.go
+2
-1
src/pkg/syscall/exec_unix.go
src/pkg/syscall/exec_unix.go
+2
-1
src/pkg/syscall/syscall_386.go
src/pkg/syscall/syscall_386.go
+0
-7
src/pkg/syscall/syscall_amd64.go
src/pkg/syscall/syscall_amd64.go
+0
-7
src/pkg/syscall/syscall_arm.go
src/pkg/syscall/syscall_arm.go
+0
-7
src/pkg/syscall/syscall_bsd.go
src/pkg/syscall/syscall_bsd.go
+5
-2
src/pkg/syscall/syscall_darwin.go
src/pkg/syscall/syscall_darwin.go
+0
-2
src/pkg/syscall/syscall_freebsd.go
src/pkg/syscall/syscall_freebsd.go
+0
-2
src/pkg/syscall/syscall_linux.go
src/pkg/syscall/syscall_linux.go
+0
-2
src/pkg/syscall/syscall_netbsd.go
src/pkg/syscall/syscall_netbsd.go
+0
-2
src/pkg/syscall/syscall_openbsd.go
src/pkg/syscall/syscall_openbsd.go
+0
-2
src/pkg/syscall/syscall_plan9.go
src/pkg/syscall/syscall_plan9.go
+0
-2
src/pkg/syscall/syscall_unix.go
src/pkg/syscall/syscall_unix.go
+2
-1
src/pkg/syscall/syscall_windows.go
src/pkg/syscall/syscall_windows.go
+0
-2
No files found.
src/buildscript_darwin_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/darwin_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/darwin_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_darwin.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
bsd.go ./syscall_darwin.go ./syscall_darwin_386.go ./syscall_unix.go ./zerrors_darwin_386.go ./zsyscall_darwin_386.go ./zsysnum_darwin_386.go ./ztypes_darwin_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_darwin.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_darwin.go ./syscall_darwin_386.go ./syscall_unix.go ./zerrors_darwin_386.go ./zsyscall_darwin_386.go ./zsysnum_darwin_386.go ./ztypes_darwin_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_darwin_386.8
-DGOOS_darwin
-DGOARCH_386
./asm_darwin_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_darwin_386.8
-DGOOS_darwin
-DGOARCH_386
./asm_darwin_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_darwin_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_darwin_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/darwin_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/darwin_386/syscall.a
...
...
src/buildscript_darwin_amd64.sh
View file @
92c8df46
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/darwin_amd64/encoding/base64.a
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/darwin_amd64/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_darwin.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
bsd.go ./syscall_darwin.go ./syscall_darwin_amd64.go ./syscall_unix.go ./zerrors_darwin_amd64.go ./zsyscall_darwin_amd64.go ./zsysnum_darwin_amd64.go ./ztypes_darwin_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_darwin.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_darwin.go ./syscall_darwin_amd64.go ./syscall_unix.go ./zerrors_darwin_amd64.go ./zsyscall_darwin_amd64.go ./zsysnum_darwin_amd64.go ./ztypes_darwin_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_darwin_amd64.6
-DGOOS_darwin
-DGOARCH_amd64
./asm_darwin_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_darwin_amd64.6
-DGOOS_darwin
-DGOARCH_amd64
./asm_darwin_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_darwin_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_darwin_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/darwin_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/darwin_amd64/syscall.a
...
...
src/buildscript_freebsd_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/freebsd_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/freebsd_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_freebsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
bsd.go ./syscall_freebsd.go ./syscall_freebsd_386.go ./syscall_unix.go ./zerrors_freebsd_386.go ./zsyscall_freebsd_386.go ./zsysnum_freebsd_386.go ./ztypes_freebsd_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_freebsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_freebsd.go ./syscall_freebsd_386.go ./syscall_unix.go ./zerrors_freebsd_386.go ./zsyscall_freebsd_386.go ./zsysnum_freebsd_386.go ./ztypes_freebsd_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_freebsd_386.8
-DGOOS_freebsd
-DGOARCH_386
./asm_freebsd_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_freebsd_386.8
-DGOOS_freebsd
-DGOARCH_386
./asm_freebsd_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_freebsd_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_freebsd_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/freebsd_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/freebsd_386/syscall.a
...
...
src/buildscript_freebsd_amd64.sh
View file @
92c8df46
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/freebsd_amd64/encoding/base64.a
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/freebsd_amd64/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_freebsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
bsd.go ./syscall_freebsd.go ./syscall_freebsd_amd64.go ./syscall_unix.go ./zerrors_freebsd_amd64.go ./zsyscall_freebsd_amd64.go ./zsysnum_freebsd_amd64.go ./ztypes_freebsd_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_freebsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_freebsd.go ./syscall_freebsd_amd64.go ./syscall_unix.go ./zerrors_freebsd_amd64.go ./zsyscall_freebsd_amd64.go ./zsysnum_freebsd_amd64.go ./ztypes_freebsd_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_freebsd_amd64.6
-DGOOS_freebsd
-DGOARCH_amd64
./asm_freebsd_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_freebsd_amd64.6
-DGOOS_freebsd
-DGOARCH_amd64
./asm_freebsd_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_freebsd_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_freebsd_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/freebsd_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/freebsd_amd64/syscall.a
...
...
src/buildscript_linux_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
linux.go ./syscall_linux_386.go ./syscall_unix.go ./zerrors_linux_386.go ./zsyscall_linux_386.go ./zsysnum_linux_386.go ./ztypes_linux_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_linux.go ./syscall_linux_386.go ./syscall_unix.go ./zerrors_linux_386.go ./zsyscall_linux_386.go ./zsysnum_linux_386.go ./ztypes_linux_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_386.8
-DGOOS_linux
-DGOARCH_386
./asm_linux_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_386.8
-DGOOS_linux
-DGOARCH_386
./asm_linux_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_linux_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_linux_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_386/syscall.a
...
...
src/buildscript_linux_amd64.sh
View file @
92c8df46
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_amd64/encoding/base64.a
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_amd64/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
linux.go ./syscall_linux_amd64.go ./syscall_unix.go ./zerrors_linux_amd64.go ./zsyscall_linux_amd64.go ./zsysnum_linux_amd64.go ./ztypes_linux_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_linux.go ./syscall_linux_amd64.go ./syscall_unix.go ./zerrors_linux_amd64.go ./zsyscall_linux_amd64.go ./zsysnum_linux_amd64.go ./ztypes_linux_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_amd64.6
-DGOOS_linux
-DGOARCH_amd64
./asm_linux_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_amd64.6
-DGOOS_linux
-DGOARCH_amd64
./asm_linux_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_linux_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_linux_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_amd64/syscall.a
...
...
src/buildscript_linux_arm.sh
View file @
92c8df46
...
@@ -235,7 +235,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_arm/encoding/base64.a
...
@@ -235,7 +235,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/linux_arm/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
5g
-o
"
$WORK
"
/syscall/_obj/_go_.5
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
arm.go ./syscall_
linux.go ./syscall_linux_arm.go ./syscall_unix.go ./zerrors_linux_arm.go ./zsyscall_linux_arm.go ./zsysnum_linux_arm.go ./ztypes_linux_arm.go
5g
-o
"
$WORK
"
/syscall/_obj/_go_.5
-p
syscall
-I
"
$WORK
"
./env_unix.go ./exec_linux.go ./exec_unix.go ./lsf_linux.go ./netlink_linux.go ./sockcmsg_linux.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_linux.go ./syscall_linux_arm.go ./syscall_unix.go ./zerrors_linux_arm.go ./zsyscall_linux_arm.go ./zsysnum_linux_arm.go ./ztypes_linux_arm.go
5a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_arm.5
-DGOOS_linux
-DGOARCH_arm
./asm_linux_arm.s
5a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_linux_arm.5
-DGOOS_linux
-DGOARCH_arm
./asm_linux_arm.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.5
"
$WORK
"
/syscall/_obj/asm_linux_arm.5
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.5
"
$WORK
"
/syscall/_obj/asm_linux_arm.5
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_arm/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/linux_arm/syscall.a
...
...
src/buildscript_netbsd_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/netbsd_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/netbsd_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_netbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
bsd.go ./syscall_netbsd.go ./syscall_netbsd_386.go ./syscall_unix.go ./zerrors_netbsd_386.go ./zsyscall_netbsd_386.go ./zsysnum_netbsd_386.go ./ztypes_netbsd_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_netbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_netbsd.go ./syscall_netbsd_386.go ./syscall_unix.go ./zerrors_netbsd_386.go ./zsyscall_netbsd_386.go ./zsysnum_netbsd_386.go ./ztypes_netbsd_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_netbsd_386.8
-DGOOS_netbsd
-DGOARCH_386
./asm_netbsd_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_netbsd_386.8
-DGOOS_netbsd
-DGOARCH_386
./asm_netbsd_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_netbsd_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_netbsd_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/netbsd_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/netbsd_386/syscall.a
...
...
src/buildscript_netbsd_amd64.sh
View file @
92c8df46
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/netbsd_amd64/encoding/base64.a
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/netbsd_amd64/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_netbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
bsd.go ./syscall_netbsd.go ./syscall_netbsd_amd64.go ./syscall_unix.go ./zerrors_netbsd_amd64.go ./zsyscall_netbsd_amd64.go ./zsysnum_netbsd_amd64.go ./ztypes_netbsd_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_netbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_netbsd.go ./syscall_netbsd_amd64.go ./syscall_unix.go ./zerrors_netbsd_amd64.go ./zsyscall_netbsd_amd64.go ./zsysnum_netbsd_amd64.go ./ztypes_netbsd_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_netbsd_amd64.6
-DGOOS_netbsd
-DGOARCH_amd64
./asm_netbsd_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_netbsd_amd64.6
-DGOOS_netbsd
-DGOARCH_amd64
./asm_netbsd_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_netbsd_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_netbsd_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/netbsd_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/netbsd_amd64/syscall.a
...
...
src/buildscript_openbsd_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/openbsd_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/openbsd_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_openbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
bsd.go ./syscall_openbsd.go ./syscall_openbsd_386.go ./syscall_unix.go ./zerrors_openbsd_386.go ./zsyscall_openbsd_386.go ./zsysctl_openbsd.go ./zsysnum_openbsd_386.go ./ztypes_openbsd_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_openbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_openbsd.go ./syscall_openbsd_386.go ./syscall_unix.go ./zerrors_openbsd_386.go ./zsyscall_openbsd_386.go ./zsysctl_openbsd.go ./zsysnum_openbsd_386.go ./ztypes_openbsd_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_openbsd_386.8
-DGOOS_openbsd
-DGOARCH_386
./asm_openbsd_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_openbsd_386.8
-DGOOS_openbsd
-DGOARCH_386
./asm_openbsd_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_openbsd_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_openbsd_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/openbsd_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/openbsd_386/syscall.a
...
...
src/buildscript_openbsd_amd64.sh
View file @
92c8df46
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/openbsd_amd64/encoding/base64.a
...
@@ -231,7 +231,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/openbsd_amd64/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_openbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
bsd.go ./syscall_openbsd.go ./syscall_openbsd_amd64.go ./syscall_unix.go ./zerrors_openbsd_amd64.go ./zsyscall_openbsd_amd64.go ./zsysctl_openbsd.go ./zsysnum_openbsd_amd64.go ./ztypes_openbsd_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./bpf_bsd.go ./env_unix.go ./exec_bsd.go ./exec_unix.go ./route_bsd.go ./route_openbsd.go ./sockcmsg_unix.go ./str.go ./syscall.go ./syscall_bsd.go ./syscall_openbsd.go ./syscall_openbsd_amd64.go ./syscall_unix.go ./zerrors_openbsd_amd64.go ./zsyscall_openbsd_amd64.go ./zsysctl_openbsd.go ./zsysnum_openbsd_amd64.go ./ztypes_openbsd_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_openbsd_amd64.6
-DGOOS_openbsd
-DGOARCH_amd64
./asm_openbsd_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_openbsd_amd64.6
-DGOOS_openbsd
-DGOARCH_amd64
./asm_openbsd_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_openbsd_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_openbsd_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/openbsd_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/openbsd_amd64/syscall.a
...
...
src/buildscript_plan9_386.sh
View file @
92c8df46
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/plan9_386/encoding/base64.a
...
@@ -232,7 +232,7 @@ cp "$WORK"/encoding/base64.a "$GOROOT"/pkg/plan9_386/encoding/base64.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./env_plan9.go ./exec_plan9.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
plan9.go ./syscall_plan9_386.go ./zerrors_plan9_386.go ./zsyscall_plan9_386.go ./zsysnum_plan9_386.go ./ztypes_plan9_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./env_plan9.go ./exec_plan9.go ./str.go ./syscall.go ./syscall_plan9.go ./syscall_plan9_386.go ./zerrors_plan9_386.go ./zsyscall_plan9_386.go ./zsysnum_plan9_386.go ./ztypes_plan9_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_plan9_386.8
-DGOOS_plan9
-DGOARCH_386
./asm_plan9_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_plan9_386.8
-DGOOS_plan9
-DGOARCH_386
./asm_plan9_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_plan9_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_plan9_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/plan9_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/plan9_386/syscall.a
...
...
src/buildscript_windows_386.sh
View file @
92c8df46
...
@@ -244,7 +244,7 @@ cp "$WORK"/unicode/utf16.a "$GOROOT"/pkg/windows_386/unicode/utf16.a
...
@@ -244,7 +244,7 @@ cp "$WORK"/unicode/utf16.a "$GOROOT"/pkg/windows_386/unicode/utf16.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./dll_windows.go ./env_windows.go ./exec_windows.go ./str.go ./syscall.go ./syscall_
386.go ./syscall_
windows.go ./syscall_windows_386.go ./zerrors_windows.go ./zerrors_windows_386.go ./zsyscall_windows_386.go ./zsysnum_windows_386.go ./ztypes_windows.go ./ztypes_windows_386.go
8g
-o
"
$WORK
"
/syscall/_obj/_go_.8
-p
syscall
-I
"
$WORK
"
./dll_windows.go ./env_windows.go ./exec_windows.go ./str.go ./syscall.go ./syscall_windows.go ./syscall_windows_386.go ./zerrors_windows.go ./zerrors_windows_386.go ./zsyscall_windows_386.go ./zsysnum_windows_386.go ./ztypes_windows.go ./ztypes_windows_386.go
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_windows_386.8
-DGOOS_windows
-DGOARCH_386
./asm_windows_386.s
8a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_windows_386.8
-DGOOS_windows
-DGOARCH_386
./asm_windows_386.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_windows_386.8
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.8
"
$WORK
"
/syscall/_obj/asm_windows_386.8
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/windows_386/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/windows_386/syscall.a
...
...
src/buildscript_windows_amd64.sh
View file @
92c8df46
...
@@ -243,7 +243,7 @@ cp "$WORK"/unicode/utf16.a "$GOROOT"/pkg/windows_amd64/unicode/utf16.a
...
@@ -243,7 +243,7 @@ cp "$WORK"/unicode/utf16.a "$GOROOT"/pkg/windows_amd64/unicode/utf16.a
mkdir
-p
"
$WORK
"
/syscall/_obj/
mkdir
-p
"
$WORK
"
/syscall/_obj/
cd
"
$GOROOT
"
/src/pkg/syscall
cd
"
$GOROOT
"
/src/pkg/syscall
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./dll_windows.go ./env_windows.go ./exec_windows.go ./str.go ./syscall.go ./syscall_
amd64.go ./syscall_
windows.go ./syscall_windows_amd64.go ./zerrors_windows.go ./zerrors_windows_amd64.go ./zsyscall_windows_amd64.go ./zsysnum_windows_amd64.go ./ztypes_windows.go ./ztypes_windows_amd64.go
6g
-o
"
$WORK
"
/syscall/_obj/_go_.6
-p
syscall
-I
"
$WORK
"
./dll_windows.go ./env_windows.go ./exec_windows.go ./str.go ./syscall.go ./syscall_windows.go ./syscall_windows_amd64.go ./zerrors_windows.go ./zerrors_windows_amd64.go ./zsyscall_windows_amd64.go ./zsysnum_windows_amd64.go ./ztypes_windows.go ./ztypes_windows_amd64.go
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_windows_amd64.6
-DGOOS_windows
-DGOARCH_amd64
./asm_windows_amd64.s
6a
-I
"
$WORK
"
/syscall/_obj/
-o
"
$WORK
"
/syscall/_obj/asm_windows_amd64.6
-DGOOS_windows
-DGOARCH_amd64
./asm_windows_amd64.s
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_windows_amd64.6
gopack grc
"
$WORK
"
/syscall.a
"
$WORK
"
/syscall/_obj/_go_.6
"
$WORK
"
/syscall/_obj/asm_windows_amd64.6
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/windows_amd64/syscall.a
cp
"
$WORK
"
/syscall.a
"
$GOROOT
"
/pkg/windows_amd64/syscall.a
...
...
src/pkg/debug/gosym/pclntab_test.go
View file @
92c8df46
...
@@ -7,14 +7,14 @@ package gosym
...
@@ -7,14 +7,14 @@ package gosym
import
(
import
(
"debug/elf"
"debug/elf"
"os"
"os"
"
syscall
"
"
runtime
"
"testing"
"testing"
)
)
func
dotest
()
bool
{
func
dotest
()
bool
{
// For now, only works on ELF platforms.
// For now, only works on ELF platforms.
// TODO: convert to work with new go tool
// TODO: convert to work with new go tool
return
false
&&
syscall
.
OS
==
"linux"
&&
os
.
Getenv
(
"GOARCH"
)
==
"amd64"
return
false
&&
runtime
.
GOOS
==
"linux"
&&
runtime
.
GOARCH
==
"amd64"
}
}
func
getTable
(
t
*
testing
.
T
)
*
Table
{
func
getTable
(
t
*
testing
.
T
)
*
Table
{
...
...
src/pkg/net/file_test.go
View file @
92c8df46
...
@@ -8,7 +8,6 @@ import (
...
@@ -8,7 +8,6 @@ import (
"os"
"os"
"reflect"
"reflect"
"runtime"
"runtime"
"syscall"
"testing"
"testing"
)
)
...
@@ -67,7 +66,7 @@ func TestFileListener(t *testing.T) {
...
@@ -67,7 +66,7 @@ func TestFileListener(t *testing.T) {
testFileListener
(
t
,
"tcp"
,
"127.0.0.1"
)
testFileListener
(
t
,
"tcp"
,
"127.0.0.1"
)
testFileListener
(
t
,
"tcp"
,
"[::ffff:127.0.0.1]"
)
testFileListener
(
t
,
"tcp"
,
"[::ffff:127.0.0.1]"
)
}
}
if
syscall
.
OS
==
"linux"
{
if
runtime
.
GO
OS
==
"linux"
{
testFileListener
(
t
,
"unix"
,
"@gotest/net"
)
testFileListener
(
t
,
"unix"
,
"@gotest/net"
)
testFileListener
(
t
,
"unixpacket"
,
"@gotest/net"
)
testFileListener
(
t
,
"unixpacket"
,
"@gotest/net"
)
}
}
...
@@ -132,7 +131,7 @@ func TestFilePacketConn(t *testing.T) {
...
@@ -132,7 +131,7 @@ func TestFilePacketConn(t *testing.T) {
if
supportsIPv6
&&
supportsIPv4map
{
if
supportsIPv6
&&
supportsIPv4map
{
testFilePacketConnDial
(
t
,
"udp"
,
"[::ffff:127.0.0.1]:12345"
)
testFilePacketConnDial
(
t
,
"udp"
,
"[::ffff:127.0.0.1]:12345"
)
}
}
if
syscall
.
OS
==
"linux"
{
if
runtime
.
GO
OS
==
"linux"
{
testFilePacketConnListen
(
t
,
"unixgram"
,
"@gotest1/net"
)
testFilePacketConnListen
(
t
,
"unixgram"
,
"@gotest1/net"
)
}
}
}
}
src/pkg/net/server_test.go
View file @
92c8df46
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"os"
"os"
"runtime"
"runtime"
"strings"
"strings"
"syscall"
"testing"
"testing"
)
)
...
@@ -115,7 +114,7 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
...
@@ -115,7 +114,7 @@ func doTest(t *testing.T, network, listenaddr, dialaddr string) {
}
}
func
TestTCPServer
(
t
*
testing
.
T
)
{
func
TestTCPServer
(
t
*
testing
.
T
)
{
if
syscall
.
OS
!=
"openbsd"
{
if
runtime
.
GO
OS
!=
"openbsd"
{
doTest
(
t
,
"tcp"
,
""
,
"127.0.0.1"
)
doTest
(
t
,
"tcp"
,
""
,
"127.0.0.1"
)
}
}
doTest
(
t
,
"tcp"
,
"0.0.0.0"
,
"127.0.0.1"
)
doTest
(
t
,
"tcp"
,
"0.0.0.0"
,
"127.0.0.1"
)
...
@@ -155,7 +154,7 @@ func TestUnixServer(t *testing.T) {
...
@@ -155,7 +154,7 @@ func TestUnixServer(t *testing.T) {
os
.
Remove
(
"/tmp/gotest.net"
)
os
.
Remove
(
"/tmp/gotest.net"
)
doTest
(
t
,
"unix"
,
"/tmp/gotest.net"
,
"/tmp/gotest.net"
)
doTest
(
t
,
"unix"
,
"/tmp/gotest.net"
,
"/tmp/gotest.net"
)
os
.
Remove
(
"/tmp/gotest.net"
)
os
.
Remove
(
"/tmp/gotest.net"
)
if
syscall
.
OS
==
"linux"
{
if
runtime
.
GO
OS
==
"linux"
{
doTest
(
t
,
"unixpacket"
,
"/tmp/gotest.net"
,
"/tmp/gotest.net"
)
doTest
(
t
,
"unixpacket"
,
"/tmp/gotest.net"
,
"/tmp/gotest.net"
)
os
.
Remove
(
"/tmp/gotest.net"
)
os
.
Remove
(
"/tmp/gotest.net"
)
// Test abstract unix domain socket, a Linux-ism
// Test abstract unix domain socket, a Linux-ism
...
@@ -237,7 +236,7 @@ func TestUnixDatagramServer(t *testing.T) {
...
@@ -237,7 +236,7 @@ func TestUnixDatagramServer(t *testing.T) {
doTestPacket
(
t
,
"unixgram"
,
"/tmp/gotest1.net"
,
"/tmp/gotest1.net"
,
isEmpty
)
doTestPacket
(
t
,
"unixgram"
,
"/tmp/gotest1.net"
,
"/tmp/gotest1.net"
,
isEmpty
)
os
.
Remove
(
"/tmp/gotest1.net"
)
os
.
Remove
(
"/tmp/gotest1.net"
)
os
.
Remove
(
"/tmp/gotest1.net.local"
)
os
.
Remove
(
"/tmp/gotest1.net.local"
)
if
syscall
.
OS
==
"linux"
{
if
runtime
.
GO
OS
==
"linux"
{
// Test abstract unix domain socket, a Linux-ism
// Test abstract unix domain socket, a Linux-ism
doTestPacket
(
t
,
"unixgram"
,
"@gotest1/net"
,
"@gotest1/net"
,
isEmpty
)
doTestPacket
(
t
,
"unixgram"
,
"@gotest1/net"
,
"@gotest1/net"
,
isEmpty
)
}
}
...
...
src/pkg/os/os_test.go
View file @
92c8df46
...
@@ -11,8 +11,8 @@ import (
...
@@ -11,8 +11,8 @@ import (
"io/ioutil"
"io/ioutil"
.
"os"
.
"os"
"path/filepath"
"path/filepath"
"runtime"
"strings"
"strings"
"syscall"
"testing"
"testing"
"time"
"time"
)
)
...
@@ -35,7 +35,7 @@ type sysDir struct {
...
@@ -35,7 +35,7 @@ type sysDir struct {
}
}
var
sysdir
=
func
()
(
sd
*
sysDir
)
{
var
sysdir
=
func
()
(
sd
*
sysDir
)
{
switch
syscall
.
OS
{
switch
runtime
.
GO
OS
{
case
"windows"
:
case
"windows"
:
sd
=
&
sysDir
{
sd
=
&
sysDir
{
Getenv
(
"SystemRoot"
)
+
"
\\
system32
\\
drivers
\\
etc"
,
Getenv
(
"SystemRoot"
)
+
"
\\
system32
\\
drivers
\\
etc"
,
...
@@ -89,7 +89,7 @@ func size(name string, t *testing.T) int64 {
...
@@ -89,7 +89,7 @@ func size(name string, t *testing.T) int64 {
}
}
func
equal
(
name1
,
name2
string
)
(
r
bool
)
{
func
equal
(
name1
,
name2
string
)
(
r
bool
)
{
switch
syscall
.
OS
{
switch
runtime
.
GO
OS
{
case
"windows"
:
case
"windows"
:
r
=
strings
.
ToLower
(
name1
)
==
strings
.
ToLower
(
name2
)
r
=
strings
.
ToLower
(
name1
)
==
strings
.
ToLower
(
name2
)
default
:
default
:
...
@@ -103,7 +103,7 @@ func newFile(testName string, t *testing.T) (f *File) {
...
@@ -103,7 +103,7 @@ func newFile(testName string, t *testing.T) (f *File) {
// On Unix, override $TMPDIR in case the user
// On Unix, override $TMPDIR in case the user
// has it set to an NFS-mounted directory.
// has it set to an NFS-mounted directory.
dir
:=
""
dir
:=
""
if
syscall
.
OS
!=
"windows"
{
if
runtime
.
GO
OS
!=
"windows"
{
dir
=
"/tmp"
dir
=
"/tmp"
}
}
f
,
err
:=
ioutil
.
TempFile
(
dir
,
"_Go_"
+
testName
)
f
,
err
:=
ioutil
.
TempFile
(
dir
,
"_Go_"
+
testName
)
...
@@ -278,7 +278,7 @@ func smallReaddirnames(file *File, length int, t *testing.T) []string {
...
@@ -278,7 +278,7 @@ func smallReaddirnames(file *File, length int, t *testing.T) []string {
func
TestReaddirnamesOneAtATime
(
t
*
testing
.
T
)
{
func
TestReaddirnamesOneAtATime
(
t
*
testing
.
T
)
{
// big directory that doesn't change often.
// big directory that doesn't change often.
dir
:=
"/usr/bin"
dir
:=
"/usr/bin"
switch
syscall
.
OS
{
switch
runtime
.
GO
OS
{
case
"windows"
:
case
"windows"
:
dir
=
Getenv
(
"SystemRoot"
)
+
"
\\
system32"
dir
=
Getenv
(
"SystemRoot"
)
+
"
\\
system32"
case
"plan9"
:
case
"plan9"
:
...
@@ -382,7 +382,7 @@ func TestReaddirNValues(t *testing.T) {
...
@@ -382,7 +382,7 @@ func TestReaddirNValues(t *testing.T) {
func
TestHardLink
(
t
*
testing
.
T
)
{
func
TestHardLink
(
t
*
testing
.
T
)
{
// Hardlinks are not supported under windows or Plan 9.
// Hardlinks are not supported under windows or Plan 9.
if
syscall
.
OS
==
"windows"
||
syscall
.
OS
==
"plan9"
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GO
OS
==
"plan9"
{
return
return
}
}
from
,
to
:=
"hardlinktestfrom"
,
"hardlinktestto"
from
,
to
:=
"hardlinktestfrom"
,
"hardlinktestto"
...
@@ -415,7 +415,7 @@ func TestHardLink(t *testing.T) {
...
@@ -415,7 +415,7 @@ func TestHardLink(t *testing.T) {
func
TestSymLink
(
t
*
testing
.
T
)
{
func
TestSymLink
(
t
*
testing
.
T
)
{
// Symlinks are not supported under windows or Plan 9.
// Symlinks are not supported under windows or Plan 9.
if
syscall
.
OS
==
"windows"
||
syscall
.
OS
==
"plan9"
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GO
OS
==
"plan9"
{
return
return
}
}
from
,
to
:=
"symlinktestfrom"
,
"symlinktestto"
from
,
to
:=
"symlinktestfrom"
,
"symlinktestto"
...
@@ -477,7 +477,7 @@ func TestSymLink(t *testing.T) {
...
@@ -477,7 +477,7 @@ func TestSymLink(t *testing.T) {
func
TestLongSymlink
(
t
*
testing
.
T
)
{
func
TestLongSymlink
(
t
*
testing
.
T
)
{
// Symlinks are not supported under windows or Plan 9.
// Symlinks are not supported under windows or Plan 9.
if
syscall
.
OS
==
"windows"
||
syscall
.
OS
==
"plan9"
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GO
OS
==
"plan9"
{
return
return
}
}
s
:=
"0123456789abcdef"
s
:=
"0123456789abcdef"
...
@@ -547,7 +547,7 @@ func exec(t *testing.T, dir, cmd string, args []string, expect string) {
...
@@ -547,7 +547,7 @@ func exec(t *testing.T, dir, cmd string, args []string, expect string) {
func
TestStartProcess
(
t
*
testing
.
T
)
{
func
TestStartProcess
(
t
*
testing
.
T
)
{
var
dir
,
cmd
,
le
string
var
dir
,
cmd
,
le
string
var
args
[]
string
var
args
[]
string
if
syscall
.
OS
==
"windows"
{
if
runtime
.
GO
OS
==
"windows"
{
le
=
"
\r\n
"
le
=
"
\r\n
"
cmd
=
Getenv
(
"COMSPEC"
)
cmd
=
Getenv
(
"COMSPEC"
)
dir
=
Getenv
(
"SystemRoot"
)
dir
=
Getenv
(
"SystemRoot"
)
...
@@ -578,7 +578,7 @@ func checkMode(t *testing.T, path string, mode FileMode) {
...
@@ -578,7 +578,7 @@ func checkMode(t *testing.T, path string, mode FileMode) {
func
TestChmod
(
t
*
testing
.
T
)
{
func
TestChmod
(
t
*
testing
.
T
)
{
// Chmod is not supported under windows.
// Chmod is not supported under windows.
if
syscall
.
OS
==
"windows"
{
if
runtime
.
GO
OS
==
"windows"
{
return
return
}
}
f
:=
newFile
(
"TestChmod"
,
t
)
f
:=
newFile
(
"TestChmod"
,
t
)
...
@@ -680,7 +680,7 @@ func TestChtimes(t *testing.T) {
...
@@ -680,7 +680,7 @@ func TestChtimes(t *testing.T) {
*/
*/
pat
:=
Atime
(
postStat
)
pat
:=
Atime
(
postStat
)
pmt
:=
postStat
.
ModTime
()
pmt
:=
postStat
.
ModTime
()
if
!
pat
.
Before
(
at
)
&&
syscall
.
OS
!=
"plan9"
{
if
!
pat
.
Before
(
at
)
&&
runtime
.
GO
OS
!=
"plan9"
{
t
.
Errorf
(
"AccessTime didn't go backwards; was=%d, after=%d"
,
at
,
pat
)
t
.
Errorf
(
"AccessTime didn't go backwards; was=%d, after=%d"
,
at
,
pat
)
}
}
...
@@ -691,7 +691,7 @@ func TestChtimes(t *testing.T) {
...
@@ -691,7 +691,7 @@ func TestChtimes(t *testing.T) {
func
TestChdirAndGetwd
(
t
*
testing
.
T
)
{
func
TestChdirAndGetwd
(
t
*
testing
.
T
)
{
// TODO(brainman): file.Chdir() is not implemented on windows.
// TODO(brainman): file.Chdir() is not implemented on windows.
if
syscall
.
OS
==
"windows"
{
if
runtime
.
GO
OS
==
"windows"
{
return
return
}
}
fd
,
err
:=
Open
(
"."
)
fd
,
err
:=
Open
(
"."
)
...
@@ -702,7 +702,7 @@ func TestChdirAndGetwd(t *testing.T) {
...
@@ -702,7 +702,7 @@ func TestChdirAndGetwd(t *testing.T) {
// (unlike, say, /var, /etc, and /tmp).
// (unlike, say, /var, /etc, and /tmp).
dirs
:=
[]
string
{
"/"
,
"/usr/bin"
}
dirs
:=
[]
string
{
"/"
,
"/usr/bin"
}
// /usr/bin does not usually exist on Plan 9.
// /usr/bin does not usually exist on Plan 9.
if
syscall
.
OS
==
"plan9"
{
if
runtime
.
GO
OS
==
"plan9"
{
dirs
=
[]
string
{
"/"
,
"/usr"
}
dirs
=
[]
string
{
"/"
,
"/usr"
}
}
}
for
mode
:=
0
;
mode
<
2
;
mode
++
{
for
mode
:=
0
;
mode
<
2
;
mode
++
{
...
@@ -830,7 +830,7 @@ func TestOpenError(t *testing.T) {
...
@@ -830,7 +830,7 @@ func TestOpenError(t *testing.T) {
t
.
Errorf
(
"Open(%q, %d) returns error of %T type; want *PathError"
,
tt
.
path
,
tt
.
mode
,
err
)
t
.
Errorf
(
"Open(%q, %d) returns error of %T type; want *PathError"
,
tt
.
path
,
tt
.
mode
,
err
)
}
}
if
perr
.
Err
!=
tt
.
error
{
if
perr
.
Err
!=
tt
.
error
{
if
syscall
.
OS
==
"plan9"
{
if
runtime
.
GO
OS
==
"plan9"
{
syscallErrStr
:=
perr
.
Err
.
Error
()
syscallErrStr
:=
perr
.
Err
.
Error
()
expectedErrStr
:=
strings
.
Replace
(
tt
.
error
.
Error
(),
"file "
,
""
,
1
)
expectedErrStr
:=
strings
.
Replace
(
tt
.
error
.
Error
(),
"file "
,
""
,
1
)
if
!
strings
.
HasSuffix
(
syscallErrStr
,
expectedErrStr
)
{
if
!
strings
.
HasSuffix
(
syscallErrStr
,
expectedErrStr
)
{
...
@@ -888,7 +888,7 @@ func run(t *testing.T, cmd []string) string {
...
@@ -888,7 +888,7 @@ func run(t *testing.T, cmd []string) string {
func
TestHostname
(
t
*
testing
.
T
)
{
func
TestHostname
(
t
*
testing
.
T
)
{
// There is no other way to fetch hostname on windows, but via winapi.
// There is no other way to fetch hostname on windows, but via winapi.
// On Plan 9 it is can be taken from #c/sysname as Hostname() does.
// On Plan 9 it is can be taken from #c/sysname as Hostname() does.
if
syscall
.
OS
==
"windows"
||
syscall
.
OS
==
"plan9"
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GO
OS
==
"plan9"
{
return
return
}
}
...
...
src/pkg/os/os_unix_test.go
View file @
92c8df46
...
@@ -8,6 +8,7 @@ package os_test
...
@@ -8,6 +8,7 @@ package os_test
import
(
import
(
.
"os"
.
"os"
"runtime"
"syscall"
"syscall"
"testing"
"testing"
)
)
...
@@ -29,7 +30,7 @@ func checkUidGid(t *testing.T, path string, uid, gid int) {
...
@@ -29,7 +30,7 @@ func checkUidGid(t *testing.T, path string, uid, gid int) {
func
TestChown
(
t
*
testing
.
T
)
{
func
TestChown
(
t
*
testing
.
T
)
{
// Chown is not supported under windows or Plan 9.
// Chown is not supported under windows or Plan 9.
// Plan9 provides a native ChownPlan9 version instead.
// Plan9 provides a native ChownPlan9 version instead.
if
syscall
.
OS
==
"windows"
||
syscall
.
OS
==
"plan9"
{
if
runtime
.
GOOS
==
"windows"
||
runtime
.
GO
OS
==
"plan9"
{
return
return
}
}
// Use TempDir() to make sure we're on a local file system,
// Use TempDir() to make sure we're on a local file system,
...
...
src/pkg/os/path_test.go
View file @
92c8df46
...
@@ -8,7 +8,6 @@ import (
...
@@ -8,7 +8,6 @@ import (
.
"os"
.
"os"
"path/filepath"
"path/filepath"
"runtime"
"runtime"
"syscall"
"testing"
"testing"
)
)
...
@@ -63,7 +62,7 @@ func TestMkdirAll(t *testing.T) {
...
@@ -63,7 +62,7 @@ func TestMkdirAll(t *testing.T) {
t
.
Fatalf
(
"MkdirAll %q returned wrong error path: %q not %q"
,
ffpath
,
filepath
.
Clean
(
perr
.
Path
),
filepath
.
Clean
(
fpath
))
t
.
Fatalf
(
"MkdirAll %q returned wrong error path: %q not %q"
,
ffpath
,
filepath
.
Clean
(
perr
.
Path
),
filepath
.
Clean
(
fpath
))
}
}
if
syscall
.
OS
==
"windows"
{
if
runtime
.
GO
OS
==
"windows"
{
path
:=
`_test\_TestMkdirAll_\dir\.\dir2\`
path
:=
`_test\_TestMkdirAll_\dir\.\dir2\`
err
:=
MkdirAll
(
path
,
0777
)
err
:=
MkdirAll
(
path
,
0777
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -117,7 +116,7 @@ func TestRemoveAll(t *testing.T) {
...
@@ -117,7 +116,7 @@ func TestRemoveAll(t *testing.T) {
// Determine if we should run the following test.
// Determine if we should run the following test.
testit
:=
true
testit
:=
true
if
syscall
.
OS
==
"windows"
{
if
runtime
.
GO
OS
==
"windows"
{
// Chmod is not supported under windows.
// Chmod is not supported under windows.
testit
=
false
testit
=
false
}
else
{
}
else
{
...
...
src/pkg/syscall/Makefile
View file @
92c8df46
...
@@ -8,7 +8,6 @@ TARG=syscall
...
@@ -8,7 +8,6 @@ TARG=syscall
GOFILES
=
\
GOFILES
=
\
str.go
\
str.go
\
syscall.go
\
syscall.go
\
syscall_
$(GOARCH)
.go
\
syscall_
$(GOOS)
.go
\
syscall_
$(GOOS)
.go
\
syscall_
$(GOOS)
_
$(GOARCH)
.go
\
syscall_
$(GOOS)
_
$(GOARCH)
.go
\
zerrors_
$(GOOS)
_
$(GOARCH)
.go
\
zerrors_
$(GOOS)
_
$(GOARCH)
.go
\
...
...
src/pkg/syscall/exec_bsd.go
View file @
92c8df46
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
package
syscall
package
syscall
import
(
import
(
"runtime"
"unsafe"
"unsafe"
)
)
...
@@ -41,7 +42,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
...
@@ -41,7 +42,7 @@ func forkAndExecInChild(argv0 *byte, argv, envv []*byte, chroot, dir *byte, attr
// guard against side effects of shuffling fds below.
// guard against side effects of shuffling fds below.
fd
:=
append
([]
int
(
nil
),
attr
.
Files
...
)
fd
:=
append
([]
int
(
nil
),
attr
.
Files
...
)
darwin
:=
OS
==
"darwin"
darwin
:=
runtime
.
GO
OS
==
"darwin"
// About to call fork.
// About to call fork.
// No more allocation or calls of non-assembly functions.
// No more allocation or calls of non-assembly functions.
...
...
src/pkg/syscall/exec_unix.go
View file @
92c8df46
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
package
syscall
package
syscall
import
(
import
(
"runtime"
"sync"
"sync"
"unsafe"
"unsafe"
)
)
...
@@ -131,7 +132,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
...
@@ -131,7 +132,7 @@ func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error)
argvp
:=
StringSlicePtr
(
argv
)
argvp
:=
StringSlicePtr
(
argv
)
envvp
:=
StringSlicePtr
(
attr
.
Env
)
envvp
:=
StringSlicePtr
(
attr
.
Env
)
if
OS
==
"freebsd"
&&
len
(
argv
[
0
])
>
len
(
argv0
)
{
if
runtime
.
GO
OS
==
"freebsd"
&&
len
(
argv
[
0
])
>
len
(
argv0
)
{
argvp
[
0
]
=
argv0p
argvp
[
0
]
=
argv0p
}
}
...
...
src/pkg/syscall/syscall_386.go
deleted
100644 → 0
View file @
5f733776
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
syscall
const
ARCH
=
"386"
src/pkg/syscall/syscall_amd64.go
deleted
100644 → 0
View file @
5f733776
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
syscall
const
ARCH
=
"amd64"
src/pkg/syscall/syscall_arm.go
deleted
100644 → 0
View file @
5f733776
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package
syscall
const
ARCH
=
"arm"
src/pkg/syscall/syscall_bsd.go
View file @
92c8df46
...
@@ -12,7 +12,10 @@
...
@@ -12,7 +12,10 @@
package
syscall
package
syscall
import
"unsafe"
import
(
"runtime"
"unsafe"
)
/*
/*
* Pseudo-system calls
* Pseudo-system calls
...
@@ -554,7 +557,7 @@ func Sysctl(name string) (value string, err error) {
...
@@ -554,7 +557,7 @@ func Sysctl(name string) (value string, err error) {
// Work around a bug that was fixed after OpenBSD 5.0.
// Work around a bug that was fixed after OpenBSD 5.0.
// The length for kern.hostname and kern.domainname is always
// The length for kern.hostname and kern.domainname is always
// returned as 0 when a nil value is passed for oldp.
// returned as 0 when a nil value is passed for oldp.
if
OS
==
"openbsd"
&&
(
name
==
"kern.hostname"
||
name
==
"kern.domainname"
)
{
if
runtime
.
GO
OS
==
"openbsd"
&&
(
name
==
"kern.hostname"
||
name
==
"kern.domainname"
)
{
// MAXHOSTNAMELEN
// MAXHOSTNAMELEN
n
=
256
n
=
256
}
else
{
}
else
{
...
...
src/pkg/syscall/syscall_darwin.go
View file @
92c8df46
...
@@ -14,8 +14,6 @@ package syscall
...
@@ -14,8 +14,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"darwin"
type
SockaddrDatalink
struct
{
type
SockaddrDatalink
struct
{
Len
uint8
Len
uint8
Family
uint8
Family
uint8
...
...
src/pkg/syscall/syscall_freebsd.go
View file @
92c8df46
...
@@ -14,8 +14,6 @@ package syscall
...
@@ -14,8 +14,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"freebsd"
type
SockaddrDatalink
struct
{
type
SockaddrDatalink
struct
{
Len
uint8
Len
uint8
Family
uint8
Family
uint8
...
...
src/pkg/syscall/syscall_linux.go
View file @
92c8df46
...
@@ -13,8 +13,6 @@ package syscall
...
@@ -13,8 +13,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"linux"
/*
/*
* Wrapped
* Wrapped
*/
*/
...
...
src/pkg/syscall/syscall_netbsd.go
View file @
92c8df46
...
@@ -14,8 +14,6 @@ package syscall
...
@@ -14,8 +14,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"netbsd"
type
SockaddrDatalink
struct
{
type
SockaddrDatalink
struct
{
Len
uint8
Len
uint8
Family
uint8
Family
uint8
...
...
src/pkg/syscall/syscall_openbsd.go
View file @
92c8df46
...
@@ -14,8 +14,6 @@ package syscall
...
@@ -14,8 +14,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"openbsd"
type
SockaddrDatalink
struct
{
type
SockaddrDatalink
struct
{
Len
uint8
Len
uint8
Family
uint8
Family
uint8
...
...
src/pkg/syscall/syscall_plan9.go
View file @
92c8df46
...
@@ -13,8 +13,6 @@ package syscall
...
@@ -13,8 +13,6 @@ package syscall
import
"unsafe"
import
"unsafe"
const
OS
=
"plan9"
const
ImplementsGetwd
=
true
const
ImplementsGetwd
=
true
// ErrorString implements Error's String method by returning itself.
// ErrorString implements Error's String method by returning itself.
...
...
src/pkg/syscall/syscall_unix.go
View file @
92c8df46
...
@@ -7,6 +7,7 @@
...
@@ -7,6 +7,7 @@
package
syscall
package
syscall
import
(
import
(
"runtime"
"sync"
"sync"
"unsafe"
"unsafe"
)
)
...
@@ -17,7 +18,7 @@ var (
...
@@ -17,7 +18,7 @@ var (
Stderr
=
2
Stderr
=
2
)
)
const
darwinAMD64
=
OS
==
"darwin"
&&
ARCH
==
"amd64"
const
darwinAMD64
=
runtime
.
GOOS
==
"darwin"
&&
runtime
.
GO
ARCH
==
"amd64"
func
Syscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
uintptr
,
err
Errno
)
func
Syscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
uintptr
,
err
Errno
)
func
Syscall6
(
trap
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
uintptr
)
(
r1
,
r2
uintptr
,
err
Errno
)
func
Syscall6
(
trap
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
uintptr
)
(
r1
,
r2
uintptr
,
err
Errno
)
...
...
src/pkg/syscall/syscall_windows.go
View file @
92c8df46
...
@@ -11,8 +11,6 @@ import (
...
@@ -11,8 +11,6 @@ import (
"unsafe"
"unsafe"
)
)
const
OS
=
"windows"
type
Handle
uintptr
type
Handle
uintptr
const
InvalidHandle
=
^
Handle
(
0
)
const
InvalidHandle
=
^
Handle
(
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment