From: Flavio Castelli Date: Thu, 14 Nov 2024 09:47:36 +0000 (+0000) Subject: syscall: define EBADFD for wasip1 target X-Git-Tag: go1.24rc1~398 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8b0ac33da8574b74ba50ad727b59fa8679d93e4b;p=gostls13.git syscall: define EBADFD for wasip1 target Fixes #60998 Change-Id: I7e899708c7e0406bd9927eb411b57fc3240b7f18 GitHub-Last-Rev: c1a20aee0e559e8a27a3c59acfd244fdbf885a80 GitHub-Pull-Request: golang/go#60999 Reviewed-on: https://go-review.googlesource.com/c/go/+/506175 Reviewed-by: Ian Lance Taylor Auto-Submit: Ian Lance Taylor Reviewed-by: Cherry Mui LUCI-TryBot-Result: Go LUCI --- diff --git a/src/syscall/tables_wasip1.go b/src/syscall/tables_wasip1.go index 973a56e274..be178c1cca 100644 --- a/src/syscall/tables_wasip1.go +++ b/src/syscall/tables_wasip1.go @@ -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.",