W3cubDocs

/Haskell 7

System.Posix.DynamicLinker

Copyright (c) Volker Stolz <[email protected]> 2003
License BSD-style (see the file libraries/base/LICENSE)
Maintainer [email protected]
Stability provisional
Portability non-portable (requires POSIX)
Safe Haskell Safe
Language Haskell2010

Description

Dynamic linker support through dlopen()

module System.Posix.DynamicLinker.Prim

dlopen :: FilePath -> [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

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/7.10.3/docs/html/libraries/unix-2.7.1.0/System-Posix-DynamicLinker.html