wasmer/lib/emscripten/src
2019-09-24 09:10:45 +02:00
..
env Remove null pointer checks generally, re-add them in Emscripten 2019-09-20 12:02:12 -07:00
io Fix compilation on AArch64 Linux. 2019-08-20 16:37:32 -07:00
syscalls Remove null pointer checks generally, re-add them in Emscripten 2019-09-20 12:02:12 -07:00
bitwise.rs get PHP kind of working... 2019-04-04 13:58:05 -07:00
emscripten_target.rs Move emscripten pthread into its own module 2019-07-06 17:45:56 -07:00
errno.rs fix(emscripten) Various warning fixes and cleanups (#266) 2019-03-12 14:00:33 -07:00
exception.rs Added missing functions for pyodide 2019-05-28 09:39:49 +02:00
exec.rs Fix compilation on AArch64 Linux. 2019-08-20 16:37:32 -07:00
exit.rs remove leading underscores from execvp and exit 2019-03-06 10:18:00 -08:00
inet.rs Added missing functions for pyodide 2019-05-28 09:39:49 +02:00
jmp.rs add misc changes while debugging 2019-05-03 17:34:57 -07:00
lib.rs Merge branch 'master' into ventuzelo/fix-653-panic-memorydescriptor 2019-09-24 09:10:45 +02:00
libc.rs Fix compilation on AArch64 Linux. 2019-08-20 16:37:32 -07:00
linking.rs Moved ctx to be the first argument in emscripten 2019-02-09 13:58:18 -08:00
lock.rs stub out/add the rest 2019-03-20 16:46:42 -07:00
macros.rs Update emscripten memory macro 2019-02-05 10:35:15 -08:00
math.rs Fixed emscripten main functions 2019-09-22 17:29:12 -07:00
memory.rs Remove all uses of mem::uninitialized for Rust 1.38 2019-07-31 13:21:20 +09:00
process.rs Fixed emscripten main functions 2019-09-22 17:29:12 -07:00
pthread.rs Formatted emscripten files 2019-07-06 17:46:48 -07:00
ptr.rs Allow dead code in emscripten WasmPtr 2019-09-20 13:19:31 -07:00
README.md [pthread] rwlock_destroy(), rwlock_init() and rwlock_wrlock() 2019-05-19 19:16:04 +02:00
signal.rs Added missing functions for pyodide 2019-05-28 09:39:49 +02:00
storage.rs Fix emscripten setup, nginx works (#165) 2019-02-08 10:55:32 -08:00
time.rs Fixed emscripten ns collision. Added ctime implementation 2019-07-07 15:55:52 -07:00
ucontext.rs Fix linting 2019-05-21 19:12:35 +02:00
unistd.rs Minor fixes 2019-06-12 00:13:06 +02:00
utils.rs Improved Emscripten / WASI autodetection 2019-09-22 18:23:22 -07:00
varargs.rs Updated imports required for jq. Added get_str method in VarArgs 2019-05-18 12:38:22 -07:00

HOST APIS

EMSCRIPTEN APIS

PROCESS
  • _abort     🔝
    fn _abort()
    
  • abort 🔥     🔝
    fn abort(ctx: &mut Ctx, message: u32, )
    
  • abort_on_cannot_grow_memory     🔝
    fn abort_on_cannot_grow_memory()
    
TIMING
  • _clock_gettime     🔝
    
    
ENVIRONMENT
  • _getenv     🔝
    fn _getenv(ctx: &mut Ctx, name: c_int, )
    
  • _putenv     🔝
    fn _putenv(ctx: &mut Ctx, name: c_int, )
    
  • _setenv     🔝
    fn _setenv(name: c_int, value: c_int, overwrite: c_int, instance: &mut Instance
    
  • _unsetenv     🔝
    fn _unsetenv(ctx: &mut Ctx, name: c_int, )
    
THREAD
  • _pthread_getspecific     🔝
    
    
  • _pthread_key_create     🔝
    
    
  • _pthread_rwlock_destroy     🔝
    
    
  • _pthread_rwlock_init     🔝
    
    
  • _pthread_rwlock_wrlock     🔝
    
    
  • _pthread_setspecific     🔝
    
    
  • ___lock     🔝
    
    
  • ___unlock     🔝
    
    
MEMORY
  • _emscripten_memcpy_big 🔥     🔝
    fn _emscripten_memcpy_big(ctx: &mut Ctx, dest: u32, src: u32, len: u32, ) -> u32
    
  • enlarge_memory     🔝
    fn enlarge_memory()
    
  • get_total_memory     🔝
    fn get_total_memory(ctx: &mut Ctx, ) -> u32
    
TIMING
  • _clock_gettime     🔝
    
    
STATUS
  • ___set_err_no     🔝
    
    

EMSCRIPTEN SYSCALLS

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

LEGEND     🔝

- Implemented

- Elevated privilege

🔥 - Possible memory access violation

📥 - Access to external memory

📝 - External write to internal memory