Alex Brainman
76b6ca6286
unix: include export_test.go only during unix build
...
Fixes plan9 and windows build.
Change-Id: I3d913441a4f3f3f3da82ab74ef165b91d05eb8d3
Reviewed-on: https://go-review.googlesource.com/10078
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2015-05-14 06:54:30 +00:00
Alex Brainman
1caf55eba1
windows: use FILE_FLAG_BACKUP_SEMANTICS in Utimes/UtimesNano
...
This is a copy of https://golang.org/cl/154020043 in the syscall package.
Fixes golang/go#10804
Change-Id: I6f6177e30c105c8065fdc8cc351e899090e160a9
Reviewed-on: https://go-review.googlesource.com/10076
Reviewed-by: Minux Ma <minux@golang.org >
2015-05-14 05:04:03 +00:00
Alex Brainman
65705ef9e9
windows/svc: add new package to help create and manage Windows services
...
Change-Id: I58bb446aaa387b31d8a9ff4217793a170b96a7e2
Reviewed-on: https://go-review.googlesource.com/9104
Reviewed-by: Rob Pike <r@golang.org >
2015-05-01 05:26:56 +00:00
Alex Brainman
bbc47fbbc8
windows/registry: mark string end with 0 before calling Windows ExpandEnvironmentStrings
...
Change-Id: I02bfcdeac44167d1dbeb15bcd5c82111fba3f527
Reviewed-on: https://go-review.googlesource.com/9234
Reviewed-by: Rob Pike <r@golang.org >
2015-04-23 02:52:27 +00:00
Alex Brainman
e961698092
windows/registry: add new package to manipulate Windows registry
...
Change-Id: Ia7c3d6250c041b95aa43ca5ca2a92251c480ef77
Reviewed-on: https://go-review.googlesource.com/8843
Reviewed-by: Rob Pike <r@golang.org >
2015-04-15 07:18:44 +00:00
Alex Brainman
ddd1cdae39
windows: fix race when allocating buffer for some windows syscalls
...
From main repo: https://go-review.googlesource.com/#/c/4940
Change-Id: I56fe7f6aedc0fd350abb94299ad500fcb80c049a
Reviewed-on: https://go-review.googlesource.com/8604
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2015-04-09 00:47:30 +00:00
Alex Brainman
40756181e9
windows: use go generate to build zsyscall_windows.go
...
Also remove some empty source files while we are at it.
Change-Id: Ia3a35b274a0428196aee63ee2daacc533285d0ea
Reviewed-on: https://go-review.googlesource.com/2530
Reviewed-by: Rob Pike <r@golang.org >
2015-03-15 23:59:38 +00:00
Alex Brainman
c2a8d2745f
sys: copying .gitattributes to all subrepositories
...
Fixes #9281
Change-Id: Ia4bb2e9af9f660f42202bb1d07920578cd0f9c3e
Reviewed-on: https://go-review.googlesource.com/2076
Reviewed-by: Minux Ma <minux@golang.org >
2014-12-23 09:43:20 +00:00
Alex Brainman
7c39a4f50c
go.sys/windows: add SIO_UDP_CONNRESET const
...
It was part of recently submitted CL 149510043.
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/155320044
2014-11-06 11:00:43 +11:00
Alex Brainman
c17938b803
go.sys/windows: keep windows syscall pointers live
...
apply latest changes made to syscall/mksyscall_windows.go
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/152200043
2014-10-06 10:48:58 +11:00
Alex Brainman
d1ee94ce83
go.sys/windows: apply latest syscall changes
...
71db3dc120af os: make SameFile handle paths like c:a.txt properly
ff34a3e84dc0 net: fix CNAME resolving on Windows
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/130250043
2014-08-20 12:25:19 +10:00
Alex Brainman
7d091bfd99
go.sys/windows: use $GOROOT/src/pkg/syscall/mksyscall_windows.go to generate syscalls
...
Also zsyscall_windows_386.go and zsyscall_windows_amd64.go
have same contents, so merge them into single file.
LGTM=r
R=r
CC=golang-codereviews
https://golang.org/cl/124430043
2014-08-19 15:20:17 +10:00
Alex Brainman
70c4b52aa0
go.sys/windows: delete errors_windows.go (except APPLICATION_ERROR) and Errno
...
All consts in errors_windows.go (except APPLICATION_ERROR) were
"invented" at the start of windows port to have minimal impact on
existing Go packages. No point keeping them around.
Also remove Errno, since we will be using syscall.Errno everywhere anyway.
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/128290044
2014-08-15 13:37:15 +10:00