]> gitweb.factorcode.org Git - factor.git/blob - basis/unix/stat/openbsd/openbsd.factor
2702e60f6cdd21813ca36da9414304304901578d
[factor.git] / basis / unix / stat / openbsd / openbsd.factor
1 USING: kernel alien.c-types alien.syntax math classes.struct
2 unix.time unix.types ;
3 IN: unix.stat
4
5 ! OpenBSD 4.2
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_lspare0 int32_t }
16     { st_atimespec timespec }
17     { st_mtimespec timespec }
18     { st_ctimespec timespec }
19     { st_size off_t }
20     { st_blocks int64_t }
21     { st_blksize u_int32_t }
22     { st_flags u_int32_t }
23     { st_gen u_int32_t }
24     { st_lspare1 int32_t }
25     { st_birthtimespec timespec }
26     { st_qspare int64_t[2] } ;
27
28 FUNCTION: int stat  ( char* pathname, stat* buf ) ;
29 FUNCTION: int lstat ( char* pathname, stat* buf ) ;