]> Cypherpunks repositories - gostls13.git/commit
pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls.
authorAkshat Kumar <seed@mail.nanosouffle.net>
Mon, 1 Oct 2012 00:09:08 +0000 (10:09 +1000)
committerRob Pike <r@golang.org>
Mon, 1 Oct 2012 00:09:08 +0000 (10:09 +1000)
commitaf582674b0b1d4a06ca9c8bda8f66ce9e9846696
tree4c16a27ba93b37b4d630f5f703a4d154b992622c
parent4bb75cd9ada7058cb90ff43dca13bd246f59f46d
pkg/syscall: Plan 9, 64-bit: Update error checks from sys calls.

This change updates CL 6576057 for exceptional cases where
return values from Syscall/RawSyscall functions are used.

The system calls return 32-bit integers. With the recent change
in size of `int' in Go for amd64, the type conversion was not
catching `-1' return values. This change makes the conversion
explicitly `int32'.

R=rsc, r
CC=golang-dev
https://golang.org/cl/6590047
src/pkg/syscall/exec_plan9.go
src/pkg/syscall/syscall_plan9.go