System.Posix.Directory.Foreign

posix-paths-0.3.0.0: POSIX filepath/directory functionality

Safe Haskell | Safe-Inferred
Language | Haskell2010

System.Posix.Directory.Foreign

Synopsis

- newtype DirType = DirType Int
- data Flags
  - = Flags Int
  - | UnsupportedFlag String
- 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

newtype DirType #

Constructors

DirType Int |

#### Instances

Instances details

Show DirType # |
Instance details Defined in System.Posix.Directory.Foreign Methods showsPrec :: Int -> DirType -> ShowS # show :: DirType -> String # showList :: [DirType] -> ShowS #
Eq DirType # |
Instance details Defined in System.Posix.Directory.Foreign Methods (==) :: DirType -> DirType -> Bool # (/=) :: DirType -> DirType -> Bool #

data Flags #

Constructors

Flags Int |
UnsupportedFlag String |

#### Instances

Instances details

Show Flags # |
Instance details Defined in System.Posix.Directory.Foreign Methods showsPrec :: Int -> Flags -> ShowS # show :: Flags -> String # showList :: [Flags] -> ShowS #
Eq Flags # |
Instance details Defined in System.Posix.Directory.Foreign Methods (==) :: Flags -> Flags -> Bool # (/=) :: Flags -> Flags -> Bool #

unFlags :: Flags -> Int #

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`.)

oCloexec :: Flags #

`O_CLOEXEC` is not supported on every POSIX platform. Use ``isSupported` oCloexec` to determine if support for `O_CLOEXEC` was compiled into your version of posix-paths. (If not, using `oCloexec` will throw an exception.)

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 #