wasmer/src/apis/emscripten/README.md

395 lines
12 KiB
Markdown
Raw Normal View History

2018-11-20 19:11:58 +00:00
## HOST APIS
#### EMSCRIPTEN APIS
###### PROCESS
- **_abort** ✅     [:top:](#host-apis)
```rust
fn _abort()
```
- **abort** ✅ 🔥     [:top:](#host-apis)
```rust
fn abort(message: u32, instance: &mut Instance)
```
- **abort_on_cannot_grow_memory** ✅     [:top:](#host-apis)
```rust
fn abort_on_cannot_grow_memory()
```
###### TIMING
- **_clock_gettime**     [:top:](#host-apis)
```rust
```
###### ENVIRONMENT
- **_getenv**     [:top:](#host-apis)
```rust
```
###### THREAD
- **_pthread_getspecific**     [:top:](#host-apis)
```rust
```
- **_pthread_key_create**     [:top:](#host-apis)
```rust
```
- **_pthread_setspecific**     [:top:](#host-apis)
```rust
```
- **_unsetenv**     [:top:](#host-apis)
```rust
```
- **___lock**     [:top:](#host-apis)
```rust
```
- **___unlock**     [:top:](#host-apis)
```rust
```
###### MEMORY
- **_emscripten_memcpy_big** ✅ 🔥     [:top:](#host-apis)
```rust
fn _emscripten_memcpy_big(dest: u32, src: u32, len: u32, instance: &mut Instance) -> u32
```
- **enlarge_memory** ✅     [:top:](#host-apis)
```rust
fn enlarge_memory()
```
- **get_total_memory** ✅     [:top:](#host-apis)
```rust
fn get_total_memory(instance: &mut Instance) -> u32
```
###### TIMING
- **_clock_gettime**     [:top:](#host-apis)
```rust
```
###### STATUS
- **___set_err_no**     [:top:](#host-apis)
```rust
```
-------------------------------------------------------------------
#### EMSCRIPTEN SYSCALLS
- **access** (___syscall33)     [:top:](#host-apis)
```rust
```
- **acct** (___syscall51)     [:top:](#host-apis)
```rust
```
- **chdir** (___syscall12)     [:top:](#host-apis)
```rust
```
- **chmod** (___syscall15)     [:top:](#host-apis)
```rust
```
- **chown** (___syscall212)     [:top:](#host-apis)
```rust
```
- **clock_nanosleep** (___syscall265)     [:top:](#host-apis)
```rust
```
- **close** (___syscall6) ✅ ❗️     [:top:](#host-apis)
```rust
fn close(fd: c_int) -> c_int
```
- **dup** (___syscall330)     [:top:](#host-apis)
```rust
```
- **dup** (___syscall41)     [:top:](#host-apis)
```rust
```
- **dup** (___syscall63)     [:top:](#host-apis)
```rust
```
- **exit** (___syscall1) ✅     [:top:](#host-apis)
```rust
fn exit(status: c_int)
```
- **faccessat** (___syscall307)     [:top:](#host-apis)
```rust
```
- **fadvise** (___syscall272)     [:top:](#host-apis)
```rust
```
- **fallocate** (___syscall324)     [:top:](#host-apis)
```rust
```
- **fchdir** (___syscall133)     [:top:](#host-apis)
```rust
```
- **fchmod** (___syscall94)     [:top:](#host-apis)
```rust
```
- **fchmodat** (___syscall306)     [:top:](#host-apis)
```rust
```
- **fchown** (___syscall207)     [:top:](#host-apis)
```rust
```
- **fchownat** (___syscall298)     [:top:](#host-apis)
```rust
```
- **fcntl** (___syscall221)     [:top:](#host-apis)
```rust
```
- **fdatasync** (___syscall148)     [:top:](#host-apis)
```rust
```
- **fstat** (___syscall197)     [:top:](#host-apis)
```rust
```
- **fstatat** (___syscall300)     [:top:](#host-apis)
```rust
```
- **fstatfs** (___syscall269)     [:top:](#host-apis)
```rust
```
- **fsync** (___syscall118)     [:top:](#host-apis)
```rust
```
- **ftruncate** (___syscall194)     [:top:](#host-apis)
```rust
```
- **futimesat** (___syscall299)     [:top:](#host-apis)
```rust
```
- **getcwd** (___syscall183)     [:top:](#host-apis)
```rust
```
- **getdents** (___syscall220)     [:top:](#host-apis)
```rust
```
- **getgid** (___syscall202)     [:top:](#host-apis)
```rust
```
- **getgroups** (___syscall205)     [:top:](#host-apis)
```rust
```
- **getpgid** (___syscall132)     [:top:](#host-apis)
```rust
```
- **getpgrp** (___syscall65)     [:top:](#host-apis)
```rust
```
- **getpid** (___syscall20)     [:top:](#host-apis)
```rust
```
- **getppid** (___syscall64)     [:top:](#host-apis)
```rust
```
- **getpriority** (___syscall96)     [:top:](#host-apis)
```rust
```
- **getresgid** (___syscall211)     [:top:](#host-apis)
```rust
```
- **getrusage** (___syscall77)     [:top:](#host-apis)
```rust
```
- **getsid** (___syscall147)     [:top:](#host-apis)
```rust
```
- **ioctl** (___syscall54)     [:top:](#host-apis)
```rust
```
- **lchown** (___syscall198)     [:top:](#host-apis)
```rust
```
- **link** (___syscall9)     [:top:](#host-apis)
```rust
```
- **linkat** (___syscall303)     [:top:](#host-apis)
```rust
```
- **llseek** (___syscall140)     [:top:](#host-apis)
```rust
```
- **lstat** (___syscall196)     [:top:](#host-apis)
```rust
```
- **madvise** (___syscall219)     [:top:](#host-apis)
```rust
```
- **mincore** (___syscall218)     [:top:](#host-apis)
```rust
```
- **mkdir** (___syscall39)     [:top:](#host-apis)
```rust
```
- **mkdirat** (___syscall296)     [:top:](#host-apis)
```rust
```
- **mknod** (___syscall14)     [:top:](#host-apis)
```rust
```
- **mknodat** (___syscall297)     [:top:](#host-apis)
```rust
```
- **mmap** (___syscall192)     [:top:](#host-apis)
```rust
```
- **mprotect** (___syscall125)     [:top:](#host-apis)
```rust
```
- **mremap** (___syscall163)     [:top:](#host-apis)
```rust
```
- **msync** (___syscall144)     [:top:](#host-apis)
```rust
```
- **munlockall** (___syscall153)     [:top:](#host-apis)
```rust
```
- **munmap** (___syscall91)     [:top:](#host-apis)
```rust
```
- **newselect** (___syscall142)     [:top:](#host-apis)
```rust
```
- **nice** (___syscall34)     [:top:](#host-apis)
```rust
```
- **open** (___syscall5) ✅ ❗️ 🔥     [:top:](#host-apis)
```rust
fn open(path: u32, flags: c_int, mode: c_int, instance: &mut Instance) -> c_int
```
- **openat** (___syscall295)     [:top:](#host-apis)
```rust
```
- **pause** (___syscall29)     [:top:](#host-apis)
```rust
```
- **pipe** (___syscall331)     [:top:](#host-apis)
```rust
```
- **pipe** (___syscall42)     [:top:](#host-apis)
```rust
```
- **poll** (___syscall168)     [:top:](#host-apis)
```rust
```
- **pread** (___syscall180)     [:top:](#host-apis)
```rust
```
- **preadv** (___syscall333)     [:top:](#host-apis)
```rust
```
- **prlimit** (___syscall340)     [:top:](#host-apis)
```rust
```
- **pselect** (___syscall308)     [:top:](#host-apis)
```rust
```
- **pwrite** (___syscall181)     [:top:](#host-apis)
```rust
```
- **pwritev** (___syscall334)     [:top:](#host-apis)
```rust
```
- **read** (___syscall3) ✅ ❗️     [:top:](#host-apis)
```rust
fn read(fd: c_int, buf: u32, count: size_t, instance: &mut Instance) -> ssize_t
```
- **readlink** (___syscall85)     [:top:](#host-apis)
```rust
```
- **readlinkat** (___syscall305)     [:top:](#host-apis)
```rust
```
- **readv** (___syscall145)     [:top:](#host-apis)
```rust
```
- **recvmmsg** (___syscall337)     [:top:](#host-apis)
```rust
```
- **rename** (___syscall38)     [:top:](#host-apis)
```rust
```
- **renameat** (___syscall302)     [:top:](#host-apis)
```rust
```
- **rmdir** (___syscall40)     [:top:](#host-apis)
```rust
```
- **rt_sigqueueinfo** (___syscall178)     [:top:](#host-apis)
```rust
```
- **sendmmsg** (___syscall345)     [:top:](#host-apis)
```rust
```
- **setdomainname** (___syscall121)     [:top:](#host-apis)
```rust
```
- **setgid** (___syscall214)     [:top:](#host-apis)
```rust
```
- **setitimer** (___syscall104)     [:top:](#host-apis)
```rust
```
- **setpgid** (___syscall57)     [:top:](#host-apis)
```rust
```
- **setpriority** (___syscall97)     [:top:](#host-apis)
```rust
```
- **setresgid** (___syscall210)     [:top:](#host-apis)
```rust
```
- **setrlimit** (___syscall75)     [:top:](#host-apis)
```rust
```
- **setsid** (___syscall66)     [:top:](#host-apis)
```rust
```
- **socketcall** (___syscall102)     [:top:](#host-apis)
```rust
```
- **stat** (___syscall195)     [:top:](#host-apis)
```rust
```
- **statfs** (___syscall268)     [:top:](#host-apis)
```rust
```
- **symlink** (___syscall83)     [:top:](#host-apis)
```rust
```
- **symlinkat** (___syscall304)     [:top:](#host-apis)
```rust
```
- **sync** (___syscall36)     [:top:](#host-apis)
```rust
```
- **truncate** (___syscall193)     [:top:](#host-apis)
```rust
```
- **ugetrlimit** (___syscall191)     [:top:](#host-apis)
```rust
```
- **umask** (___syscall60)     [:top:](#host-apis)
```rust
```
- **uname** (___syscall122)     [:top:](#host-apis)
```rust
```
- **unlink** (___syscall10)     [:top:](#host-apis)
```rust
```
- **unlinkat** (___syscall301)     [:top:](#host-apis)
```rust
```
- **utimensat** (___syscall320)     [:top:](#host-apis)
```rust
```
- **wait** (___syscall114)     [:top:](#host-apis)
```rust
```
- **write** (___syscall4)     [:top:](#host-apis)
```rust
```
- **writev** (___syscall146)     [:top:](#host-apis)
```rust
```