]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/stat/freebsd/freebsd.factor
Re-add Freebsd Support
[factor.git] / basis / unix / stat / freebsd / freebsd.factor
1 USING: kernel alien.c-types alien.syntax math classes.struct unix.time
2 unix.types ;
3 IN: unix.stat
4
5 ! FreeBSD 12
6
7 ! stat64 structure
8
9 STRUCT: stat
10     { st_dev dev_t }
11     { st_ino ino_t }
12     { st_mode mode_t }
13     { st_nlink nlink_t }
14     { st_uid uid_t }
15     { st_gid gid_t }
16     { st_rdev dev_t }
17     { st_atimespec timespec }
18     { st_mtimespec timespec }
19     { st_ctimespec timespec }
20     { st_size off_t }
21     { st_blocks blkcnt_t }
22     { st_blksize blksize_t }
23     { st_flags fflags_t }
24     { st_gen __uint64_t }
25     { st_spare __int64_t }
26     { st_birthtimespec timespec }
27     { pad0 __int32_t[2] } ;
28
29 FUNCTION-ALIAS: stat-func int stat64  ( c-string pathname, stat* buf ) 
30 FUNCTION-ALIAS: lstat int lstat64 ( c-string pathname, stat* buf )
31 FUNCTION-ALIAS: fstat int fstat64 ( int fd, stat* buf )
32
33
34