1
0
mirror of https://github.com/golang/go synced 2024-11-25 10:07:56 -07:00

syscall: define EBADFD for wasip1 target

Fixes #60998
This commit is contained in:
Flavio Castelli 2023-06-26 10:32:09 +02:00 committed by Flavio Castelli
parent 673a539170
commit c1a20aee0e
No known key found for this signature in database
GPG Key ID: F1020D69DC004F48

View File

@ -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.",