source:
trunk/sys/dietlibc/errno_location.c
@
204
Last change on this file since 204 was 1, checked in by , 8 years ago | |
---|---|
File size: 236 bytes |
Line | |
---|---|
1 | #include <pthread.h> |
2 | #include <cpu-syscall.h> |
3 | |
4 | int *__errno_location(void) __attribute__((weak)); |
5 | int *__errno_location() |
6 | { |
7 | __pthread_tls_t *tls; |
8 | tls = cpu_get_tls(); |
9 | return (int*)__pthread_tls_getlocation(tls,__PT_TLS_ERRNO); |
10 | } |
11 |
Note: See TracBrowser
for help on using the repository browser.