]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/stat/freebsd/freebsd.factor
04f884e496823ec083fcb3c4d493d5b973d2ea59
[factor.git] / basis / unix / stat / freebsd / freebsd.factor
1 USING: kernel alien.c-types alien.syntax math classes.struct
2 unix.time unix.types ;
3 IN: unix.stat
4
5 ! FreeBSD 8.0-CURRENT
6
7 STRUCT: stat
8     { st_dev __dev_t }
9     { st_ino ino_t }
10     { st_mode mode_t }
11     { st_nlink nlink_t }
12     { st_uid uid_t }
13     { st_gid gid_t }
14     { st_rdev __dev_t }
15     { st_atimespec timespec }
16     { st_mtimespec timespec }
17     { st_ctimespec timespec }
18     { st_size off_t }
19     { st_blocks blkcnt_t }
20     { st_blksize blksize_t }
21     { st_flags fflags_t }
22     { st_gen __uint32_t }
23     { st_lspare __int32_t }
24     { st_birthtimespec timespec }
25     { pad0 __int32_t[2] } ;
26
27 FUNCTION: int stat  ( char* pathname, stat* buf ) ;
28 FUNCTION: int lstat ( char* pathname, stat* buf ) ;