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
windows/386, hg id 53460e066c2f+ tip.
--- cd ../doc/progs
file.go:25: cannot use syscall.Stdin (type syscall.Handle) as type int in
function argument
file.go:26: cannot use syscall.Stdout (type syscall.Handle) as type int in
function argument
file.go:27: cannot use syscall.Stderr (type syscall.Handle) as type int in
function argument
file.go:35: cannot use r (type syscall.Handle) as type int in function argument
file.go:57: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:69: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:80: cannot use file.fd (type int) as type syscall.Handle in function
argument
Peter
"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
"The special sentence 'Fixes issue 159.' associates the change with issue 159 in
the Go issue tracker. When this change is eventually submitted, the issue
tracker will automatically mark the issue as fixed."
Contribution Guidelines: http://golang.org/doc/contribute.html.
Is the "Fixed issue 1487." sentence in the CL description close enough to “Fixes
issue 1487.” for the issue to be marked as fixed?
Peter
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
Wei,
Your change will break build:
--- cd ../doc/progs
file.go:25: cannot use syscall.Stdin (type syscall.Handle) as type int in
function argument
file.go:26: cannot use syscall.Stdout (type syscall.Handle) as type int in
function argument
file.go:27: cannot use syscall.Stderr (type syscall.Handle) as type int in
function argument
file.go:35: cannot use r (type syscall.Handle) as type int in function argument
file.go:57: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:69: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:80: cannot use file.fd (type int) as type syscall.Handle in function
argument
You did what issue 1487 asking you to do "os.File's Fd method should return
syscall.Handle on Windows", but I am not sure now, it is the right way forward.
It would be nice if things outside of syscall package could remain the same and
use int everywhere. Other OSes do - I need to be convinced, it can't be done
with windows.
It is hard for me to make judgements without seeing 64 bit windows
implementation that builds, even if up to some point. I would rather leave this
change until we see a such thing.
Alex
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
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,
On 2011/06/15 05:50:27, vcc wrote:
> PTAL
This looks like the same set of errors that I reported yesterday.
windows/386, hg id 6bf5e0a7d60a+.
./all.bash
--- cd ../doc/progs
file.go:25: cannot use syscall.Stdin (type syscall.Handle) as type int in
function argument
file.go:26: cannot use syscall.Stdout (type syscall.Handle) as type int in
function argument
file.go:27: cannot use syscall.Stderr (type syscall.Handle) as type int in
function argument
file.go:35: cannot use r (type syscall.Handle) as type int in function argument
file.go:57: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:69: cannot use file.fd (type int) as type syscall.Handle in function
argument
file.go:80: cannot use file.fd (type int) as type syscall.Handle in function
argument
Peter
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
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
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
Issue 4600042: windows: define and use syscall.Handle
(Closed)
Created 13 years, 5 months ago by vcc
Modified 13 years, 4 months ago
Reviewers:
Base URL:
Comments: 98