| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
System.Posix.Directory.Foreign
Synopsis
- newtype DirType = DirType Int
- data Flags
- unFlags :: Flags -> Int
- isSupported :: Flags -> Bool
- oCloexec :: Flags
- dtBlk :: DirType
- dtChr :: DirType
- oAppend :: Flags
- pathMax :: Int
- dtDir :: DirType
- oAsync :: Flags
- dtFifo :: DirType
- oCreat :: Flags
- unionFlags :: [Flags] -> CInt
- dtLnk :: DirType
- oDirectory :: Flags
- dtReg :: DirType
- oExcl :: Flags
- dtSock :: DirType
- oNoctty :: Flags
- dtUnknown :: DirType
- oNofollow :: Flags
- oNonblock :: Flags
- oRdonly :: Flags
- oSync :: Flags
- oTrunc :: Flags
Documentation
Instances
Constructors
| Flags Int | |
| UnsupportedFlag String |
isSupported :: Flags -> Bool #
Returns True if posix-paths was compiled with support for the provided
flag. (As of this writing, the only flag for which this check may be
necessary is oCloexec; all other flags will always yield True.)
O_CLOEXEC is not supported on every POSIX platform. Use
to determine if support for isSupported oCloexecO_CLOEXEC was
compiled into your version of posix-paths. (If not, using oCloexec will
throw an exception.)
unionFlags :: [Flags] -> CInt #
oDirectory :: Flags #