Package org.teavm.backend.wasm.wasi
Class Wasi
java.lang.Object
org.teavm.backend.wasm.wasi.Wasi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final short
static final short
static final short
static final short
static final short
static final byte
static final byte
static final short
static final short
static final short
static final short
static final byte
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final byte
static final byte
static final byte
-
Method Summary
Modifier and TypeMethodDescriptionstatic short
argsGet
(org.teavm.interop.Address argv, org.teavm.interop.Address argvBuf) static short
argsSizesGet
(IntResult argvSize, IntResult argvBufSize) static short
clockTimeGet
(int clockId, long precision, LongResult result) static short
fdClose
(int fd) static short
fdFilestatGet
(int fd, Filestat filestat) static short
fdFilestatSetSize
(int fd, long size) static short
fdFilestatSetTimes
(int fd, long atime, long mtime, short fstflags) static short
fdPrestatDirName
(int fd, org.teavm.interop.Address buffer, int bufferLength) static short
fdPrestatGet
(int fd, Prestat prestat) static short
fdRead
(int fd, IOVec vecArray, int vecArrayLength, SizeResult size) static short
static short
fdSeek
(int fd, long offset, byte whence, SizeResult size) static short
fdSync
(int fd) static short
fdTell
(int fd, SizeResult size) static short
fdWrite
(int fd, IOVec vectors, int vectorsCont, SizeResult result) static short
pathCreateDirectory
(int fd, org.teavm.interop.Address path, int pathLength) static short
pathFilestatGet
(int fd, int lookupFlags, org.teavm.interop.Address path, int pathLength, Filestat filestat) static short
pathFilestatSetTimes
(int fd, int lookupFlags, org.teavm.interop.Address path, int pathLength, long atime, long mtime, short fstflags) static short
pathOpen
(int dirFd, int lookupFlags, org.teavm.interop.Address path, int pathLength, short oflags, long baseRights, long inheritingRights, short fdflags, FdResult fd) static short
pathRemoveDirectory
(int fd, org.teavm.interop.Address path, int pathLength) static short
pathRename
(int oldFd, org.teavm.interop.Address oldPath, int oldPathLength, int newFd, org.teavm.interop.Address newPath, int newPathLength) static short
pathUnlinkFile
(int fd, org.teavm.interop.Address path, int pathLength) static short
randomGet
(org.teavm.interop.Address buffer, int bufferLength)
-
Field Details
-
CLOCKID_REALTIME
public static final int CLOCKID_REALTIME- See Also:
-
PRESTAT_DIR
public static final byte PRESTAT_DIR- See Also:
-
ERRNO_SUCCESS
public static final short ERRNO_SUCCESS- See Also:
-
ERRNO_BADF
public static final short ERRNO_BADF- See Also:
-
ERRNO_EXIST
public static final short ERRNO_EXIST- See Also:
-
ERRNO_NOENT
public static final short ERRNO_NOENT- See Also:
-
FILETYPE_DIRECTORY
public static final byte FILETYPE_DIRECTORY- See Also:
-
FILETYPE_REGULAR_FILE
public static final byte FILETYPE_REGULAR_FILE- See Also:
-
DIRFLAGS_FOLLOW_SYMLINKS
public static final int DIRFLAGS_FOLLOW_SYMLINKS- See Also:
-
OFLAGS_CREATE
public static final short OFLAGS_CREATE- See Also:
-
OFLAGS_DIRECTORY
public static final short OFLAGS_DIRECTORY- See Also:
-
OFLAGS_EXCLUSIVE
public static final short OFLAGS_EXCLUSIVE- See Also:
-
RIGHTS_READ
public static final long RIGHTS_READ- See Also:
-
RIGHTS_SEEK
public static final long RIGHTS_SEEK- See Also:
-
RIGHTS_TELL
public static final long RIGHTS_TELL- See Also:
-
RIGHTS_WRITE
public static final long RIGHTS_WRITE- See Also:
-
RIGHTS_SYNC
public static final long RIGHTS_SYNC- See Also:
-
RIGHTS_CREATE_DIRECTORY
public static final long RIGHTS_CREATE_DIRECTORY- See Also:
-
RIGHTS_CREATE_FILE
public static final long RIGHTS_CREATE_FILE- See Also:
-
RIGHTS_FD_READDIR
public static final long RIGHTS_FD_READDIR- See Also:
-
RIGHTS_FD_FILESTAT_GET
public static final long RIGHTS_FD_FILESTAT_GET- See Also:
-
RIGHTS_FD_FILESTAT_SET_SIZE
public static final long RIGHTS_FD_FILESTAT_SET_SIZE- See Also:
-
FDFLAGS_APPEND
public static final short FDFLAGS_APPEND- See Also:
-
FSTFLAGS_MTIME
public static final short FSTFLAGS_MTIME- See Also:
-
WHENCE_START
public static final byte WHENCE_START- See Also:
-
WHENCE_CURRENT
public static final byte WHENCE_CURRENT- See Also:
-
WHENCE_END
public static final byte WHENCE_END- See Also:
-
-
Method Details
-
clockTimeGet
-
argsSizesGet
-
argsGet
public static short argsGet(org.teavm.interop.Address argv, org.teavm.interop.Address argvBuf) -
fdRead
-
fdWrite
-
fdTell
-
fdSeek
-
fdPrestatGet
-
fdPrestatDirName
public static short fdPrestatDirName(int fd, org.teavm.interop.Address buffer, int bufferLength) -
fdFilestatGet
-
pathFilestatGet
public static short pathFilestatGet(int fd, int lookupFlags, org.teavm.interop.Address path, int pathLength, Filestat filestat) -
fdReaddir
public static short fdReaddir(int fd, org.teavm.interop.Address dirent, int direntSize, long cookie, IntResult size) -
pathOpen
public static short pathOpen(int dirFd, int lookupFlags, org.teavm.interop.Address path, int pathLength, short oflags, long baseRights, long inheritingRights, short fdflags, FdResult fd) -
fdClose
public static short fdClose(int fd) -
pathCreateDirectory
public static short pathCreateDirectory(int fd, org.teavm.interop.Address path, int pathLength) -
pathUnlinkFile
public static short pathUnlinkFile(int fd, org.teavm.interop.Address path, int pathLength) -
pathRemoveDirectory
public static short pathRemoveDirectory(int fd, org.teavm.interop.Address path, int pathLength) -
pathRename
public static short pathRename(int oldFd, org.teavm.interop.Address oldPath, int oldPathLength, int newFd, org.teavm.interop.Address newPath, int newPathLength) -
fdFilestatSetTimes
public static short fdFilestatSetTimes(int fd, long atime, long mtime, short fstflags) -
pathFilestatSetTimes
public static short pathFilestatSetTimes(int fd, int lookupFlags, org.teavm.interop.Address path, int pathLength, long atime, long mtime, short fstflags) -
fdFilestatSetSize
public static short fdFilestatSetSize(int fd, long size) -
fdSync
public static short fdSync(int fd) -
randomGet
public static short randomGet(org.teavm.interop.Address buffer, int bufferLength)
-