projects
/
apple
/
dyld.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
dyld-851.27.tar.gz
[apple/dyld.git]
/
testing
/
test-cases
/
dyld_usage_json.dtest
/
target.c
1
#include <dlfcn.h>
2
#include <unistd.h>
3
4
#include
"test_support.h"
5
int
main
(
int
argc
,
const char
*
argv
[])
6
{
7
void
*
handle
=
dlopen
(
RUN_DIR
"/libfoo.dylib"
,
RTLD_NOW
);
8
void
*
foo
=
dlsym
(
handle
,
"foo"
);
9
dlclose
(
handle
);
10
return
0
;
11
}