1234567891011121314151617181920212223242526272829303132333435 |
- #include <errno.h>
- #include <netdb.h>
- #include "pthread.h"
- #include "internals.h"
- #include <stdio.h>
- int *
- __errno_location (void)
- {
- pthread_descr self = thread_self();
- return THREAD_GETMEM (self, p_errnop);
- }
- int *
- __h_errno_location (void)
- {
- pthread_descr self = thread_self();
- return THREAD_GETMEM (self, p_h_errnop);
- }
|