Package org.teavm.backend.wasm.wasi
Class Wasi
java.lang.Object
org.teavm.backend.wasm.wasi.Wasi
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final shortstatic final shortstatic final shortstatic final shortstatic final shortstatic final bytestatic final bytestatic final shortstatic final shortstatic final shortstatic final shortstatic final bytestatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionstatic shortstatic shortargsSizesGet(IntResult argvSize, IntResult argvBufSize) static shortclockTimeGet(int clockId, long precision, LongResult result) static shortfdClose(int fd) static shortfdFilestatGet(int fd, Filestat filestat) static shortfdFilestatSetSize(int fd, long size) static shortfdFilestatSetTimes(int fd, long atime, long mtime, short fstflags) static shortfdPrestatDirName(int fd, Address buffer, int bufferLength) static shortfdPrestatGet(int fd, Prestat prestat) static shortfdRead(int fd, IOVec vecArray, int vecArrayLength, SizeResult size) static shortstatic shortfdSeek(int fd, long offset, byte whence, SizeResult size) static shortfdSync(int fd) static shortfdTell(int fd, SizeResult size) static shortfdWrite(int fd, IOVec vectors, int vectorsCont, SizeResult result) static shortpathCreateDirectory(int fd, Address path, int pathLength) static shortpathFilestatGet(int fd, int lookupFlags, Address path, int pathLength, Filestat filestat) static shortpathFilestatSetTimes(int fd, int lookupFlags, Address path, int pathLength, long atime, long mtime, short fstflags) static shortpathOpen(int dirFd, int lookupFlags, Address path, int pathLength, short oflags, long baseRights, long inheritingRights, short fdflags, FdResult fd) static shortpathRemoveDirectory(int fd, Address path, int pathLength) static shortpathRename(int oldFd, Address oldPath, int oldPathLength, int newFd, Address newPath, int newPathLength) static shortpathUnlinkFile(int fd, Address path, int pathLength) static short
-
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
-
fdRead
-
fdWrite
-
fdTell
-
fdSeek
-
fdPrestatGet
-
fdPrestatDirName
-
fdFilestatGet
-
pathFilestatGet
-
fdReaddir
-
pathOpen
-
fdClose
public static short fdClose(int fd) -
pathCreateDirectory
-
pathUnlinkFile
-
pathRemoveDirectory
-
pathRename
-
fdFilestatSetTimes
public static short fdFilestatSetTimes(int fd, long atime, long mtime, short fstflags) -
pathFilestatSetTimes
public static short pathFilestatSetTimes(int fd, int lookupFlags, 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
-