]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: define EBADFD for wasip1 target
authorFlavio Castelli <flavio@castelli.me>
Thu, 14 Nov 2024 09:47:36 +0000 (09:47 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 14 Nov 2024 16:05:15 +0000 (16:05 +0000)
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 <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>

src/syscall/tables_wasip1.go

index 973a56e2744e95ffb5bfe4d91321f7941f107b23..be178c1cca4943360327b35d2ed9f61f14d9aa21 100644 (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.",