2 USING: kernel alien.syntax math ;
11 { "nlink_t" "st_nlink" }
12 { "mode_t" "st_mode" }
18 { "blksize_t" "st_blksize" }
19 { "blkcnt_t" "st_blocks" }
20 { "timespec" "st_atim" }
21 { "timespec" "st_mtim" }
22 { "timespec" "st_ctim" }
23 { "long" "__unused0" }
24 { "long" "__unused1" }
25 { "long" "__unused2" } ;
27 FUNCTION: int __xstat ( int ver, char* pathname, stat* buf ) ;
28 FUNCTION: int __lxstat ( int ver, char* pathname, stat* buf ) ;
30 : stat ( pathname buf -- int ) 1 -rot __xstat ;
31 : lstat ( pathname buf -- int ) 1 -rot __lxstat ;