diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2007-11-21 17:45:53 +0000 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2007-11-21 17:45:53 +0000 |
commit | 4ae685ecc4e94df58b5a7da4915716cbe651d932 (patch) | |
tree | 7802ce2c5e37f284f7f8d5454c798cbebbb14d03 /libc/misc/pthread/tsd.c | |
parent | adf2de51a26bcac06af741c3ab3e62622e30a5d6 (diff) | |
download | uClibc-alpine-4ae685ecc4e94df58b5a7da4915716cbe651d932.tar.bz2 uClibc-alpine-4ae685ecc4e94df58b5a7da4915716cbe651d932.tar.xz |
Added some missing files:
creat.c: to provide creat function
longjmp.c: to provide longjmp implementation for sh4
tsd.c: to provide implementation of __libc_dl_error_tsd
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/misc/pthread/tsd.c')
-rw-r--r-- | libc/misc/pthread/tsd.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libc/misc/pthread/tsd.c b/libc/misc/pthread/tsd.c new file mode 100644 index 000000000..434938d97 --- /dev/null +++ b/libc/misc/pthread/tsd.c @@ -0,0 +1,11 @@ +/* libpthread sets _dl_error_catch_tsd to point to this function. + We define it here instead of in libpthread so t here instead of in libpthread so that it doesn't + need to have a TLS segment of its own just for this one pointer. */ + +void ** __attribute__ ((const)) +__libc_dl_error_tsd (void) +{ + static __thread void *data __attribute__ ((tls_model ("initial-exec"))); + return &data; +} + |