From 289e95adb607a48efb5d09463786bc25680f4abe Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 30 May 2015 21:29:54 -0700 Subject: [PATCH] setdomainname and mprotect syscall stubs --- src/library_syscall.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/library_syscall.js b/src/library_syscall.js index cc80f889e..918bcef45 100644 --- a/src/library_syscall.js +++ b/src/library_syscall.js @@ -700,6 +700,9 @@ mergeInto(LibraryManager.library, { var stream = getStreamFromFD(); return 0; // we can't do anything synchronously; the in-memory FS is already synced to } + case 121: { // setdomainname + return -ERRNO_CODES.EPERM; + } case 122: { // uname var buf = get(); if (!buf) return -ERRNO_CODES.EFAULT @@ -715,6 +718,9 @@ mergeInto(LibraryManager.library, { copyString('machine', 'x86-JS'); return 0; } + case 125: { // mprotect + return 0; // let's not and say we did + } case 132: { // getpgid var pid = get(); if (pid && pid !== PROCINFO.pid) return -ERRNO_CODES.ESRCH;