parse the fsid_t for the rest of the platforms
parent
84675ad96d
commit
164f8ccb67
|
@ -3,7 +3,8 @@
|
||||||
USING: accessors alien.c-types alien.syntax combinators
|
USING: accessors alien.c-types alien.syntax combinators
|
||||||
io.backend io.files io.unix.files kernel math system unix
|
io.backend io.files io.unix.files kernel math system unix
|
||||||
unix.statfs.freebsd unix.statvfs.freebsd unix.getfsstat.freebsd
|
unix.statfs.freebsd unix.statvfs.freebsd unix.getfsstat.freebsd
|
||||||
sequences grouping alien.strings io.encodings.utf8 ;
|
sequences grouping alien.strings io.encodings.utf8
|
||||||
|
specialized-arrays.direct.uint ;
|
||||||
IN: io.unix.files.freebsd
|
IN: io.unix.files.freebsd
|
||||||
|
|
||||||
TUPLE: freebsd-file-system-info < unix-file-system-info
|
TUPLE: freebsd-file-system-info < unix-file-system-info
|
||||||
|
@ -32,7 +33,7 @@ M: freebsd statfs>file-system-info ( file-system-info statvfs -- file-system-inf
|
||||||
[ statfs-f_asyncreads >>asyncreads ]
|
[ statfs-f_asyncreads >>asyncreads ]
|
||||||
[ statfs-f_namemax >>name-max ]
|
[ statfs-f_namemax >>name-max ]
|
||||||
[ statfs-f_owner >>owner ]
|
[ statfs-f_owner >>owner ]
|
||||||
[ statfs-f_fsid >>id ]
|
[ statfs-f_fsid 2 <direct-uint-array> >array >>id ]
|
||||||
[ statfs-f_fstypename utf8 alien>string >>type ]
|
[ statfs-f_fstypename utf8 alien>string >>type ]
|
||||||
[ statfs-f_mntfromname utf8 alien>string >>device-name ]
|
[ statfs-f_mntfromname utf8 alien>string >>device-name ]
|
||||||
[ statfs-f_mntonname utf8 alien>string >>mount-point ]
|
[ statfs-f_mntonname utf8 alien>string >>mount-point ]
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
USING: accessors alien.c-types alien.syntax combinators csv
|
USING: accessors alien.c-types alien.syntax combinators csv
|
||||||
io.backend io.encodings.utf8 io.files io.streams.string
|
io.backend io.encodings.utf8 io.files io.streams.string
|
||||||
io.unix.files kernel math.order namespaces sequences sorting
|
io.unix.files kernel math.order namespaces sequences sorting
|
||||||
system unix unix.statfs.linux unix.statvfs.linux ;
|
system unix unix.statfs.linux unix.statvfs.linux
|
||||||
|
specialized-arrays.direct.uint ;
|
||||||
IN: io.unix.files.linux
|
IN: io.unix.files.linux
|
||||||
|
|
||||||
TUPLE: linux-file-system-info < unix-file-system-info
|
TUPLE: linux-file-system-info < unix-file-system-info
|
||||||
|
@ -23,7 +24,7 @@ M: linux statfs>file-system-info ( struct -- statfs )
|
||||||
[ statfs64-f_bavail >>blocks-available ]
|
[ statfs64-f_bavail >>blocks-available ]
|
||||||
[ statfs64-f_files >>files ]
|
[ statfs64-f_files >>files ]
|
||||||
[ statfs64-f_ffree >>files-free ]
|
[ statfs64-f_ffree >>files-free ]
|
||||||
[ statfs64-f_fsid >>id ]
|
[ statfs64-f_fsid 2 <direct-uint-array> >array >>id ]
|
||||||
[ statfs64-f_namelen >>namelen ]
|
[ statfs64-f_namelen >>namelen ]
|
||||||
[ statfs64-f_frsize >>preferred-block-size ]
|
[ statfs64-f_frsize >>preferred-block-size ]
|
||||||
! [ statfs64-f_spare >>spare ]
|
! [ statfs64-f_spare >>spare ]
|
||||||
|
|
|
@ -4,7 +4,7 @@ USING: alien.syntax kernel unix.stat math unix
|
||||||
combinators system io.backend accessors alien.c-types
|
combinators system io.backend accessors alien.c-types
|
||||||
io.encodings.utf8 alien.strings unix.types io.unix.files
|
io.encodings.utf8 alien.strings unix.types io.unix.files
|
||||||
io.files unix.statvfs.netbsd unix.getfsstat.netbsd
|
io.files unix.statvfs.netbsd unix.getfsstat.netbsd
|
||||||
grouping sequences io.encodings.utf8 ;
|
grouping sequences io.encodings.utf8 specialized-arrays.direct.uint ;
|
||||||
IN: io.unix.files.netbsd
|
IN: io.unix.files.netbsd
|
||||||
|
|
||||||
TUPLE: netbsd-file-system-info < unix-file-system-info
|
TUPLE: netbsd-file-system-info < unix-file-system-info
|
||||||
|
@ -35,7 +35,7 @@ M: netbsd statvfs>file-system-info ( file-system-info statvfs -- file-system-inf
|
||||||
[ statvfs-f_syncwrites >>sync-writes ]
|
[ statvfs-f_syncwrites >>sync-writes ]
|
||||||
[ statvfs-f_asyncreads >>async-reads ]
|
[ statvfs-f_asyncreads >>async-reads ]
|
||||||
[ statvfs-f_asyncwrites >>async-writes ]
|
[ statvfs-f_asyncwrites >>async-writes ]
|
||||||
[ statvfs-f_fsidx >>idx ]
|
[ statvfs-f_fsidx 2 <direct-uint-array> >array >>idx ]
|
||||||
[ statvfs-f_fsid >>id ]
|
[ statvfs-f_fsid >>id ]
|
||||||
[ statvfs-f_namemax >>name-max ]
|
[ statvfs-f_namemax >>name-max ]
|
||||||
[ statvfs-f_owner >>owner ]
|
[ statvfs-f_owner >>owner ]
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
USING: accessors alien.c-types alien.strings alien.syntax
|
USING: accessors alien.c-types alien.strings alien.syntax
|
||||||
combinators io.backend io.files io.unix.files kernel math
|
combinators io.backend io.files io.unix.files kernel math
|
||||||
sequences system unix unix.getfsstat.openbsd grouping
|
sequences system unix unix.getfsstat.openbsd grouping
|
||||||
unix.statfs.openbsd unix.statvfs.openbsd unix.types ;
|
unix.statfs.openbsd unix.statvfs.openbsd unix.types
|
||||||
|
specialized-arrays.direct.uint ;
|
||||||
IN: io.unix.files.openbsd
|
IN: io.unix.files.openbsd
|
||||||
|
|
||||||
TUPLE: freebsd-file-system-info < unix-file-system-info
|
TUPLE: freebsd-file-system-info < unix-file-system-info
|
||||||
|
@ -30,7 +31,7 @@ M: openbsd statfs>file-system-info ( file-system-info statfs -- file-system-info
|
||||||
[ statfs-f_syncreads >>sync-reads ]
|
[ statfs-f_syncreads >>sync-reads ]
|
||||||
[ statfs-f_asyncwrites >>async-writes ]
|
[ statfs-f_asyncwrites >>async-writes ]
|
||||||
[ statfs-f_asyncreads >>async-reads ]
|
[ statfs-f_asyncreads >>async-reads ]
|
||||||
[ statfs-f_fsid >>id ]
|
[ statfs-f_fsid 2 <direct-uint-array> >array >>id ]
|
||||||
[ statfs-f_namemax >>name-max ]
|
[ statfs-f_namemax >>name-max ]
|
||||||
[ statfs-f_owner >>owner ]
|
[ statfs-f_owner >>owner ]
|
||||||
! [ statfs-f_spare >>spare ]
|
! [ statfs-f_spare >>spare ]
|
||||||
|
|
Loading…
Reference in New Issue