dustin-ward
95e765b1cc
x/sys/unix: make ReadDirent available on zOS
...
Currently ReadDirent is not available on zOS. This implementation modifies the current darwin implementation to work on zOS.
Also make tests available on zOS.
Fixes golang/go#54528
Fixes golang/go#54587
Change-Id: I62a09d0068ec8c5fdc849a411ce43bdf14ca3926
Reviewed-on: https://go-review.googlesource.com/c/sys/+/424778
Reviewed-by: Ian Lance Taylor <iant@google.com >
TryBot-Result: Gopher Robot <gobot@golang.org >
Reviewed-by: Joedian Reid <joedian@golang.org >
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com >
Run-TryBot: Ian Lance Taylor <iant@google.com >
Auto-Submit: Ian Lance Taylor <iant@google.com >
2022-10-13 17:17:32 +00:00
Russ Cox
9a76102bfb
all: go fmt ./...
...
Make all our package sources use Go 1.17 gofmt format
(adding //go:build lines).
Not strictly necessary but will avoid spurious changes
as files are edited.
Part of //go:build change (#41184 ).
See https://golang.org/design/draft-gobuild
Change-Id: I01667f826428426a39c84717d02efa25fa44553c
Reviewed-on: https://go-review.googlesource.com/c/sys/+/294490
TryBot-Result: Go Bot <gobot@golang.org >
Reviewed-by: Keith Randall <khr@golang.org >
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com >
Reviewed-by: Matt Layher <mdlayher@gmail.com >
Trust: Josh Bleecher Snyder <josharian@gmail.com >
Trust: Russ Cox <rsc@golang.org >
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com >
Run-TryBot: Russ Cox <rsc@golang.org >
2021-02-20 05:07:31 +00:00
Tobias Klauser
e93b963712
unix: use ParseDirent in testGetdirentries
...
Use ParseDirent to get the directory entries instead of manually parsing
them. This fixes the test on dragonfly where type Dirent doesn't have a
Reclen member.
Manually tested on darwin, dragonfly and freebsd.
Change-Id: I234c6aff78243fec8bba8784c1d4948fbbb4d027
Reviewed-on: https://go-review.googlesource.com/c/sys/+/183226
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Benny Siegert <bsiegert@gmail.com >
2019-06-24 14:20:14 +00:00
Yuval Pavel Zholkover
a26fa11ef6
unix: fix Getdirentries emulation using Getdents on netbsd, openbsd
...
CL 182319 used the wrong shift offset, correct and enable the TestGetdirentries.
Change-Id: I45d8d420a071fd79fa1b37642b984d80943f492b
Reviewed-on: https://go-review.googlesource.com/c/sys/+/183221
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com >
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
Run-TryBot: Ian Lance Taylor <iant@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2019-06-21 18:44:11 +00:00
Tobias Klauser
d6ba46b060
unix: add test for Getdirentries
...
Copied and adapted from the respective test in std syscall.
Change-Id: Ia35864e201c8b628dfc21a8da79305d5741d4acc
Reviewed-on: https://go-review.googlesource.com/c/sys/+/183219
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
Reviewed-by: Yuval Pavel Zholkover <paulzhol@gmail.com >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2019-06-21 18:37:10 +00:00