diff options
Diffstat (limited to 'src/internal/syscall/unix/nonblocking_wasip1.go')
-rw-r--r-- | src/internal/syscall/unix/nonblocking_wasip1.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/internal/syscall/unix/nonblocking_wasip1.go b/src/internal/syscall/unix/nonblocking_wasip1.go index 208db28c3e..5b2b53bf5c 100644 --- a/src/internal/syscall/unix/nonblocking_wasip1.go +++ b/src/internal/syscall/unix/nonblocking_wasip1.go @@ -19,6 +19,10 @@ func IsNonblock(fd int) (nonblocking bool, err error) { return flags&syscall.FDFLAG_NONBLOCK != 0, nil } +func HasNonblockFlag(flag int) bool { + return flag&syscall.FDFLAG_NONBLOCK != 0 +} + // This helper is implemented in the syscall package. It means we don't have // to redefine the fd_fdstat_get host import or the fdstat struct it // populates. |