1
0
mirror of https://github.com/golang/go synced 2024-11-20 11:34:48 -07:00
go/src/os
David du Colombier a0cf021be5 os: consider only files from #M as regular on Plan 9
TestRemoveDevNull was added in CL 31657. However, this test
was failing on Plan 9, because /dev/null was considered as
a regular file.

On Plan 9, there is no special mode to distinguish between
device files and regular files.

However, files are served by different servers. For example,
/dev/null is served by #c (devcons), while /bin/cat is served
by #M (devmnt).

We chose to consider only the files served by #M as regular
files. All files served by different servers will be considered
as device files.

Fixes #17598.

Change-Id: Ibb1c3357d742cf2a7de15fc78c9e436dc31982bb
Reviewed-on: https://go-review.googlesource.com/32152
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-10-26 16:18:00 +00:00
..
exec os/exec: allow simultaneous cmd.Wait and Write of cmd.StdinPipe 2016-10-18 12:48:03 +00:00
signal all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
user os/user: don't create C function mygetgrouplist 2016-05-10 22:32:38 +00:00
dir_plan9.go
dir_unix.go os: fix typo in comment (Readir -> Readdir) 2016-08-30 01:24:57 +00:00
dir_windows.go os: consolidate files 2016-08-16 00:15:36 +00:00
dir.go os: consolidate files 2016-08-16 00:15:36 +00:00
env_test.go
env_unix_test.go os: make ExpandEnv recognize '-' as a special shell parameter 2016-08-21 18:32:57 +00:00
env.go os: make ExpandEnv recognize '-' as a special shell parameter 2016-08-21 18:32:57 +00:00
error_plan9.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
error_test.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
error_unix_test.go os: make IsExists also recognize syscall.ENOTEMPTY 2016-04-03 06:22:07 +00:00
error_unix.go os: delete code duplications in error files 2016-09-10 17:04:21 +00:00
error_windows_test.go os: make IsExist report true on ERROR_DIR_NOT_EMPTY on Windows 2016-09-25 02:38:11 +00:00
error_windows.go os: make IsExist report true on ERROR_DIR_NOT_EMPTY on Windows 2016-09-25 02:38:11 +00:00
error.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
example_test.go os: add examples of environment functions 2016-10-12 14:04:30 +00:00
exec_plan9.go
exec_posix.go all: single space after period. 2016-03-02 00:13:47 +00:00
exec_unix.go os: on GNU/Linux use waitid to avoid wait/kill race 2016-06-10 18:10:14 +00:00
exec_windows.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00
exec.go os: consolidate files 2016-08-16 00:15:36 +00:00
export_test.go all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
export_windows_test.go os: make readConsole handle its input and output correctly 2016-10-13 06:16:53 +00:00
file_plan9.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
file_posix.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
file_unix.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
file_windows.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
file.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
getwd_darwin.go
getwd.go all: single space after period. 2016-03-02 00:13:47 +00:00
os_test.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
os_unix_test.go os: don't let File.Readdir return an empty slice and nil error 2016-08-29 23:59:42 +00:00
os_windows_test.go all: minor vet fixes 2016-10-24 17:27:37 +00:00
path_plan9.go
path_test.go os: use testenv.MustHaveSymlink to simplify symlink tests 2016-08-23 14:46:46 +00:00
path_unix.go os: consolidate files 2016-08-16 00:15:36 +00:00
path_windows.go os: consolidate files 2016-08-16 00:15:36 +00:00
path.go all: single space after period. 2016-03-02 00:13:47 +00:00
pipe_bsd.go
pipe_linux.go
pipe_test.go all: single space after period. 2016-03-02 00:13:47 +00:00
proc.go
stat_darwin.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_dragonfly.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_freebsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_linux.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_nacl.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_netbsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_openbsd.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_plan9.go os: consider only files from #M as regular on Plan 9 2016-10-26 16:18:00 +00:00
stat_solaris.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
stat_unix.go os: consolidate files 2016-08-16 00:15:36 +00:00
stat_windows.go os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
sticky_bsd.go
sticky_notbsd.go
str.go all: fix typos and spelling 2016-02-24 18:42:29 +00:00
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 all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
sys.go os: consolidate files 2016-08-16 00:15:36 +00:00
types_plan9.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
types_unix.go os: add ErrClosed, return for use of closed File 2016-10-24 16:41:29 +00:00
types_windows.go all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
types.go os: deduplicate File definition 2016-09-05 21:21:05 +00:00
wait_unimp.go os: use wait6 to avoid wait/kill race on freebsd 2016-06-13 22:13:56 +00:00
wait_wait6.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00
wait_waitid.go os: use runtime.Keepalive for *Process values 2016-08-24 16:57:09 +00:00