libtest.c 279 B

12345678910111213
  1. #include <stdio.h>
  2. #include <pthread.h>
  3. #include <stdint.h>
  4. extern int __pthread_once(void);
  5. void dltest(uint32_t **value1, uint32_t **value2);
  6. void dltest(uint32_t **value1, uint32_t **value2)
  7. {
  8. *value1 = (uint32_t *) __pthread_once;
  9. *value2 = (uint32_t *) pthread_self;
  10. }