| unix-2.3.2.0: POSIX functionality | Source code | Contents | Index

System.Posix.DynamicLinker

Portability | non-portable (requires POSIX)
Stability | provisional
Maintainer | vs@foldr.org

Description
Dynamic linker support through dlopen()
Synopsis

module System.Posix.DynamicLinker.Prim
dlopen :: String -> [RTLDFlags] -> IO DL
dlsym :: DL -> String -> IO (FunPtr a)
dlerror :: IO String
dlclose :: DL -> IO ()
withDL :: String -> [RTLDFlags] -> (DL -> IO a) -> IO a
withDL_ :: String -> [RTLDFlags] -> (DL -> IO a) -> IO ()
undl :: DL -> Ptr ()

Documentation
module System.Posix.DynamicLinker.Prim

dlopen :: String -> [RTLDFlags] -> IO DL | Source

dlsym :: DL -> String -> IO (FunPtr a) | Source

`dlsym` returns the address binding of the symbol described in `symbol`, as it occurs in the shared object identified by `source`.

dlerror :: IO String | Source

dlclose :: DL -> IO () | Source

withDL :: String -> [RTLDFlags] -> (DL -> IO a) -> IO a | Source

withDL_ :: String -> [RTLDFlags] -> (DL -> IO a) -> IO () | Source

undl :: DL -> Ptr () | Source

`undl` obtains the raw handle. You mustn't do something like `withDL mod flags $ liftM undl >>= p -> use p`
Produced by Haddock version 2.4.2