Package ej.wasi
Interface WasiConstants
-
- All Known Implementing Classes:
Selector,Wasi,Wasi.WasiSnapshotPreview1,WasiDirImpl,WasiDirStub,WasiFileImpl,WasiFileStub,WasiServerSocket,WasiSocket,WasiSSL
public interface WasiConstantsWasi errno values
-
-
Field Summary
Fields Modifier and Type Field Description static intAF_INETstatic intAF_INET6static intBLOCKING_CONNECT_TIMEOUTThe blocking connect timeout in millisecondsstatic intBUFFERED_INPUT_STREAM_SIZEThe size of the buffered input stream used for sockets.static intCLOCK_MONOTONICThe store-wide monotonic clock, which is defined as a clock measuring real time, whose value cannot be adjusted and which cannot have negative clock jumps.static intCLOCK_REALTIMEThe clock measuring real time.static intDIRENT_COOKIE_OFFSETstatic intDIRENT_ENTRY_NAME_LENGTH_OFFSETstatic intDIRENT_FILE_TYPE_OFFSETstatic intDIRENT_INODE_OFFSETstatic intDIRENT_SIZEstatic intERRNO_ACCESPermission denied.static intERRNO_ADDRINUSEAddress already in use.static intERRNO_ADDRNOTAVAILAddress not available.static intERRNO_AFNOSUPPORTAddress family not supported.static intERRNO_AGAINResource unavailable, or operation would block.static intERRNO_BADFBad file descriptor.static intERRNO_CONNREFUSEDConnection refused.static intERRNO_EXISTFile exists.static intERRNO_FAULTBad address.static intERRNO_HOSTUNREACHHost unreachablestatic intERRNO_INPROGRESSOperation in progress.static intERRNO_INTRInterrupted function.static intERRNO_INVALInvalid argument.static intERRNO_IOI/O error.static intERRNO_ISCONNSocket is connected.static intERRNO_ISDIRIs a directory.static intERRNO_MSGSIZEMessage too large.static intERRNO_NAMETOOLONGFilename too longstatic intERRNO_NOENTNo such file or directory.static intERRNO_NOMEMNot enough space.static intERRNO_NOSYSFunction not supported.static intERRNO_NOTCONNThe socket is not connected.static intERRNO_NOTDIRNot a directory or a symbolic link to a directory.static intERRNO_NOTEMPTYDirectory not empty.static intERRNO_NOTSOCKNot a socket.static intERRNO_NOTSUPNot supported, or operation not supported on socket.static intERRNO_OVERFLOWValue too large to be stored in data type.static intERRNO_SPIPEInvalid seek.static intERRNO_SUCCESSNo error occurred.static intEVENT_AVAILABLE_BYTE_OFFSETstatic intEVENT_ERROR_OFFSETstatic intEVENT_EVENT_TYPE_OFFSETstatic intEVENT_READ_WRITE_HANGUP_OFFSETstatic intEVENT_SIZEstatic intEVENT_USER_DATA_OFFSETstatic intFDFLAGS_APPEND_MASKstatic intFDFLAGS_NON_BLOCK_MASKstatic intFDSTAT_BASE_RIGHTS_OFFSETstatic intFDSTAT_FILE_TYPE_OFFSETstatic intFDSTAT_FLAGS_OFFSETstatic intFDSTAT_INHERITING_RIGHTS_OFFSETstatic intFILESTAT_FILESIZE_OFFSETstatic intFILESTAT_FILETYPE_OFFSETstatic intFILESTAT_INODE_OFFSETstatic intFILESTAT_LAST_MODIFIED_TIME_OFFSETstatic intIFF_LOOPBACKInterface flag: interface is a loopback device.static intIFF_RUNNINGInterface flag: interface is running.static intIFF_UPInterface flag: interface is up.static intIOVEC_BUFFER_INDEXstatic intIOVEC_BUFFER_LENGTH_INDEXstatic intIOVEC_SIZEstatic intIP_ADD_MEMBERSHIPJoin an IPv4 multicast group.static intIP_DROP_MEMBERSHIPLeave an IPv4 multicast group.static intIP_MULTICAST_IFIPv4 multicast outgoing interface.static intIP_MULTICAST_LOOPIPv4 multicast loopback.static intIP_MULTICAST_TTLIPv4 multicast TTL (hop limit).static intIP_TTLIPv4 unicast TTL (time-to-live).static intIPPROTO_IPIPv4 protocol level for setsockopt/getsockopt.static intIPPROTO_IPV6IPv6 protocol level for setsockopt/getsockopt.static intIPv4AddressSizeIPv4 address size in bytesstatic intIPV6_JOIN_GROUPJoin an IPv6 multicast group (alias: IPV6_ADD_MEMBERSHIP).static intIPV6_LEAVE_GROUPLeave an IPv6 multicast group (alias: IPV6_DROP_MEMBERSHIP).static intIPV6_MULTICAST_HOPSIPv6 multicast hop limit.static intIPV6_MULTICAST_IFIPv6 multicast outgoing interface (by scope_id).static intIPV6_MULTICAST_LOOPIPv6 multicast loopback.static intIPV6_UNICAST_HOPSIPv6 unicast hop limit.static intIPv6AddressSizeIPv6 address size in bytesstatic intLOOKUPFLAGS_SYMLINK_FOLLOW_MASKstatic intMILLIS_TO_NANOThis constant is used to transform a value in millisecond into a value in nanosecond As in 10 ms * MILLIS_TO_NANO = 10000000static intNON_BLOCKING_TIMEOUTThe timeout used to emulate non blocking operation (in milliseconds)static intOFLAGS_CREAT_MASKstatic intOFLAGS_DIRECTORY_MASKstatic intOFLAGS_EXCL_MASKstatic intOFLAGS_TRUNC_MASKstatic intPOLLING_TIMEOUTThe selector polling timeout (in milliseconds)static intPREOPENTYPE_DIRPart of the WASI specification.static intPREOPENTYPE_UNKNOWNNot part of the WASI specification.static intPRESTAT_PREOPEN_DIRNAME_OFFSETstatic intPRESTAT_PREOPEN_TAG_OFFSETstatic intRIFLAGS_MSG_PEEK_MASKstatic intRIFLAGS_WAITALL_MASKstatic longRIGHTS_ALLAll 30 WASI capability rights bits (0x3FFFFFFF).static longRIGHTS_DIRRights appropriate for directory file descriptors.static intSDFLAGS_READstatic intSDFLAGS_WRITEstatic intSO_BROADCASTstatic intSO_RCVBUFstatic intSO_REUSEADDRstatic intSO_SNDBUFstatic intSOCK_CLOEXECstatic intSOCK_NONBLOCKLinux-style socket flags OR'd into the type parameter of socket().static intSOCKET_LEVELstatic intUDP_PEEK_BUFFER_MAX_SIZEMaximum size (in bytes) of the buffer allocated by the Selector to peek incoming UDP datagrams for readiness checks.
-
-
-
Field Detail
-
ERRNO_SUCCESS
static final int ERRNO_SUCCESS
No error occurred. System call completed successfully.- See Also:
- Constant Field Values
-
ERRNO_ACCES
static final int ERRNO_ACCES
Permission denied.- See Also:
- Constant Field Values
-
ERRNO_ADDRINUSE
static final int ERRNO_ADDRINUSE
Address already in use.- See Also:
- Constant Field Values
-
ERRNO_ADDRNOTAVAIL
static final int ERRNO_ADDRNOTAVAIL
Address not available.- See Also:
- Constant Field Values
-
ERRNO_AFNOSUPPORT
static final int ERRNO_AFNOSUPPORT
Address family not supported.- See Also:
- Constant Field Values
-
ERRNO_AGAIN
static final int ERRNO_AGAIN
Resource unavailable, or operation would block.- See Also:
- Constant Field Values
-
ERRNO_BADF
static final int ERRNO_BADF
Bad file descriptor.- See Also:
- Constant Field Values
-
ERRNO_CONNREFUSED
static final int ERRNO_CONNREFUSED
Connection refused.- See Also:
- Constant Field Values
-
ERRNO_EXIST
static final int ERRNO_EXIST
File exists.- See Also:
- Constant Field Values
-
ERRNO_FAULT
static final int ERRNO_FAULT
Bad address.- See Also:
- Constant Field Values
-
ERRNO_HOSTUNREACH
static final int ERRNO_HOSTUNREACH
Host unreachable- See Also:
- Constant Field Values
-
ERRNO_INPROGRESS
static final int ERRNO_INPROGRESS
Operation in progress.- See Also:
- Constant Field Values
-
ERRNO_INTR
static final int ERRNO_INTR
Interrupted function.- See Also:
- Constant Field Values
-
ERRNO_INVAL
static final int ERRNO_INVAL
Invalid argument.- See Also:
- Constant Field Values
-
ERRNO_IO
static final int ERRNO_IO
I/O error.- See Also:
- Constant Field Values
-
ERRNO_ISCONN
static final int ERRNO_ISCONN
Socket is connected.- See Also:
- Constant Field Values
-
ERRNO_ISDIR
static final int ERRNO_ISDIR
Is a directory.- See Also:
- Constant Field Values
-
ERRNO_MSGSIZE
static final int ERRNO_MSGSIZE
Message too large.- See Also:
- Constant Field Values
-
ERRNO_NAMETOOLONG
static final int ERRNO_NAMETOOLONG
Filename too long- See Also:
- Constant Field Values
-
ERRNO_NOENT
static final int ERRNO_NOENT
No such file or directory.- See Also:
- Constant Field Values
-
ERRNO_NOMEM
static final int ERRNO_NOMEM
Not enough space.- See Also:
- Constant Field Values
-
ERRNO_NOSYS
static final int ERRNO_NOSYS
Function not supported.- See Also:
- Constant Field Values
-
ERRNO_NOTCONN
static final int ERRNO_NOTCONN
The socket is not connected.- See Also:
- Constant Field Values
-
ERRNO_NOTDIR
static final int ERRNO_NOTDIR
Not a directory or a symbolic link to a directory.- See Also:
- Constant Field Values
-
ERRNO_NOTEMPTY
static final int ERRNO_NOTEMPTY
Directory not empty.- See Also:
- Constant Field Values
-
ERRNO_NOTSOCK
static final int ERRNO_NOTSOCK
Not a socket.- See Also:
- Constant Field Values
-
ERRNO_NOTSUP
static final int ERRNO_NOTSUP
Not supported, or operation not supported on socket.- See Also:
- Constant Field Values
-
ERRNO_OVERFLOW
static final int ERRNO_OVERFLOW
Value too large to be stored in data type.- See Also:
- Constant Field Values
-
ERRNO_SPIPE
static final int ERRNO_SPIPE
Invalid seek.- See Also:
- Constant Field Values
-
OFLAGS_CREAT_MASK
static final int OFLAGS_CREAT_MASK
- See Also:
- Constant Field Values
-
OFLAGS_DIRECTORY_MASK
static final int OFLAGS_DIRECTORY_MASK
- See Also:
- Constant Field Values
-
OFLAGS_EXCL_MASK
static final int OFLAGS_EXCL_MASK
- See Also:
- Constant Field Values
-
OFLAGS_TRUNC_MASK
static final int OFLAGS_TRUNC_MASK
- See Also:
- Constant Field Values
-
LOOKUPFLAGS_SYMLINK_FOLLOW_MASK
static final int LOOKUPFLAGS_SYMLINK_FOLLOW_MASK
- See Also:
- Constant Field Values
-
FDFLAGS_NON_BLOCK_MASK
static final int FDFLAGS_NON_BLOCK_MASK
- See Also:
- Constant Field Values
-
FDFLAGS_APPEND_MASK
static final int FDFLAGS_APPEND_MASK
- See Also:
- Constant Field Values
-
RIFLAGS_MSG_PEEK_MASK
static final int RIFLAGS_MSG_PEEK_MASK
- See Also:
- Constant Field Values
-
RIFLAGS_WAITALL_MASK
static final int RIFLAGS_WAITALL_MASK
- See Also:
- Constant Field Values
-
FILESTAT_INODE_OFFSET
static final int FILESTAT_INODE_OFFSET
- See Also:
- Constant Field Values
-
FILESTAT_FILETYPE_OFFSET
static final int FILESTAT_FILETYPE_OFFSET
- See Also:
- Constant Field Values
-
FILESTAT_FILESIZE_OFFSET
static final int FILESTAT_FILESIZE_OFFSET
- See Also:
- Constant Field Values
-
FILESTAT_LAST_MODIFIED_TIME_OFFSET
static final int FILESTAT_LAST_MODIFIED_TIME_OFFSET
- See Also:
- Constant Field Values
-
SDFLAGS_READ
static final int SDFLAGS_READ
- See Also:
- Constant Field Values
-
SDFLAGS_WRITE
static final int SDFLAGS_WRITE
- See Also:
- Constant Field Values
-
PRESTAT_PREOPEN_TAG_OFFSET
static final int PRESTAT_PREOPEN_TAG_OFFSET
- See Also:
- Constant Field Values
-
PRESTAT_PREOPEN_DIRNAME_OFFSET
static final int PRESTAT_PREOPEN_DIRNAME_OFFSET
- See Also:
- Constant Field Values
-
PREOPENTYPE_UNKNOWN
static final int PREOPENTYPE_UNKNOWN
Not part of the WASI specification. Declares that a file descriptor has been open but its type is not a well-known type.
-
PREOPENTYPE_DIR
static final int PREOPENTYPE_DIR
Part of the WASI specification. Declares that a file descriptor has been open and its type is a directory.
-
DIRENT_COOKIE_OFFSET
static final int DIRENT_COOKIE_OFFSET
- See Also:
- Constant Field Values
-
DIRENT_INODE_OFFSET
static final int DIRENT_INODE_OFFSET
- See Also:
- Constant Field Values
-
DIRENT_ENTRY_NAME_LENGTH_OFFSET
static final int DIRENT_ENTRY_NAME_LENGTH_OFFSET
- See Also:
- Constant Field Values
-
DIRENT_FILE_TYPE_OFFSET
static final int DIRENT_FILE_TYPE_OFFSET
- See Also:
- Constant Field Values
-
DIRENT_SIZE
static final int DIRENT_SIZE
- See Also:
- Constant Field Values
-
EVENT_AVAILABLE_BYTE_OFFSET
static final int EVENT_AVAILABLE_BYTE_OFFSET
- See Also:
- Constant Field Values
-
EVENT_READ_WRITE_HANGUP_OFFSET
static final int EVENT_READ_WRITE_HANGUP_OFFSET
- See Also:
- Constant Field Values
-
EVENT_SIZE
static final int EVENT_SIZE
- See Also:
- Constant Field Values
-
EVENT_USER_DATA_OFFSET
static final int EVENT_USER_DATA_OFFSET
- See Also:
- Constant Field Values
-
EVENT_ERROR_OFFSET
static final int EVENT_ERROR_OFFSET
- See Also:
- Constant Field Values
-
EVENT_EVENT_TYPE_OFFSET
static final int EVENT_EVENT_TYPE_OFFSET
- See Also:
- Constant Field Values
-
FDSTAT_FILE_TYPE_OFFSET
static final int FDSTAT_FILE_TYPE_OFFSET
- See Also:
- Constant Field Values
-
FDSTAT_FLAGS_OFFSET
static final int FDSTAT_FLAGS_OFFSET
- See Also:
- Constant Field Values
-
FDSTAT_BASE_RIGHTS_OFFSET
static final int FDSTAT_BASE_RIGHTS_OFFSET
- See Also:
- Constant Field Values
-
FDSTAT_INHERITING_RIGHTS_OFFSET
static final int FDSTAT_INHERITING_RIGHTS_OFFSET
- See Also:
- Constant Field Values
-
RIGHTS_ALL
static final long RIGHTS_ALL
All 30 WASI capability rights bits (0x3FFFFFFF). Used as the base rights for regular files; actual permission enforcement happens at the host OS level when operations are performed.- See Also:
- Constant Field Values
-
RIGHTS_DIR
static final long RIGHTS_DIR
Rights appropriate for directory file descriptors. Excludes operations that only apply to regular files: datasync, seek, tell, write, advise, allocate, and truncate (filestat_set_size). Matches what standard WASI runtimes (wasmtime, wasmer) report for preopened directories.- See Also:
- Constant Field Values
-
IOVEC_BUFFER_INDEX
static final int IOVEC_BUFFER_INDEX
- See Also:
- Constant Field Values
-
IOVEC_BUFFER_LENGTH_INDEX
static final int IOVEC_BUFFER_LENGTH_INDEX
- See Also:
- Constant Field Values
-
IOVEC_SIZE
static final int IOVEC_SIZE
- See Also:
- Constant Field Values
-
MILLIS_TO_NANO
static final int MILLIS_TO_NANO
This constant is used to transform a value in millisecond into a value in nanosecond As in 10 ms * MILLIS_TO_NANO = 10000000- See Also:
- Constant Field Values
-
CLOCK_REALTIME
static final int CLOCK_REALTIME
The clock measuring real time. Time value zero corresponds with 1970-01-01T00:00:00Z.- See Also:
- Constant Field Values
-
CLOCK_MONOTONIC
static final int CLOCK_MONOTONIC
The store-wide monotonic clock, which is defined as a clock measuring real time, whose value cannot be adjusted and which cannot have negative clock jumps. The epoch of this clock is undefined. The absolute time value of this clock therefore has no meaning.- See Also:
- Constant Field Values
-
AF_INET
static final int AF_INET
- See Also:
- Constant Field Values
-
AF_INET6
static final int AF_INET6
- See Also:
- Constant Field Values
-
SOCKET_LEVEL
static final int SOCKET_LEVEL
- See Also:
- Constant Field Values
-
SO_REUSEADDR
static final int SO_REUSEADDR
- See Also:
- Constant Field Values
-
SO_BROADCAST
static final int SO_BROADCAST
- See Also:
- Constant Field Values
-
SO_SNDBUF
static final int SO_SNDBUF
- See Also:
- Constant Field Values
-
SO_RCVBUF
static final int SO_RCVBUF
- See Also:
- Constant Field Values
-
IPPROTO_IP
static final int IPPROTO_IP
IPv4 protocol level for setsockopt/getsockopt.- See Also:
- Constant Field Values
-
IPPROTO_IPV6
static final int IPPROTO_IPV6
IPv6 protocol level for setsockopt/getsockopt.- See Also:
- Constant Field Values
-
IP_TTL
static final int IP_TTL
IPv4 unicast TTL (time-to-live).- See Also:
- Constant Field Values
-
IP_MULTICAST_IF
static final int IP_MULTICAST_IF
IPv4 multicast outgoing interface.- See Also:
- Constant Field Values
-
IP_MULTICAST_TTL
static final int IP_MULTICAST_TTL
IPv4 multicast TTL (hop limit).- See Also:
- Constant Field Values
-
IP_MULTICAST_LOOP
static final int IP_MULTICAST_LOOP
IPv4 multicast loopback.- See Also:
- Constant Field Values
-
IP_ADD_MEMBERSHIP
static final int IP_ADD_MEMBERSHIP
Join an IPv4 multicast group.- See Also:
- Constant Field Values
-
IP_DROP_MEMBERSHIP
static final int IP_DROP_MEMBERSHIP
Leave an IPv4 multicast group.- See Also:
- Constant Field Values
-
IPV6_UNICAST_HOPS
static final int IPV6_UNICAST_HOPS
IPv6 unicast hop limit.- See Also:
- Constant Field Values
-
IPV6_MULTICAST_IF
static final int IPV6_MULTICAST_IF
IPv6 multicast outgoing interface (by scope_id).- See Also:
- Constant Field Values
-
IPV6_MULTICAST_HOPS
static final int IPV6_MULTICAST_HOPS
IPv6 multicast hop limit.- See Also:
- Constant Field Values
-
IPV6_MULTICAST_LOOP
static final int IPV6_MULTICAST_LOOP
IPv6 multicast loopback.- See Also:
- Constant Field Values
-
IPV6_JOIN_GROUP
static final int IPV6_JOIN_GROUP
Join an IPv6 multicast group (alias: IPV6_ADD_MEMBERSHIP).- See Also:
- Constant Field Values
-
IPV6_LEAVE_GROUP
static final int IPV6_LEAVE_GROUP
Leave an IPv6 multicast group (alias: IPV6_DROP_MEMBERSHIP).- See Also:
- Constant Field Values
-
IFF_UP
static final int IFF_UP
Interface flag: interface is up.- See Also:
- Constant Field Values
-
IFF_LOOPBACK
static final int IFF_LOOPBACK
Interface flag: interface is a loopback device.- See Also:
- Constant Field Values
-
IFF_RUNNING
static final int IFF_RUNNING
Interface flag: interface is running.- See Also:
- Constant Field Values
-
SOCK_NONBLOCK
static final int SOCK_NONBLOCK
Linux-style socket flags OR'd into the type parameter of socket().- See Also:
- Constant Field Values
-
SOCK_CLOEXEC
static final int SOCK_CLOEXEC
- See Also:
- Constant Field Values
-
IPv4AddressSize
static final int IPv4AddressSize
IPv4 address size in bytes- See Also:
- Constant Field Values
-
IPv6AddressSize
static final int IPv6AddressSize
IPv6 address size in bytes- See Also:
- Constant Field Values
-
NON_BLOCKING_TIMEOUT
static final int NON_BLOCKING_TIMEOUT
The timeout used to emulate non blocking operation (in milliseconds)
-
BLOCKING_CONNECT_TIMEOUT
static final int BLOCKING_CONNECT_TIMEOUT
The blocking connect timeout in milliseconds
-
BUFFERED_INPUT_STREAM_SIZE
static final int BUFFERED_INPUT_STREAM_SIZE
The size of the buffered input stream used for sockets.
-
POLLING_TIMEOUT
static final int POLLING_TIMEOUT
The selector polling timeout (in milliseconds)
-
UDP_PEEK_BUFFER_MAX_SIZE
static final int UDP_PEEK_BUFFER_MAX_SIZE
Maximum size (in bytes) of the buffer allocated by the Selector to peek incoming UDP datagrams for readiness checks. Defaults to 65535 (2^16 − 1).
-
-