gvisor/pkg/syserror
Fabricio Voznika 7fac7e32f3 Translate syserror when validating partial IO errors
syserror allows packages to register translators for errors. These
translators should be called prior to checking if the error is valid,
otherwise it may not account for possible errors that can be returned
from different packages, e.g. safecopy.BusError => syserror.EFAULT.

Second attempt, it passes tests now :-)

PiperOrigin-RevId: 363714508
2021-03-18 12:19:57 -07:00
..
BUILD [op] Replace syscall package usage with golang.org/x/sys/unix in pkg/. 2021-03-03 10:25:58 -08:00
syserror.go Translate syserror when validating partial IO errors 2021-03-18 12:19:57 -07:00
syserror_test.go [op] Replace syscall package usage with golang.org/x/sys/unix in pkg/. 2021-03-03 10:25:58 -08:00