Thanks for the reviews!
iserror is defined in error_posix.go as:
func iserror(errno int) bool {
return errno != 0
}
it should be linked in by every os implementation which gets errno's from its
syscall package.
for Plan 9, iserror is defined in error_plan9.go:
func iserror(err syscall.Error) bool {
return err != nil
}
it is expecting its syscall to return an Error interface with a String() method
when an error occurs or nil. The String() is usually a stored value of errstr
which is saved at the point of failure (syscall/asm_plan9_386.s SyscallErrstr
calls syscall/syscall_plan9.go errstr() if AX == -1).
Pavel
Issue 4149046: code review 4149046: os: Plan 9 support.
(Closed)
Created 15 years ago by paulzhol
Modified 14 years, 11 months ago
Reviewers:
Base URL:
Comments: 32