xref: /dflybsd-src/lib/libpthread/dummy.c (revision ceeadccd358e346511796c7b057af4af0ae50f2d)
1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 static void __attribute__((__used__))
dummy_pthread_create(void)5 dummy_pthread_create(void)
6 {
7 	fprintf(stderr, "libpthread.so: dummy weak symbol executed\n");
8 	abort();
9 }
10 
11 __weak_reference(dummy_pthread_create, pthread_create);
12 
13 static void __attribute__((__used__))
dummy_pthread_cancel(void)14 dummy_pthread_cancel(void)
15 {
16 	fprintf(stderr, "libpthread.so: dummy weak symbol executed\n");
17 	abort();
18 }
19 
20 __weak_reference(dummy_pthread_cancel, pthread_cancel);
21