2007-04-14 05:27:15 -04:00
|
|
|
USING: kernel alien.syntax math ;
|
|
|
|
IN: unix.stat
|
|
|
|
|
|
|
|
! NetBSD 4.0
|
|
|
|
|
|
|
|
C-STRUCT: stat
|
|
|
|
{ "dev_t" "st_dev" }
|
|
|
|
{ "ino_t" "st_ino" }
|
|
|
|
{ "mode_t" "st_mode" }
|
|
|
|
{ "nlink_t" "st_nlink" }
|
|
|
|
{ "uid_t" "st_uid" }
|
|
|
|
{ "gid_t" "st_gid" }
|
|
|
|
{ "dev_t" "st_rdev" }
|
2008-10-06 23:51:06 -04:00
|
|
|
{ "timespec" "st_atimespec" }
|
|
|
|
{ "timespec" "st_mtimespec" }
|
|
|
|
{ "timespec" "st_ctimespec" }
|
2007-04-14 05:27:15 -04:00
|
|
|
{ "off_t" "st_size" }
|
|
|
|
{ "blkcnt_t" "st_blocks" }
|
|
|
|
{ "blksize_t" "st_blksize" }
|
|
|
|
{ "uint32_t" "st_flags" }
|
|
|
|
{ "uint32_t" "st_gen" }
|
|
|
|
{ "uint32_t" "st_spare0" }
|
2008-10-06 23:51:06 -04:00
|
|
|
{ "timespec" "st_birthtimespec" } ;
|
2007-04-14 05:27:15 -04:00
|
|
|
|
2007-04-14 07:13:34 -04:00
|
|
|
FUNCTION: int __stat13 ( char* pathname, stat* buf ) ;
|
|
|
|
FUNCTION: int __lstat13 ( char* pathname, stat* buf ) ;
|
|
|
|
|
2008-06-12 02:32:21 -04:00
|
|
|
: stat ( pathname buf -- n ) __stat13 ; inline
|
|
|
|
: lstat ( pathname buf -- n ) __lstat13 ; inline
|