1 ! Copyright (C) 2008 Doug Coleman.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: kernel alien.syntax math io.files.unix system
4 unix.stat accessors combinators calendar.unix
6 IN: io.files.info.unix.bsd
8 TUPLE: bsd-file-info < unix-file-info birth-time flags gen ;
10 M: bsd new-file-info ( -- class ) bsd-file-info new ;
12 M: bsd stat>file-info ( stat -- file-info )
13 [ call-next-method ] keep
15 [ st_flags>> >>flags ]
17 [ st_birthtimespec>> timespec>unix-time >>birth-time ]