2008-03-16 18:07:43 -04:00
|
|
|
USING: kernel alien.syntax math ;
|
2008-03-20 15:53:01 -04:00
|
|
|
IN: unix.stat
|
|
|
|
|
2008-03-16 18:07:43 -04:00
|
|
|
! OpenBSD 4.2
|
|
|
|
|
|
|
|
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" }
|
|
|
|
{ "int32_t" "st_lspare0" }
|
2008-10-06 23:51:06 -04:00
|
|
|
{ "timespec" "st_atimespec" }
|
|
|
|
{ "timespec" "st_mtimespec" }
|
|
|
|
{ "timespec" "st_ctimespec" }
|
2008-03-16 18:07:43 -04:00
|
|
|
{ "off_t" "st_size" }
|
|
|
|
{ "int64_t" "st_blocks" }
|
|
|
|
{ "u_int32_t" "st_blksize" }
|
|
|
|
{ "u_int32_t" "st_flags" }
|
|
|
|
{ "u_int32_t" "st_gen" }
|
|
|
|
{ "int32_t" "st_lspare1" }
|
2008-10-06 23:51:06 -04:00
|
|
|
{ "timespec" "st_birthtimespec" }
|
2008-03-20 19:02:19 -04:00
|
|
|
{ { "int64_t" 2 } "st_qspare" } ;
|
2008-03-16 18:07:43 -04:00
|
|
|
|
|
|
|
FUNCTION: int stat ( char* pathname, stat* buf ) ;
|
|
|
|
FUNCTION: int lstat ( char* pathname, stat* buf ) ;
|