Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
405 bytes
|
Rev | Line | |
---|
[444] | 1 | /* Define the location of _REENT for the newlib C library */ |
---|
| 2 | |
---|
| 3 | #include <reent.h> |
---|
| 4 | #include "pthread.h" |
---|
| 5 | #include "internals.h" |
---|
| 6 | |
---|
| 7 | struct _reent * __thread_reent() |
---|
| 8 | { |
---|
| 9 | pthread_descr self = thread_self(); |
---|
| 10 | return THREAD_GETMEM (self, p_reentp); |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | /* Return thread specific resolver state. */ |
---|
| 14 | struct __res_state * __res_state() |
---|
| 15 | { |
---|
| 16 | pthread_descr self = thread_self(); |
---|
| 17 | return THREAD_GETMEM (self, p_resp); |
---|
| 18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.