securityos/node_modules/@wasmer/wasi/lib/constants.d.ts

188 lines
8.4 KiB
TypeScript

export declare const WASI_ESUCCESS = 0;
export declare const WASI_E2BIG = 1;
export declare const WASI_EACCES = 2;
export declare const WASI_EADDRINUSE = 3;
export declare const WASI_EADDRNOTAVAIL = 4;
export declare const WASI_EAFNOSUPPORT = 5;
export declare const WASI_EAGAIN = 6;
export declare const WASI_EALREADY = 7;
export declare const WASI_EBADF = 8;
export declare const WASI_EBADMSG = 9;
export declare const WASI_EBUSY = 10;
export declare const WASI_ECANCELED = 11;
export declare const WASI_ECHILD = 12;
export declare const WASI_ECONNABORTED = 13;
export declare const WASI_ECONNREFUSED = 14;
export declare const WASI_ECONNRESET = 15;
export declare const WASI_EDEADLK = 16;
export declare const WASI_EDESTADDRREQ = 17;
export declare const WASI_EDOM = 18;
export declare const WASI_EDQUOT = 19;
export declare const WASI_EEXIST = 20;
export declare const WASI_EFAULT = 21;
export declare const WASI_EFBIG = 22;
export declare const WASI_EHOSTUNREACH = 23;
export declare const WASI_EIDRM = 24;
export declare const WASI_EILSEQ = 25;
export declare const WASI_EINPROGRESS = 26;
export declare const WASI_EINTR = 27;
export declare const WASI_EINVAL = 28;
export declare const WASI_EIO = 29;
export declare const WASI_EISCONN = 30;
export declare const WASI_EISDIR = 31;
export declare const WASI_ELOOP = 32;
export declare const WASI_EMFILE = 33;
export declare const WASI_EMLINK = 34;
export declare const WASI_EMSGSIZE = 35;
export declare const WASI_EMULTIHOP = 36;
export declare const WASI_ENAMETOOLONG = 37;
export declare const WASI_ENETDOWN = 38;
export declare const WASI_ENETRESET = 39;
export declare const WASI_ENETUNREACH = 40;
export declare const WASI_ENFILE = 41;
export declare const WASI_ENOBUFS = 42;
export declare const WASI_ENODEV = 43;
export declare const WASI_ENOENT = 44;
export declare const WASI_ENOEXEC = 45;
export declare const WASI_ENOLCK = 46;
export declare const WASI_ENOLINK = 47;
export declare const WASI_ENOMEM = 48;
export declare const WASI_ENOMSG = 49;
export declare const WASI_ENOPROTOOPT = 50;
export declare const WASI_ENOSPC = 51;
export declare const WASI_ENOSYS = 52;
export declare const WASI_ENOTCONN = 53;
export declare const WASI_ENOTDIR = 54;
export declare const WASI_ENOTEMPTY = 55;
export declare const WASI_ENOTRECOVERABLE = 56;
export declare const WASI_ENOTSOCK = 57;
export declare const WASI_ENOTSUP = 58;
export declare const WASI_ENOTTY = 59;
export declare const WASI_ENXIO = 60;
export declare const WASI_EOVERFLOW = 61;
export declare const WASI_EOWNERDEAD = 62;
export declare const WASI_EPERM = 63;
export declare const WASI_EPIPE = 64;
export declare const WASI_EPROTO = 65;
export declare const WASI_EPROTONOSUPPORT = 66;
export declare const WASI_EPROTOTYPE = 67;
export declare const WASI_ERANGE = 68;
export declare const WASI_EROFS = 69;
export declare const WASI_ESPIPE = 70;
export declare const WASI_ESRCH = 71;
export declare const WASI_ESTALE = 72;
export declare const WASI_ETIMEDOUT = 73;
export declare const WASI_ETXTBSY = 74;
export declare const WASI_EXDEV = 75;
export declare const WASI_ENOTCAPABLE = 76;
export declare const WASI_SIGABRT = 0;
export declare const WASI_SIGALRM = 1;
export declare const WASI_SIGBUS = 2;
export declare const WASI_SIGCHLD = 3;
export declare const WASI_SIGCONT = 4;
export declare const WASI_SIGFPE = 5;
export declare const WASI_SIGHUP = 6;
export declare const WASI_SIGILL = 7;
export declare const WASI_SIGINT = 8;
export declare const WASI_SIGKILL = 9;
export declare const WASI_SIGPIPE = 10;
export declare const WASI_SIGQUIT = 11;
export declare const WASI_SIGSEGV = 12;
export declare const WASI_SIGSTOP = 13;
export declare const WASI_SIGTERM = 14;
export declare const WASI_SIGTRAP = 15;
export declare const WASI_SIGTSTP = 16;
export declare const WASI_SIGTTIN = 17;
export declare const WASI_SIGTTOU = 18;
export declare const WASI_SIGURG = 19;
export declare const WASI_SIGUSR1 = 20;
export declare const WASI_SIGUSR2 = 21;
export declare const WASI_SIGVTALRM = 22;
export declare const WASI_SIGXCPU = 23;
export declare const WASI_SIGXFSZ = 24;
export declare const WASI_FILETYPE_UNKNOWN = 0;
export declare const WASI_FILETYPE_BLOCK_DEVICE = 1;
export declare const WASI_FILETYPE_CHARACTER_DEVICE = 2;
export declare const WASI_FILETYPE_DIRECTORY = 3;
export declare const WASI_FILETYPE_REGULAR_FILE = 4;
export declare const WASI_FILETYPE_SOCKET_DGRAM = 5;
export declare const WASI_FILETYPE_SOCKET_STREAM = 6;
export declare const WASI_FILETYPE_SYMBOLIC_LINK = 7;
export declare type WASI_FILETYPE = typeof WASI_FILETYPE_UNKNOWN | typeof WASI_FILETYPE_BLOCK_DEVICE | typeof WASI_FILETYPE_CHARACTER_DEVICE | typeof WASI_FILETYPE_DIRECTORY | typeof WASI_FILETYPE_REGULAR_FILE | typeof WASI_FILETYPE_SOCKET_DGRAM | typeof WASI_FILETYPE_SOCKET_STREAM | typeof WASI_FILETYPE_SYMBOLIC_LINK;
export declare const WASI_FDFLAG_APPEND = 1;
export declare const WASI_FDFLAG_DSYNC = 2;
export declare const WASI_FDFLAG_NONBLOCK = 4;
export declare const WASI_FDFLAG_RSYNC = 8;
export declare const WASI_FDFLAG_SYNC = 16;
export declare const WASI_RIGHT_FD_DATASYNC: bigint;
export declare const WASI_RIGHT_FD_READ: bigint;
export declare const WASI_RIGHT_FD_SEEK: bigint;
export declare const WASI_RIGHT_FD_FDSTAT_SET_FLAGS: bigint;
export declare const WASI_RIGHT_FD_SYNC: bigint;
export declare const WASI_RIGHT_FD_TELL: bigint;
export declare const WASI_RIGHT_FD_WRITE: bigint;
export declare const WASI_RIGHT_FD_ADVISE: bigint;
export declare const WASI_RIGHT_FD_ALLOCATE: bigint;
export declare const WASI_RIGHT_PATH_CREATE_DIRECTORY: bigint;
export declare const WASI_RIGHT_PATH_CREATE_FILE: bigint;
export declare const WASI_RIGHT_PATH_LINK_SOURCE: bigint;
export declare const WASI_RIGHT_PATH_LINK_TARGET: bigint;
export declare const WASI_RIGHT_PATH_OPEN: bigint;
export declare const WASI_RIGHT_FD_READDIR: bigint;
export declare const WASI_RIGHT_PATH_READLINK: bigint;
export declare const WASI_RIGHT_PATH_RENAME_SOURCE: bigint;
export declare const WASI_RIGHT_PATH_RENAME_TARGET: bigint;
export declare const WASI_RIGHT_PATH_FILESTAT_GET: bigint;
export declare const WASI_RIGHT_PATH_FILESTAT_SET_SIZE: bigint;
export declare const WASI_RIGHT_PATH_FILESTAT_SET_TIMES: bigint;
export declare const WASI_RIGHT_FD_FILESTAT_GET: bigint;
export declare const WASI_RIGHT_FD_FILESTAT_SET_SIZE: bigint;
export declare const WASI_RIGHT_FD_FILESTAT_SET_TIMES: bigint;
export declare const WASI_RIGHT_PATH_SYMLINK: bigint;
export declare const WASI_RIGHT_PATH_REMOVE_DIRECTORY: bigint;
export declare const WASI_RIGHT_PATH_UNLINK_FILE: bigint;
export declare const WASI_RIGHT_POLL_FD_READWRITE: bigint;
export declare const WASI_RIGHT_SOCK_SHUTDOWN: bigint;
export declare const RIGHTS_ALL: bigint;
export declare const RIGHTS_BLOCK_DEVICE_BASE: bigint;
export declare const RIGHTS_BLOCK_DEVICE_INHERITING: bigint;
export declare const RIGHTS_CHARACTER_DEVICE_BASE: bigint;
export declare const RIGHTS_CHARACTER_DEVICE_INHERITING: bigint;
export declare const RIGHTS_REGULAR_FILE_BASE: bigint;
export declare const RIGHTS_REGULAR_FILE_INHERITING: bigint;
export declare const RIGHTS_DIRECTORY_BASE: bigint;
export declare const RIGHTS_DIRECTORY_INHERITING: bigint;
export declare const RIGHTS_SOCKET_BASE: bigint;
export declare const RIGHTS_SOCKET_INHERITING: bigint;
export declare const RIGHTS_TTY_BASE: bigint;
export declare const RIGHTS_TTY_INHERITING: bigint;
export declare const WASI_CLOCK_REALTIME = 0;
export declare const WASI_CLOCK_MONOTONIC = 1;
export declare const WASI_CLOCK_PROCESS_CPUTIME_ID = 2;
export declare const WASI_CLOCK_THREAD_CPUTIME_ID = 3;
export declare const WASI_EVENTTYPE_CLOCK = 0;
export declare const WASI_EVENTTYPE_FD_READ = 1;
export declare const WASI_EVENTTYPE_FD_WRITE = 2;
export declare const WASI_FILESTAT_SET_ATIM: number;
export declare const WASI_FILESTAT_SET_ATIM_NOW: number;
export declare const WASI_FILESTAT_SET_MTIM: number;
export declare const WASI_FILESTAT_SET_MTIM_NOW: number;
export declare const WASI_O_CREAT: number;
export declare const WASI_O_DIRECTORY: number;
export declare const WASI_O_EXCL: number;
export declare const WASI_O_TRUNC: number;
export declare const WASI_PREOPENTYPE_DIR = 0;
export declare const WASI_DIRCOOKIE_START = 0;
export declare const WASI_STDIN_FILENO = 0;
export declare const WASI_STDOUT_FILENO = 1;
export declare const WASI_STDERR_FILENO = 2;
export declare const WASI_WHENCE_SET = 0;
export declare const WASI_WHENCE_CUR = 1;
export declare const WASI_WHENCE_END = 2;
export declare const ERROR_MAP: {
[key: string]: number;
};
export declare const SIGNAL_MAP: {
[key: string]: string;
};