Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(21)

Issue 4600042: windows: define and use syscall.Handle (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by vcc
Modified:
13 years, 4 months ago
Reviewers:
CC:
rsc, brainman, peterGo, mikio, mattn, golang-dev
Visibility:
Public.

Description

windows: define and use syscall.Handle Fixes issue 1487.

Patch Set 1 #

Total comments: 35

Patch Set 2 : code review 4600042: windows: define and use syscall.Handle #

Patch Set 3 : code review 4600042: windows: define and use syscall.Handle #

Total comments: 55

Patch Set 4 : code review 4600042: windows: define and use syscall.Handle #

Patch Set 5 : code review 4600042: windows: define and use syscall.Handle #

Total comments: 8

Patch Set 6 : code review 4600042: windows: define and use syscall.Handle #

Patch Set 7 : code review 4600042: windows: define and use syscall.Handle #

Patch Set 8 : code review 4600042: windows: define and use syscall.Handle #

Unified diffs Side-by-side diffs Delta from patch set Stats (+444 lines, -304 lines) Patch
A doc/progs/file_windows.go View 1 2 1 chunk +89 lines, -0 lines 0 comments Download
M doc/progs/run View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M src/pkg/crypto/rand/rand_windows.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/net/fd_windows.go View 21 chunks +24 lines, -24 lines 0 comments Download
M src/pkg/net/interface_windows.go View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/net/ipsock.go View 1 1 chunk +5 lines, -7 lines 0 comments Download
M src/pkg/net/sendfile_windows.go View 2 chunks +3 lines, -3 lines 0 comments Download
M src/pkg/net/sock.go View 1 2 3 4 5 4 chunks +11 lines, -12 lines 0 comments Download
M src/pkg/net/sock_windows.go View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/env_windows.go View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/os/exec_posix.go View 1 2 3 4 5 1 chunk +2 lines, -9 lines 0 comments Download
M src/pkg/os/exec_windows.go View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M src/pkg/os/file.go View 1 1 chunk +0 lines, -24 lines 0 comments Download
M src/pkg/os/file_posix.go View 1 2 3 4 5 6 7 1 chunk +0 lines, -20 lines 0 comments Download
M src/pkg/os/file_unix.go View 1 2 3 4 5 2 chunks +47 lines, -0 lines 0 comments Download
M src/pkg/os/file_windows.go View 1 2 3 4 5 8 chunks +55 lines, -8 lines 0 comments Download
M src/pkg/syscall/exec_windows.go View 1 4 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/syscall/syscall_windows.go View 1 2 3 4 5 6 19 chunks +114 lines, -108 lines 0 comments Download
M src/pkg/syscall/zsyscall_windows_386.go View 1 2 3 4 5 6 51 chunks +65 lines, -65 lines 0 comments Download
M src/pkg/syscall/ztypes_windows_386.go View 1 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 29
vcc
I'd like you to review this change.
13 years, 5 months ago (2011-06-13 15:29:50 UTC) #1
peterGo
linux/amd64, hg id 53460e066c2f+ tip. INSTALL FAIL os make[1]: Entering directory `/home/peter/handle/src/pkg/os' ./mkunixsignals.sh ../syscall/zerrors_linux_amd64.go > ...
13 years, 5 months ago (2011-06-13 20:23:55 UTC) #2
peterGo
windows/386, hg id 53460e066c2f+ tip. --- cd ../doc/progs file.go:25: cannot use syscall.Stdin (type syscall.Handle) as ...
13 years, 5 months ago (2011-06-13 20:39:49 UTC) #3
peterGo
"The special sentence 'Fixes issue 159.' associates the change with issue 159 in the Go ...
13 years, 5 months ago (2011-06-13 20:48:35 UTC) #4
rsc
no please s/Fixed/Fixes/
13 years, 5 months ago (2011-06-13 20:57:52 UTC) #5
mikio
http://codereview.appspot.com/4600042/diff/1/src/pkg/net/Makefile File src/pkg/net/Makefile (left): http://codereview.appspot.com/4600042/diff/1/src/pkg/net/Makefile#oldcode31 src/pkg/net/Makefile:31: interface_bsd.go\ I'd prefer interface_..go then ipsock_...go, ordered by filename.
13 years, 5 months ago (2011-06-14 00:09:00 UTC) #6
mattn
I didn't review all. * socket is not a handle. * fd is not a ...
13 years, 5 months ago (2011-06-14 00:43:39 UTC) #7
brainman
Wei, Your change will break build: --- cd ../doc/progs file.go:25: cannot use syscall.Stdin (type syscall.Handle) ...
13 years, 5 months ago (2011-06-14 01:53:02 UTC) #8
vcc
2011/6/14 <mattn.jp@gmail.com>: > I didn't review all. > > * socket is not a handle. ...
13 years, 5 months ago (2011-06-14 03:18:08 UTC) #9
vcc
On 2011/06/13 20:57:52, rsc wrote: > no please s/Fixed/Fixes/ Done.
13 years, 5 months ago (2011-06-14 03:27:39 UTC) #10
mattn
Hmm, I found spec. http://msdn.microsoft.com/en-us/library/ms740522(VS.85).aspx LGTM about reason of changes. :)
13 years, 5 months ago (2011-06-14 03:37:01 UTC) #11
rsc
This looks very good. Just a few small things below that can simplify the changes. ...
13 years, 5 months ago (2011-06-14 17:11:07 UTC) #12
vcc
PTAL http://codereview.appspot.com/4600042/diff/1/src/pkg/net/ipsock.go File src/pkg/net/ipsock.go (left): http://codereview.appspot.com/4600042/diff/1/src/pkg/net/ipsock.go#oldcode14 src/pkg/net/ipsock.go:14: // Should we try to use the IPv4 ...
13 years, 5 months ago (2011-06-15 05:50:27 UTC) #13
peterGo
vcc, On 2011/06/15 05:50:27, vcc wrote: > PTAL linux/arm64, hg id e23f10e3fe00+ tip. ./all.bash INSTALL ...
13 years, 5 months ago (2011-06-15 13:27:14 UTC) #14
peterGo
vcc, On 2011/06/15 05:50:27, vcc wrote: > PTAL This looks like the same set of ...
13 years, 5 months ago (2011-06-15 14:22:58 UTC) #15
vcc
PTAL Shouldn't break build now.
13 years, 5 months ago (2011-06-16 05:29:26 UTC) #16
peterGo
http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode18 src/pkg/syscall/syscall_windows.go:18: small demo to detect version of windows you are ...
13 years, 5 months ago (2011-06-16 21:39:27 UTC) #17
peterGo
http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode80 src/pkg/syscall/syscall_windows.go:80: func loadlibraryex(filename uintptr) (handle uint32) s/handle uint32/handle uintptr/ HMODULE ...
13 years, 5 months ago (2011-06-16 23:11:35 UTC) #18
peterGo
http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode80 src/pkg/syscall/syscall_windows.go:80: func loadlibraryex(filename uintptr) (handle uint32) correction s/handle uint32/handle Handle/ ...
13 years, 5 months ago (2011-06-17 03:21:24 UTC) #19
peterGo
http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode251 src/pkg/syscall/syscall_windows.go:251: return Handle(h), int(e) s/Handle(h)/h/ http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode256 src/pkg/syscall/syscall_windows.go:256: e := ReadFile(Handle(fd), ...
13 years, 5 months ago (2011-06-17 03:53:31 UTC) #20
vcc
PTAL Thanks for review. http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go File src/pkg/syscall/syscall_windows.go (right): http://codereview.appspot.com/4600042/diff/23001/src/pkg/syscall/syscall_windows.go#newcode18 src/pkg/syscall/syscall_windows.go:18: small demo to detect version ...
13 years, 5 months ago (2011-06-17 05:01:04 UTC) #21
peterGo
vcc, windows/386, hg id 12118c2a9829+ tip. ./all.bash install os INSTALL FAIL os make[1]: Entering directory ...
13 years, 5 months ago (2011-06-17 08:09:37 UTC) #22
vcc
PTAL Thanks. 2011/6/17 <go.peter.90@gmail.com>: > vcc, > > windows/386, hg id 12118c2a9829+ tip. > > ...
13 years, 5 months ago (2011-06-17 09:09:43 UTC) #23
rsc
I think this is very close. http://codereview.appspot.com/4600042/diff/31020/src/pkg/net/sock.go File src/pkg/net/sock.go (right): http://codereview.appspot.com/4600042/diff/31020/src/pkg/net/sock.go#newcode53 src/pkg/net/sock.go:53: fd.sysfd = syscall.InvalidHandle ...
13 years, 5 months ago (2011-06-20 19:27:58 UTC) #24
vcc
PTAL http://codereview.appspot.com/4600042/diff/31020/src/pkg/net/sock.go File src/pkg/net/sock.go (right): http://codereview.appspot.com/4600042/diff/31020/src/pkg/net/sock.go#newcode53 src/pkg/net/sock.go:53: fd.sysfd = syscall.InvalidHandle On 2011/06/20 19:27:58, rsc wrote: ...
13 years, 5 months ago (2011-06-21 04:30:41 UTC) #25
vcc
ping
13 years, 5 months ago (2011-07-01 04:42:31 UTC) #26
mattn
On 2011/07/01 04:42:31, vcc wrote: > ping I don't look the code. but ALL TESTS ...
13 years, 5 months ago (2011-07-01 05:06:01 UTC) #27
rsc
LGTM
13 years, 5 months ago (2011-07-01 14:17:58 UTC) #28
rsc
13 years, 5 months ago (2011-07-01 14:18:10 UTC) #29
*** Submitted as http://code.google.com/p/go/source/detail?r=dc01810c2648 ***

windows: define and use syscall.Handle
Fixes issue 1487.

R=rsc, alex.brainman, go.peter.90, mikioh.mikioh, mattn.jp
CC=golang-dev
http://codereview.appspot.com/4600042

Committer: Russ Cox <rsc@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b