Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rinat Striungis
unix
Commits
081376c3
Commit
081376c3
authored
9 years ago
by
Herbert Valerio Riedel
Browse files
Options
Downloads
Patches
Plain Diff
Fix Haddock markup
parent
8a40424a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
System/Posix/DynamicLinker/Prim.hsc
+8
-8
8 additions, 8 deletions
System/Posix/DynamicLinker/Prim.hsc
with
8 additions
and
8 deletions
System/Posix/DynamicLinker/Prim.hsc
+
8
−
8
View file @
081376c3
...
...
@@ -13,8 +13,8 @@
-- Stability : provisional
-- Portability : non-portable (requires POSIX)
--
--
DLOpen
and friend
-- Derived from GModule.chs by M.Weber & M.Chakravarty which is part of c2hs
--
@dlopen(3)@
and friend
s
-- 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.
--
-----------------------------------------------------------------------------
...
...
@@ -44,12 +44,12 @@ import Foreign.C.Types
import Foreign.C.String ( CString )
-- |On some hosts (e.g. SuSe and Ubuntu Linux)
'
RTLD_NEXT
'
(and
--
'
RTLD_DEFAULT
'
) are not visible without setting the macro
--
'
_GNU_SOURCE
'
. Since we don't want to define this macro, you can use
-- |On some hosts (e.g. SuSe and Ubuntu Linux)
@
RTLD_NEXT
@
(and
--
@
RTLD_DEFAULT
@
) are not visible without setting the macro
--
@
_GNU_SOURCE
@
. Since we don
\
't want to define this macro, you can use
-- the function 'haveRtldNext' to check wether the flag `Next` is
-- available. Ideally, this will be optimized by the compiler so that it
-- should be as efficient as an #ifdef.
-- should be as efficient as an
@
#ifdef
@
.
--
-- If you fail to test the flag and use it although it is undefined,
-- 'packDL' will throw an error.
...
...
@@ -98,9 +98,9 @@ packRTLDFlag RTLD_LOCAL = #const RTLD_LOCAL
-- |Flags for 'System.Posix.DynamicLinker.dlsym'. Notice that 'Next'
-- might not be available on your particular platform! Use
--
`
haveRtldNext
`
.
--
'
haveRtldNext
'
.
--
-- If 'RTLD_DEFAULT' is not defined on your platform,
`
packDL
` `
Default
`
-- If 'RTLD_DEFAULT' is not defined on your platform,
'
packDL
' '
Default
'
-- reduces to 'nullPtr'.
data DL = Null | Next | Default | DLHandle (Ptr ()) deriving (Show)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment