]> gitweb.factorcode.org Git - factor.git/blob - extra/unix/stat/freebsd/32/32.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / unix / stat / freebsd / 32 / 32.factor
1 USING: kernel alien.syntax math ;
2
3 IN: unix.stat
4
5 ! FreeBSD 8.0-CURRENT
6
7 C-STRUCT: stat
8     { "__dev_t"    "st_dev" }
9     { "ino_t"      "st_ino" }
10     { "mode_t"     "st_mode" }
11     { "nlink_t"    "st_nlink" }
12     { "uid_t"      "st_uid" }
13     { "gid_t"      "st_gid" }
14     { "__dev_t"    "st_rdev" }
15     { "timespec"   "st_atim" }
16     { "timespec"   "st_mtim" }
17     { "timespec"   "st_ctim" }
18     { "off_t"      "st_size" }
19     { "blkcnt_t"   "st_blocks" }
20     { "blksize_t"  "st_blksize" }
21     { "fflags_t"   "st_flags" }
22     { "__uint32_t" "st_gen" }
23     { "__int32_t"  "st_lspare" }
24     { "timespec"   "st_birthtimespec" }
25 ! not sure about the padding here.
26     { "__uint32_t" "pad0" }
27     { "__uint32_t" "pad1" } ;
28
29 FUNCTION: int stat  ( char* pathname, stat* buf ) ;
30 FUNCTION: int lstat ( char* pathname, stat* buf ) ;