Package ej.wasi

Interface WasiConstants

    • Field Detail

      • ERRNO_SUCCESS

        static final int ERRNO_SUCCESS
        No error occurred. System call completed successfully.
        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_CONNREFUSED

        static final int ERRNO_CONNREFUSED
        Connection refused.
        See Also:
        Constant Field Values
      • ERRNO_INPROGRESS

        static final int ERRNO_INPROGRESS
        Operation in progress.
        See Also:
        Constant Field Values
      • ERRNO_NAMETOOLONG

        static final int ERRNO_NAMETOOLONG
        Filename too long
        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_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
      • LOOKUPFLAGS_SYMLINK_FOLLOW_MASK

        static final int LOOKUPFLAGS_SYMLINK_FOLLOW_MASK
        See Also:
        Constant Field Values
      • FILESTAT_LAST_MODIFIED_TIME_OFFSET

        static final int FILESTAT_LAST_MODIFIED_TIME_OFFSET
        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
      • DIRENT_ENTRY_NAME_LENGTH_OFFSET

        static final int DIRENT_ENTRY_NAME_LENGTH_OFFSET
        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
      • 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
      • 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
      • 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_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_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
      • 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).