blob: ad8319cbd39b9c93436069301667307afe24ec5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#ifndef __UCLIBC_COMPAT_H
#define __UCLIBC_COMPAT_H
#define _XOPEN_SOURCE
#define _GNU_SOURCE
#include <features.h>
#include <errno.h>
#ifndef __UCLIBC_HAS_THREADS__
#define __UCLIBC_HAS_THREADS__
#endif
#include <poll.h>
#include <pthread.h>
#undef __UCLIBC_MUTEX_STATIC
#undef __UCLIBC_MUTEX_LOCK
#undef __UCLIBC_MUTEX_UNLOCK
#define __UCLIBC_MUTEX_STATIC(M,I) static pthread_mutex_t M = I
#define __UCLIBC_MUTEX_LOCK(M) pthread_mutex_lock(&(M))
#define __UCLIBC_MUTEX_UNLOCK(M) pthread_mutex_unlock(&(M))
#define smallint int
#define _(...) __VA_ARGS__
#define internal_function
#define attribute_hidden
#define attribute_unused
#define attribute_noreturn
#define libc_hidden_def(...)
#ifndef libc_hidden_proto
#define libc_hidden_proto(name, attrs...)
#endif
#define __set_errno(_val) errno = _val
# define attribute_tls_model_ie __attribute__ ((tls_model ("initial-exec")))
# define __libc_tsd_define(CLASS, KEY) \
CLASS __thread void *__libc_tsd_##KEY attribute_tls_model_ie;
# define __libc_tsd_address(KEY) (&__libc_tsd_##KEY)
# define __libc_tsd_get(KEY) (__libc_tsd_##KEY)
# define __libc_tsd_set(KEY, VALUE) (__libc_tsd_##KEY = (VALUE))
#endif
|