unix-2.6.0.1: POSIX functionality

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

System.Posix.DynamicLinker.ByteString

Description

Dynamic linker support through dlopen()

Synopsis

Documentation

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.

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

withDL_ :: RawFilePath -> [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