wasip1

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	E2BIG           errno = 1
	EACCES          errno = 2
	EADDRINUSE      errno = 3
	EADDRNOTAVAIL   errno = 4
	EAFNOSUPPORT    errno = 5
	EAGAIN          errno = 6
	EALREADY        errno = 7
	EBADF           errno = 8
	EBADMSG         errno = 9
	EBUSY           errno = 10
	ECANCELED       errno = 11
	ECHILD          errno = 12
	ECONNABORTED    errno = 13
	ECONNREFUSED    errno = 14
	ECONNRESET      errno = 15
	EDEADLK         errno = 16
	EDESTADDRREQ    errno = 17
	EDOM            errno = 18
	EDQUOT          errno = 19
	EEXIST          errno = 20
	EFAULT          errno = 21
	EFBIG           errno = 22
	EHOSTUNREACH    errno = 23
	EIDRM           errno = 24
	EILSEQ          errno = 25
	EINPROGRESS     errno = 26
	EINTR           errno = 27
	EINVAL          errno = 28
	EIO             errno = 29
	EISCONN         errno = 30
	EISDIR          errno = 31
	ELOOP           errno = 32
	EMFILE          errno = 33
	EMLINK          errno = 34
	EMSGSIZE        errno = 35
	EMULTIHOP       errno = 36
	ENAMETOOLONG    errno = 37
	ENETDOWN        errno = 38
	ENETRESET       errno = 39
	ENETUNREACH     errno = 40
	ENFILE          errno = 41
	ENOBUFS         errno = 42
	ENODEV          errno = 43
	ENOENT          errno = 44
	ENOEXEC         errno = 45
	ENOLCK          errno = 46
	ENOLINK         errno = 47
	ENOMEM          errno = 48
	ENOMSG          errno = 49
	ENOPROTOOPT     errno = 50
	ENOSPC          errno = 51
	ENOSYS          errno = 52
	ENOTCONN        errno = 53
	ENOTDIR         errno = 54
	ENOTEMPTY       errno = 55
	ENOTRECOVERABLE errno = 56
	ENOTSOCK        errno = 57
	ENOTSUP         errno = 58
	ENOTTY          errno = 59
	ENXIO           errno = 60
	EOVERFLOW       errno = 61
	EOWNERDEAD      errno = 62
	EPERM           errno = 63
	EPIPE           errno = 64
	EPROTO          errno = 65
	EPROTONOSUPPORT errno = 66
	EPROTOTYPE      errno = 67
	ERANGE          errno = 68
	EROFS           errno = 69
	ESPIPE          errno = 70
	ESRCH           errno = 71
	ESTALE          errno = 72
	ETIMEDOUT       errno = 73
	ETXTBSY         errno = 74
	EXDEV           errno = 75
	ENOTCAPABLE     errno = 76
	// needed by src/net/error_unix_test.go
	EOPNOTSUPP = ENOTSUP
)

errno is just a copy of syscall.Errno from the Go standard library.

WATER error code is defined as the negative value of errno.

Variables

This section is empty.

Functions

func DecodeWATERError

func DecodeWATERError(errorCode int32) (n int32, err error)

DecodeWATERError converts a error code returned by WATER API into a syscall.Errno or a higher-level error in Go.

It automatically detects whether the error code is a WATER error or a success code (positive). In case of a success code, it returns the code itself and a nil error.

func EncodeWATERError

func EncodeWATERError(errno syscall.Errno) int32

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL