-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | list mount points
--   
--   Lists currently mounted filesystems.
--   
--   Works on: Linux, BSD, Mac OS X, Android
@package mountpoints
@version 1.0.2


module System.MountPoints

-- | This is a stripped down mntent, containing only fields available
--   everywhere.
data Mntent
Mntent :: String -> FilePath -> String -> Mntent

-- | what's mounted
[mnt_fsname] :: Mntent -> String

-- | where it's mounted
[mnt_dir] :: Mntent -> FilePath

-- | what sort of filesystem is mounted
[mnt_type] :: Mntent -> String

-- | Get currently mounted filesystems.
--   
--   This uses eiher getmntent or getmntinfo, depending on the OS.
getMounts :: IO [Mntent]

-- | Read <a>/proc/mounts</a> to get currently mounted filesystems.
--   
--   This works on Linux and related systems, including Android.
getProcMounts :: IO [Mntent]
instance GHC.Classes.Ord System.MountPoints.Mntent
instance GHC.Classes.Eq System.MountPoints.Mntent
instance GHC.Show.Show System.MountPoints.Mntent
