diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-08-02 11:16:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-02 11:16:16 -0700 |
commit | dce5bea0af112159cc62617ca9efe213522a6e51 (patch) | |
tree | bc67f980ad77ee3862b61d1a247807cdb11ed55d | |
parent | 48a9f644fab7099a5ec6c558109842ca486f794a (diff) | |
parent | caa646d008ee646560e1dd094190622b6bed7ac0 (diff) |
Merge pull request #1453 from yukoba/flock-mprotect-msync
Empty implmentations of flock, mprotect and msync
-rw-r--r-- | src/library.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/library.js b/src/library.js index 8f80ebd9..143d7c28 100644 --- a/src/library.js +++ b/src/library.js @@ -1417,6 +1417,16 @@ LibraryManager.library = { }, // ========================================================================== + // sys/file.h + // ========================================================================== + + flock: function(fd, operation) { + // int flock(int fd, int operation); + // Pretend to succeed + return 0; + }, + + // ========================================================================== // poll.h // ========================================================================== @@ -3853,6 +3863,20 @@ LibraryManager.library = { // TODO: Implement mremap. + mprotect: function(addr, len, prot) { + // int mprotect(void *addr, size_t len, int prot); + // http://pubs.opengroup.org/onlinepubs/7908799/xsh/mprotect.html + // Pretend to succeed + return 0; + }, + + msync: function(addr, len, flags) { + // int msync(void *addr, size_t len, int flags); + // http://pubs.opengroup.org/onlinepubs/009696799/functions/msync.html + // Pretend to succeed + return 0; + }, + // ========================================================================== // stdlib.h // ========================================================================== |