MCPcopy Create free account
hub / github.com/sql-js/sql.js / ___syscall4

Function ___syscall4

js/sql-debug.js:4874–4883  ·  view source on GitHub ↗
(which, varargs)

Source from the content-addressed store, hash-verified

4872 }
4873
4874 function ___syscall4(which, varargs) {SYSCALLS.varargs = varargs;
4875 try {
4876 // write
4877 var stream = SYSCALLS.getStreamFromFD(), buf = SYSCALLS.get(), count = SYSCALLS.get();
4878 return FS.write(stream, HEAP8,buf, count);
4879 } catch (e) {
4880 if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
4881 return -e.errno;
4882 }
4883 }
4884
4885 function ___syscall40(which, varargs) {SYSCALLS.varargs = varargs;
4886 try {

Callers 1

_writeFunction · 0.70

Calls 1

abortFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…