]> gitweb.factorcode.org Git - factor.git/blob - extra/unix/stat/openbsd/openbsd.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / unix / stat / openbsd / openbsd.factor
1 USING: kernel alien.syntax math ;
2 IN: unix.stat
3
4 ! OpenBSD 4.2
5
6 C-STRUCT: stat
7     { "dev_t" "st_dev" }
8     { "ino_t" "st_ino" }
9     { "mode_t" "st_mode" }
10     { "nlink_t" "st_nlink" }
11     { "uid_t" "st_uid" }
12     { "gid_t" "st_gid" }
13     { "dev_t" "st_rdev" }
14     { "int32_t" "st_lspare0" }
15     { "timespec" "st_atim" }
16     { "timespec" "st_mtim" }
17     { "timespec" "st_ctim" }
18     { "off_t" "st_size" }
19     { "int64_t" "st_blocks" }
20     { "u_int32_t" "st_blksize" }
21     { "u_int32_t" "st_flags" }
22     { "u_int32_t" "st_gen" }
23     { "int32_t" "st_lspare1" }
24     { "timespec" "st_birthtim" }
25     { { "int64_t" 2 } "st_qspare" } ;
26
27 FUNCTION: int stat  ( char* pathname, stat* buf ) ;
28 FUNCTION: int lstat ( char* pathname, stat* buf ) ;