2009-09-27 20:25:34 -04:00
|
|
|
USING: kernel alien.c-types alien.syntax math classes.struct
|
|
|
|
unix.time unix.types ;
|
2008-02-27 02:55:49 -05:00
|
|
|
IN: unix.stat
|
|
|
|
|
2009-05-12 19:04:22 -04:00
|
|
|
! Ubuntu 7.10 64-bit
|
|
|
|
|
2009-08-30 05:06:41 -04:00
|
|
|
STRUCT: stat
|
|
|
|
{ st_dev dev_t }
|
|
|
|
{ st_ino ino_t }
|
|
|
|
{ st_nlink nlink_t }
|
|
|
|
{ st_mode mode_t }
|
|
|
|
{ st_uid uid_t }
|
|
|
|
{ st_gid gid_t }
|
|
|
|
{ pad0 int }
|
|
|
|
{ st_rdev dev_t }
|
|
|
|
{ st_size off64_t }
|
|
|
|
{ st_blksize blksize_t }
|
|
|
|
{ st_blocks blkcnt64_t }
|
|
|
|
{ st_atimespec timespec }
|
|
|
|
{ st_mtimespec timespec }
|
|
|
|
{ st_ctimespec timespec }
|
|
|
|
{ __unused0 long[3] } ;
|
2008-02-27 02:55:49 -05:00
|
|
|
|
2010-02-23 14:42:02 -05:00
|
|
|
FUNCTION: int __xstat64 ( int ver, c-string pathname, stat* buf ) ;
|
|
|
|
FUNCTION: int __lxstat64 ( int ver, c-string pathname, stat* buf ) ;
|
2008-02-27 02:55:49 -05:00
|
|
|
|
2009-05-07 17:41:37 -04:00
|
|
|
: stat ( pathname buf -- int ) [ 1 ] 2dip __xstat64 ;
|
|
|
|
: lstat ( pathname buf -- int ) [ 1 ] 2dip __lxstat64 ;
|