Tobias Klauser
f068ffe820
unix: use same TestSelect on all Unices
...
Also change t.Error messages to use "got foo, expected bar" notation.
Change-Id: Ia0b452f96b08cbb69a0b64cc2a467b5cf94e72da
Reviewed-on: https://go-review.googlesource.com/c/sys/+/207858
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2019-11-19 19:55:28 +00:00
Tobias Klauser
ac3223d801
unix: add methods to manipulate *FdSet
...
Add Set, Clear, IsSet and Zero methods to manipulate an *FdSet. These
implement the same functionality as the FD_SET, FD_CLR, FD_ISSET and
FD_ZERO macros in <sys/select.h>.
Change-Id: I6b7bccb98e58ee5e719096ed5743f6edcd232840
Reviewed-on: https://go-review.googlesource.com/c/sys/+/205397
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2019-11-05 14:28:33 +00:00
Tobias Klauser
e2fefa8ec2
unix: fix Select to return number of ready fds on Solaris
...
Make Select's signature on Solaris match the one on Linux and return the number
of ready file descriptors.
Updates golang/go#34458
Change-Id: I118c4c35cbc83dba015ef357ce9bef44c9165ec1
Reviewed-on: https://go-review.googlesource.com/c/sys/+/196807
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2019-09-24 15:45:09 +00:00
Tobias Klauser
801364e02a
unix: add Select on Solaris
...
Change-Id: I9e0e4bc6b9f8700d72e891d623f948db6af7d64b
Reviewed-on: https://go-review.googlesource.com/85255
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
Reviewed-by: Ian Lance Taylor <iant@golang.org >
2017-12-22 14:35:06 +00:00
Sean Chittenden
1e99a4f9d2
unix: add Illumos statvfs(2) syscall
...
Reference: https://www.illumos.org/man/2/statvfs
Change-Id: If7af43da35b3204f5069a48eb08426a145544008
Reviewed-on: https://go-review.googlesource.com/43490
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2017-05-14 20:02:00 +00:00