repo.or.cz
/
libc-test.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
functional: add mntent test
[libc-test.git]
/
src
/
api
/
dlfcn.c
blob
afa41e4b4f63bd75cc1d36f6b4fb753588339bcd
1
#include <dlfcn.h>
2
#define C(n) switch(n){case n:;}
3
static void
f
()
4
{
5
C
(
RTLD_LAZY
)
6
C
(
RTLD_NOW
)
7
C
(
RTLD_GLOBAL
)
8
C
(
RTLD_LOCAL
)
9
10
{
int
(*
p
)(
void
*) =
dlclose
;}
11
{
char
*(*
p
)(
void
) =
dlerror
;}
12
{
void
*(*
p
)(
const char
*,
int
) =
dlopen
;}
13
{
void
*(*
p
)(
void
*
restrict
,
const char
*
restrict
) =
dlsym
;}
14
}