source: azure_iot_hub/trunk/musl-1.1.18/src/thread/__tls_get_addr.c@ 389

Last change on this file since 389 was 389, checked in by coas-nagasima, 5 years ago

ビルドが通るよう更新

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 400 bytes
Line 
1#include <stddef.h>
2#include "pthread_impl.h"
3#include "libc.h"
4
5__attribute__((__visibility__("hidden")))
6void *__tls_get_new(tls_mod_off_t *);
7
8void *__tls_get_addr(tls_mod_off_t *v)
9{
10 pthread_t self = __pthread_self();
11 if (v[0]<=(size_t)self->dtv[0])
12 return (char *)self->dtv[v[0]]+v[1]+DTP_OFFSET;
13 return __tls_get_new(v);
14}
15
16#ifndef __c2__
17weak_alias(__tls_get_addr, __tls_get_new);
18#endif
Note: See TracBrowser for help on using the repository browser.