libtest.c 228 B

123456789101112
  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. {
  7. *value1 = (uint32_t *) __pthread_once;
  8. *value2 = (uint32_t *) pthread_self;
  9. }