From e2d04a54af8f4a3ff7010b61dfb1be5d4d2f101e Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 30 May 2015 16:35:36 -0700 Subject: [PATCH] setpriority and setpriority syscalls --- src/library_syscall.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/library_syscall.js b/src/library_syscall.js index 04bb9b50b..933714545 100644 --- a/src/library_syscall.js +++ b/src/library_syscall.js @@ -683,6 +683,12 @@ mergeInto(LibraryManager.library, { FS.fchmod(fd, mode); return 0; } + case 96: { // getpriority + return 0; + } + case 97: { // setpriority + return -ERRNO_CODES.EPERM; + } case 118: { // fsync var stream = getStreamFromFD(); return 0; // we can't do anything synchronously; the in-memory FS is already synced to