diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-16 18:45:25 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-06 10:57:15 -0800 |
commit | e5be72c60d6368b517eb380bba0880e1bb91ef17 (patch) | |
tree | 159f9c746363824a16f0d22c5c0ac0ad668d21bc /src/library.js | |
parent | 0e317a7bd6f61f7bd0245da44d8b2eebc48d2493 (diff) |
fix struct.stat
Diffstat (limited to 'src/library.js')
-rw-r--r-- | src/library.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/library.js b/src/library.js index 9eb01ac7..e10563df 100644 --- a/src/library.js +++ b/src/library.js @@ -877,23 +877,23 @@ LibraryManager.library = { // ========================================================================== __stat_struct_layout: Runtime.generateStructInfo([ - 'st_dev', - 'st_ino', - 'st_mode', - 'st_nlink', - 'st_uid', - 'st_gid', - 'st_rdev', - 'st_size', - 'st_atime', - 'st_spare1', - 'st_mtime', - 'st_spare2', - 'st_ctime', - 'st_spare3', - 'st_blksize', - 'st_blocks', - 'st_spare4'], '%struct.stat'), + ['i32', 'st_dev'], + ['i32', 'st_ino'], + ['i32', 'st_mode'], + ['i32', 'st_nlink'], + ['i32', 'st_uid'], + ['i32', 'st_gid'], + ['i32', 'st_rdev'], + ['i32', 'st_size'], + ['i32', 'st_atime'], + ['i32', 'st_spare1'], + ['i32', 'st_mtime'], + ['i32', 'st_spare2'], + ['i32', 'st_ctime'], + ['i32', 'st_spare3'], + ['i32', 'st_blksize'], + ['i32', 'st_blocks'], + ['i32', 'st_spare4']]), stat__deps: ['$FS', '__stat_struct_layout'], stat: function(path, buf, dontResolveLastLink) { // http://pubs.opengroup.org/onlinepubs/7908799/xsh/stat.html |