MCPcopy Index your code
hub / github.com/sql-js/sql.js / ___syscall5

Function ___syscall5

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

Source from the content-addressed store, hash-verified

4895 }
4896
4897 function ___syscall5(which, varargs) {SYSCALLS.varargs = varargs;
4898 try {
4899 // open
4900 var pathname = SYSCALLS.getStr(), flags = SYSCALLS.get(), mode = SYSCALLS.get() // optional TODO
4901 var stream = FS.open(pathname, flags, mode);
4902 return stream.fd;
4903 } catch (e) {
4904 if (typeof FS === 'undefined' || !(e instanceof FS.ErrnoError)) abort(e);
4905 return -e.errno;
4906 }
4907 }
4908
4909 function ___syscall6(which, varargs) {SYSCALLS.varargs = varargs;
4910 try {

Callers 1

_openFunction · 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…