go/src/os/exec
Russ Cox f1980efb92 all: update to use os.ReadDir where appropriate
os.ReadDir is a replacement for ioutil.ReadDir that returns
a slice of fs.DirEntry instead of fs.FileInfo, meaning it is the
more efficient form.

This CL updates call sites throughout the Go source tree
wherever possible. As usual, code built using the Go 1.4
bootstrap toolchain is not included. There is also a use in
go/build that appears in the public API and can't be changed,
at least not without additional changes.

Fixes #42026.

Change-Id: Icfc9dd52c6045020f6830e22c72128499462d561
Reviewed-on: https://go-review.googlesource.com/c/go/+/266366
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-12-09 19:12:27 +00:00
..
bench_test.go
env_test.go
example_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
exec.go
exec_linux_test.go
exec_plan9.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
exec_posix_test.go
exec_test.go all: update to use os.ReadDir where appropriate 2020-12-09 19:12:27 +00:00
exec_unix.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
exec_windows.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
internal_test.go
lp_js.go
lp_plan9.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
lp_test.go
lp_unix.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
lp_unix_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
lp_windows.go all: update references to symbols moved from os to io/fs 2020-10-20 02:32:42 +00:00
lp_windows_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
read3.go os/exec: use "pfiles" for fd debugging on illumos 2020-11-07 14:23:20 +00:00