Skip to content

Commit 8d8bb46

Browse files
committed
stub out missing functions and statics with dummy definitions
1 parent 9f4f103 commit 8d8bb46

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

src/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ libdispatch_la_SOURCES= \
1515
queue.c \
1616
semaphore.c \
1717
source.c \
18+
stubs.c \
1819
time.c \
1920
transform.c \
2021
protocol.defs \

src/stubs.c

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#include "pthread.h"
2+
3+
// void _dispatch_source_type_timer() { }
4+
//void dispatch_source_create() { }
5+
//void dispatch_source_set_event_handler_f() { }
6+
//void dispatch_source_set_timer() { }
7+
//void dispatch_resume() { }
8+
//void dispatch_main() { }
9+
void _voucher_create_accounting_voucher() { }
10+
void pthread_workqueue_attr_destroy_np() { }
11+
void dispatch_timer__program_semaphore() { }
12+
void kqueue() { }
13+
void _dispatch_mach_msg_dispose() { }
14+
void dispatch_timer__wake_semaphore() { }
15+
void _dispatch_mach_probe() { }
16+
void voucher_copy() { }
17+
void _dispatch_block_create() { }
18+
void _dispatch_mach_invoke() { }
19+
void _dispatch_mach_msg_debug() { }
20+
void _dispatch_mach_dispose() { }
21+
void TRASHIT() { }
22+
void _dispatch_mach_msg_invoke() { }
23+
void pthread_workqueue_attr_setovercommit_np() { }
24+
void _dispatch_runloop_queue_probe() { }
25+
void _voucher_thread_cleanup() { }
26+
void _dispatch_continuation_free_to_heap() { }
27+
void _dispatch_runloop_queue_xref_dispose() { }
28+
void pthread_workqueue_attr_setqueuepriority_np() { }
29+
void dispatch_timer__configure_semaphore() { }
30+
void _voucher_init() { }
31+
void strlcpy() { }
32+
void _dispatch_runloop_queue_dispose() { }
33+
void kevent64() { }
34+
void mach_error_string() { }
35+
void pthread_workqueue_additem_np() { }
36+
void _dispatch_block_special_invoke() { }
37+
void _dispatch_continuation_alloc_from_heap() { }
38+
void dispatch_timer__fire_semaphore() { }
39+
void mach_vm_deallocate() { }
40+
void pthread_mach_thread_np() { }
41+
void pthread_workqueue_create_np() { }
42+
void mach_task_self() { }
43+
void pthread_workqueue_attr_init_np() { }
44+
void _voucher_atfork_child() { }
45+
void sysctlbyname() { }
46+
47+
pthread_key_t dispatch_voucher_key;
48+
pthread_key_t dispatch_pthread_root_queue_observer_hooks_key;

0 commit comments

Comments
 (0)