]> Cypherpunks repositories - gostls13.git/commit
syscall: let ENOSYS, ENOTSUP and EOPNOTSUPP implement errors.ErrUnsupported
authorTobias Klauser <tklauser@distanz.ch>
Thu, 16 Mar 2023 09:59:04 +0000 (10:59 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Thu, 16 Mar 2023 17:44:01 +0000 (17:44 +0000)
commit75c2e97c3c11050847fc221480e1939f29c911e5
tree355dba7b67c7f7c6e80998b09980ed9ceb5c7122
parent8377f2014d868f60065b9244c4a84cf78c80f415
syscall: let ENOSYS, ENOTSUP and EOPNOTSUPP implement errors.ErrUnsupported

As suggested by Bryan, also update (Errno).Is on windows to include the
missing oserror cases that are covered on other platforms.

Quoting Bryan:
> Windows syscalls don't actually return those errors, but the dummy Errno
> constants defined on Windows should still have the same meaning as on
> Unix.

Updates #41198

Change-Id: I15441abde4a7ebaa3c6518262c052530cd2add4b
Reviewed-on: https://go-review.googlesource.com/c/go/+/476875
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/testenv/testenv_unix.go
src/syscall/syscall_js.go
src/syscall/syscall_plan9.go
src/syscall/syscall_unix.go
src/syscall/syscall_windows.go