diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-09-06 23:55:49 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-09-27 00:46:17 -0700 |
commit | c354b8316cefef8fde6402cf0139f7a64f9b3103 (patch) | |
tree | 64f94d168c1d93a03a514ff0e442764c02a24d95 /src/library_fs.js | |
parent | 36ab87e2f49682c9b206b17805685a279f7e47fa (diff) |
- added idbfs and nodefs
- minor coding convention fixes
Diffstat (limited to 'src/library_fs.js')
-rw-r--r-- | src/library_fs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/library_fs.js b/src/library_fs.js index 983e0d76..c4b29227 100644 --- a/src/library_fs.js +++ b/src/library_fs.js @@ -1,5 +1,5 @@ mergeInto(LibraryManager.library, { - $FS__deps: ['$ERRNO_CODES', '$ERRNO_MESSAGES', '__setErrNo', '$VFS', '$PATH', '$TTY', '$MEMFS', 'stdin', 'stdout', 'stderr', 'fflush'], + $FS__deps: ['$ERRNO_CODES', '$ERRNO_MESSAGES', '__setErrNo', '$VFS', '$PATH', '$TTY', '$MEMFS', '$IDBFS', '$NODEFS', 'stdin', 'stdout', 'stderr', 'fflush'], $FS__postset: 'FS.staticInit();' + '__ATINIT__.unshift({ func: function() { if (!Module["noFSInit"] && !FS.init.initialized) FS.init() } });' + '__ATMAIN__.push({ func: function() { FS.ignorePermissions = false } });' + @@ -818,6 +818,8 @@ mergeInto(LibraryManager.library, { if ((flags & {{{ cDefine('O_TRUNC')}}})) { FS.truncate(node, 0); } + // we've already handled these, don't pass down to the underlying vfs + flags &= ~({{{ cDefine('O_EXCL') }}} | {{{ cDefine('O_TRUNC') }}}); // register the stream with the filesystem var stream = FS.createStream({ |