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