rtld-0.0.2: dynamic linker tools for Haskell

Portabilitynon-portable
Stabilityexperimental
MaintainerKrzysztof Kardzis <kkardzis@gmail.com>
Safe HaskellSafe-Inferred

System.RTLD

Description

Documentation

class RTLD so whereSource

Methods

withlib :: so -> IO a -> IO aSource

loadlib :: so -> IO ()Source

freelib :: so -> IO ()Source

type LIBH = Ptr ()Source

newtype SYMTABENTRY Source

Constructors

RTSYM (CInt, CInt, Ptr CChar) 

data RTSO a Source

Constructors

RTSO 

Fields

rtPKGMVAR :: MVar (Maybe (a, LIBH, Int))
 
rtPKGNAME :: String
 
rtLIBNAME :: a -> String
 
rtSONAMES :: a -> [String]
 
rtONLOAD :: a -> IO ()
 
rtONFREE :: a -> IO ()
 
rtGETAPI :: a -> IO (Maybe a)
 
rtSYMTAB :: Ptr SYMTABENTRY
 
rtADRTAB :: Ptr (FunPtr ())
 
rtTABLEN :: Int
 

rtload :: (Ord a, Enum a, Bounded a) => RTSO a -> a -> IO ()Source

rtfree :: RTSO a -> IO ()Source