]>
git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/dlopen-in-init.dtest/foo.c
4 #include "test_support.h"
6 static void* work1(void* arg
)
8 void* h
= dlopen("System/Library/Frameworks/Foundation.framework/Foundation", 0);
14 __attribute__((constructor
))
15 void myinit(int argc
, const char* argv
[], const char* envp
[], const char* apple
[]) {
16 pthread_t workerThread
;
18 if ( pthread_create(&workerThread
, NULL
, work1
, NULL
) != 0 ) {
19 FAIL("pthread_create");
23 pthread_join(workerThread
, &dummy
);