System.Posix.DynamicLinker.Prim

unix-2.7.0.1: POSIX functionality

Copyright | (c) Volker Stolz <vs@foldr.org> 2003
License | BSD-style (see the file libraries/base/LICENSE)
Maintainer | vs@foldr.org
Stability | provisional
Portability | non-portable (requires POSIX)
Safe Haskell | Trustworthy
Language | Haskell2010

System.Posix.DynamicLinker.Prim

Contents

- low level API

Description

DLOpen and friend Derived from GModule.chs by M.Weber & M.Chakravarty which is part of c2hs I left the API more or less the same, mostly the flags are different.

Synopsis

- c_dlopen :: CString -> CInt -> IO (Ptr ())
- c_dlsym :: Ptr () -> CString -> IO (FunPtr a)
- c_dlerror :: IO CString
- c_dlclose :: Ptr () -> IO CInt
- haveRtldNext :: Bool
- haveRtldLocal :: Bool
- packRTLDFlags :: [RTLDFlags] -> CInt
- data RTLDFlags
  - = RTLD_LAZY
  - | RTLD_NOW
  - | RTLD_GLOBAL
  - | RTLD_LOCAL
- packDL :: DL -> Ptr ()
- data DL
  - = Null
  - | Next
  - | Default
  - | DLHandle (Ptr ())

# low level API

c_dlopen :: CString -> CInt -> IO (Ptr ()) Source

c_dlsym :: Ptr () -> CString -> IO (FunPtr a) Source

c_dlerror :: IO CString Source

c_dlclose :: Ptr () -> IO CInt Source

haveRtldNext :: Bool Source

haveRtldLocal :: Bool Source

packRTLDFlags :: [RTLDFlags] -> CInt Source

data RTLDFlags Source

Constructors

RTLD_LAZY |
RTLD_NOW |
RTLD_GLOBAL |
RTLD_LOCAL |

Instances

Read RTLDFlags |
Show RTLDFlags |

packDL :: DL -> Ptr () Source

data DL Source

Flags for `dlsym`. Notice that `Next` might not be available on your particular platform!

Constructors

Null |
Next |
Default |
DLHandle (Ptr ()) |

Instances

Show DL |