Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype DirType = DirType Int
- data Flags
- unFlags :: Flags -> Int
- isSupported :: Flags -> Bool
- oCloexec :: Flags
- dtBlk :: DirType
- oAppend :: Flags
- dtChr :: DirType
- pathMax :: Int
- oAsync :: Flags
- dtDir :: DirType
- oCreat :: Flags
- dtFifo :: DirType
- unionFlags :: [Flags] -> CInt
- dtLnk :: DirType
- oDirectory :: Flags
- oExcl :: Flags
- dtReg :: DirType
- oNoctty :: Flags
- dtSock :: DirType
- oNofollow :: Flags
- dtUnknown :: DirType
- oNonblock :: Flags
- oRdonly :: Flags
- oWronly :: Flags
- oRdwr :: Flags
- oSync :: Flags
- oTrunc :: Flags
Documentation
Instances
isSupported :: Flags -> Bool Source #
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 Source #
oDirectory :: Flags Source #