mirror of
https://github.com/golang/go
synced 2024-11-25 11:07:59 -07:00
syscall: define EBADFD for wasip1 target
Fixes #60998
Change-Id: I7e899708c7e0406bd9927eb411b57fc3240b7f18
GitHub-Last-Rev: c1a20aee0e
GitHub-Pull-Request: golang/go#60999
Reviewed-on: https://go-review.googlesource.com/c/go/+/506175
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
eb1e505f3f
commit
8b0ac33da8
@ -86,6 +86,7 @@ const (
|
||||
ETXTBSY Errno = 74
|
||||
EXDEV Errno = 75
|
||||
ENOTCAPABLE Errno = 76
|
||||
EBADFD Errno = 77
|
||||
// needed by src/net/error_unix_test.go
|
||||
EOPNOTSUPP = ENOTSUP
|
||||
)
|
||||
@ -100,6 +101,7 @@ var errorstr = [...]string{
|
||||
EAGAIN: "Try again",
|
||||
EALREADY: "Socket already connected",
|
||||
EBADF: "Bad file number",
|
||||
EBADFD: "file descriptor in bad state",
|
||||
EBADMSG: "Trying to read unreadable message",
|
||||
EBUSY: "Device or resource busy",
|
||||
ECANCELED: "Operation canceled.",
|
||||
|
Loading…
Reference in New Issue
Block a user