1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:21:22 -06:00
go/src/os
David du Colombier 5f54f06a35 os: fix write on Plan 9
In CL 160670043 the write function was changed
so a zero-length write is now allowed. This leads
the ExampleWriter_Init test to fail.

The reason is that Plan 9 preserves message
boundaries, while the os library expects systems
that don't preserve them. We have to ignore
zero-length writes so they will never turn into EOF.

This issue was previously discussed in CL 7406046.

LGTM=bradfitz
R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/163510043
2014-10-28 22:44:59 +01:00
..
exec os/exec: fix number of expected file descriptors on Plan 9 2014-10-20 23:01:32 +02:00
signal
user
dir_plan9.go
dir_unix.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
dir_windows.go
doc.go
env_test.go os, syscall: add Unsetenv 2014-10-01 11:17:15 -07:00
env_unix_test.go
env.go os, syscall: add Unsetenv 2014-10-01 11:17:15 -07:00
error_plan9.go os: handle 'no parent' error as IsNotExist on Plan 9 2014-10-13 20:39:46 +02:00
error_test.go
error_unix.go
error_windows_test.go
error_windows.go
error.go
exec_plan9.go
exec_posix.go
exec_unix.go os: make Process.Signal 'process finished' error consistent on Unix 2014-10-06 15:49:19 -04:00
exec_windows.go os: make Process.Signal 'process finished' error consistent on Unix 2014-10-06 15:49:19 -04:00
exec.go
export_test.go
file_plan9.go os: fix write on Plan 9 2014-10-28 22:44:59 +01:00
file_posix.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
file_unix.go os: fix build 2014-10-28 15:34:50 -04:00
file_windows.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
file.go os: do not assume syscall i/o funcs return n=0 on error 2014-10-28 15:00:13 -04:00
getwd_darwin.go
getwd.go
os_test.go os, syscall: test Chtimes on directories, fix on Windows 2014-10-06 19:22:48 -04:00
os_unix_test.go
os_windows_test.go
path_plan9.go
path_test.go
path_unix.go
path_windows.go
path.go os: recomment MkdirAll 2014-10-06 15:49:33 -04:00
pipe_bsd.go
pipe_linux.go
proc.go os: fix Args setup on Windows 2014-09-24 18:50:54 -04:00
stat_darwin.go
stat_dragonfly.go
stat_freebsd.go
stat_linux.go
stat_nacl.go
stat_netbsd.go
stat_openbsd.go
stat_plan9.go
stat_solaris.go
stat_windows.go
str.go
sys_bsd.go
sys_darwin.go
sys_freebsd.go
sys_linux.go
sys_nacl.go
sys_plan9.go
sys_solaris.go
sys_unix.go
sys_windows.go
types_notwin.go
types_windows.go
types.go