// from process.binding('fs')
[ 'Stats',
'close',
'open',
'read',
'fdatasync',
'fsync',
'rename',
'truncate',
'rmdir',
'mkdir',
'sendfile',
'readdir',
'stat',
'lstat',
'fstat',
'link',
'symlink',
'readlink',
'unlink',
'write',
'chmod',
'fchmod',
'chown',
'fchown',
'utimes',
'futimes',
'StatWatcher' ]
// from process.binding('constants')
{
O_RDONLY: 0,
O_WRONLY: 1,
O_RDWR: 2,
S_IFMT: 61440,
S_IFREG: 32768,
S_IFDIR: 16384,
S_IFCHR: 8192,
S_IFBLK: 24576,
S_IFIFO: 4096,
S_IFLNK: 40960,
S_IFSOCK: 49152,
O_CREAT: 512,
O_EXCL: 2048,
O_NOCTTY: 131072,
O_TRUNC: 1024,
O_APPEND: 8,
O_DIRECTORY: 1048576,
O_NOFOLLOW: 256,
O_SYNC: 128,
O_SYMLINK: 2097152
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
Why port it at such a low level? Wouldn't it be easier to just re-implement the same API as node exposes publicly?
For the curious, Substack's on board with including the eventual (assuming it works) builtin into browserify.My fork of node-browserify for fs.js development (to eventually submit a pull request) (there's nothing there yet):
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en