diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-29 11:51:22 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-29 11:51:22 -0700 |
commit | 61221f3dd86360875f1a6ece4aebaa0a20bc025c (patch) | |
tree | 7ea64acb419554505a891a2b0b06537077216268 /src/library_sockfs.js | |
parent | 51256ab4452f9b1aa3774ef2eece26faa652ab22 (diff) | |
parent | 4db117910eb13fc93d632dd4e3fb4cf127544538 (diff) |
Merge pull request #1601 from inolen/idbfs
NODEFS and IDBFS support
Diffstat (limited to 'src/library_sockfs.js')
-rw-r--r-- | src/library_sockfs.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library_sockfs.js b/src/library_sockfs.js index b11c6495..af29d11b 100644 --- a/src/library_sockfs.js +++ b/src/library_sockfs.js @@ -5,12 +5,6 @@ mergeInto(LibraryManager.library, { mount: function(mount) { return FS.createNode(null, '/', {{{ cDefine('S_IFDIR') }}} | 0777, 0); }, - nextname: function() { - if (!SOCKFS.nextname.current) { - SOCKFS.nextname.current = 0; - } - return 'socket[' + (SOCKFS.nextname.current++) + ']'; - }, createSocket: function(family, type, protocol) { var streaming = type == {{{ cDefine('SOCK_STREAM') }}}; if (protocol) { @@ -95,6 +89,12 @@ mergeInto(LibraryManager.library, { sock.sock_ops.close(sock); } }, + nextname: function() { + if (!SOCKFS.nextname.current) { + SOCKFS.nextname.current = 0; + } + return 'socket[' + (SOCKFS.nextname.current++) + ']'; + }, // backend-specific stream ops websocket_sock_ops: { // |