xref: /dflybsd-src/lib/libpthread/dummy.c (revision a31d362788e8f158ecc861d1247b0648ccd22f9a)
1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 static void __attribute__((__used__))
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__))
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