unix-2.7.2.1: POSIX functionality

Copyright(c) Volker Stolz <[email protected]> 2003
LicenseBSD-style (see the file libraries/base/LICENSE)
Maintainer[email protected]
Stabilityprovisional
Portabilitynon-portable (requires POSIX)
Safe HaskellSafe
LanguageHaskell2010

System.Posix.DynamicLinker

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.

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