aboutsummaryrefslogtreecommitdiff
path: root/src/library_sockfs.js
blob: 13118b71fb37f124ef37d085bbfbbfe5a53fb5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mergeInto(LibraryManager.library, {
  $SOCKFS__postset: '__ATINIT__.push({ func: function() { SOCKFS.root = FS.mount(SOCKFS, {}, null); } });',
  $SOCKFS__deps: ['$FS'],
  $SOCKFS: {
    mount: function(mount) {
      var node = FS.createNode(null, '/', {{{ cDefine('S_IFDIR') }}} | 0777, 0);
      node.node_ops = SOCKFS.node_ops;
      node.stream_ops = SOCKFS.stream_ops;
      return node;
    },
    node_ops: {
    },
    stream_ops: {
    },
    websocket_sock_ops: {
    }
  }
});