projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix search past the end of haystack in memmem
[musl]
/
src
/
internal
/
libc.h
diff --git
a/src/internal/libc.h
b/src/internal/libc.h
index
3350b3d
..
fb4d9bc
100644
(file)
--- a/
src/internal/libc.h
+++ b/
src/internal/libc.h
@@
-6,12
+6,12
@@
#include <limits.h>
struct __libc {
#include <limits.h>
struct __libc {
- void *main_thread;
+ int has_thread_pointer;
+ int can_do_threads;
int threaded;
int secure;
size_t *auxv;
volatile int threads_minus_1;
int threaded;
int secure;
size_t *auxv;
volatile int threads_minus_1;
- int canceldisable;
FILE *ofl_head;
int ofl_lock[2];
size_t tls_size;
FILE *ofl_head;
int ofl_lock[2];
size_t tls_size;
@@
-53,8
+53,8
@@
void __lock(volatile int *) ATTR_LIBC_VISIBILITY;
void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
void __unlock(volatile int *) ATTR_LIBC_VISIBILITY;
int __lockfile(FILE *) ATTR_LIBC_VISIBILITY;
void __unlockfile(FILE *) ATTR_LIBC_VISIBILITY;
-#define LOCK(x)
(libc.threads_minus_1 ? (__lock(x),1) : ((void)(x),1)
)
-#define UNLOCK(x)
(libc.threads_minus_1 ? (__unlock(x),1) : ((void)(x),1)
)
+#define LOCK(x)
__lock(x
)
+#define UNLOCK(x)
__unlock(x
)
void __synccall(void (*)(void *), void *);
int __setxid(int, int, int, int);
void __synccall(void (*)(void *), void *);
int __setxid(int, int, int, int);