unix-2.4.2.0: POSIX functionality

Portabilitynon-portable (requires POSIX)
Stabilityprovisional
Maintainervs@foldr.org

System.Posix.DynamicLinker

Description

Dynamic linker support through dlopen()

Synopsis

Documentation

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

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

dlclose :: DL -> IO ()

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

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

undl :: DL -> Ptr ()

undl obtains the raw handle. You mustn't do something like withDL mod flags $ liftM undl >>= p -> use p