-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Get unix filesystem statistics with statfs, statvfs -- -- C FFI wrapper for POSIX statvfs and fstatvfs calls. @package statvfs @version 0.2 -- | Get information about a mounted filesystem. A minimal example of usage -- is: -- --
--    import System.Posix.StatVFS (statVFS, statVFS_bfree)
--   
--   main = do
--        stat <- statVFS /
--        putStrLn $ (show (statVFS_bfree stat)) ++  free blocks on /
--   
module System.Posix.StatVFS newtype CFSBlkCnt CFSBlkCnt :: Word64 -> CFSBlkCnt newtype CFSFilCnt CFSFilCnt :: Word64 -> CFSFilCnt type CStatVFS = () c_fstatvfs :: CInt -> Ptr CStatVFS -> IO CInt c_statvfs :: CString -> Ptr CStatVFS -> IO CInt -- | File system information record, reflects data mentioned in the -- statvfs(3) manual data StatVFS StatVFS :: CULong -> CULong -> CFSBlkCnt -> CFSBlkCnt -> CFSBlkCnt -> CFSFilCnt -> CFSFilCnt -> CFSFilCnt -> CULong -> CULong -> CULong -> StatVFS -- | Filesystem block size statVFS_bsize :: StatVFS -> CULong -- | Fragment size statVFS_frsize :: StatVFS -> CULong -- | Size of fs in f_frsize units statVFS_blocks :: StatVFS -> CFSBlkCnt -- | Free blocks statVFS_bfree :: StatVFS -> CFSBlkCnt -- | Free blocks for unprivileged users statVFS_bavail :: StatVFS -> CFSBlkCnt -- | Inodes statVFS_files :: StatVFS -> CFSFilCnt -- | Free inodes statVFS_ffree :: StatVFS -> CFSFilCnt -- | Free inodes for unprivileged users statVFS_favail :: StatVFS -> CFSFilCnt -- | Filesystem ID statVFS_fsid :: StatVFS -> CULong -- | Mount flags statVFS_flag :: StatVFS -> CULong -- | Maximum filename length statVFS_namemax :: StatVFS -> CULong statVFS_st_rdonly :: CULong statVFS_st_nosuid :: CULong toStatVFS :: Ptr CStatVFS -> IO StatVFS fStatVFS :: Fd -> IO StatVFS statVFS :: FilePath -> IO StatVFS instance Bounded CFSBlkCnt instance Enum CFSBlkCnt instance Eq CFSBlkCnt instance Integral CFSBlkCnt instance Num CFSBlkCnt instance Ord CFSBlkCnt instance Real CFSBlkCnt instance Storable CFSBlkCnt instance Bounded CFSFilCnt instance Enum CFSFilCnt instance Eq CFSFilCnt instance Integral CFSFilCnt instance Num CFSFilCnt instance Ord CFSFilCnt instance Real CFSFilCnt instance Storable CFSFilCnt instance Show StatVFS instance Show CFSFilCnt instance Read CFSFilCnt instance Show CFSBlkCnt instance Read CFSBlkCnt