1 USING: kernel alien.syntax math ;
10 { "mode_t" "st_mode" }
11 { "nlink_t" "st_nlink" }
17 { "blksize_t" "st_blksize" }
18 { "blkcnt_t" "st_blocks" }
19 { "timespec" "st_atimespec" }
20 { "timespec" "st_mtimespec" }
21 { "timespec" "st_ctimespec" }
23 { "ulong" "unused5" } ;
25 FUNCTION: int __xstat ( int ver, char* pathname, stat* buf ) ;
26 FUNCTION: int __lxstat ( int ver, char* pathname, stat* buf ) ;
28 : stat ( pathname buf -- int ) [ 3 ] 2dip __xstat ;
29 : lstat ( pathname buf -- int ) [ 3 ] 2dip __lxstat ;