summaryrefslogtreecommitdiffstats
path: root/libc/stdio/_stdio.h
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 05:47:17 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 05:47:17 +0000
commit9a97faafbcd7bc23d5adf32f4ed135bdf623629a (patch)
treed20e2fba0f9fce0ae5f30490d01e61da3725dcc6 /libc/stdio/_stdio.h
parenteb6ed4fe445d1d604a6deab019d547f78540127e (diff)
downloaduClibc-alpine-9a97faafbcd7bc23d5adf32f4ed135bdf623629a.tar.bz2
uClibc-alpine-9a97faafbcd7bc23d5adf32f4ed135bdf623629a.tar.xz
Add futex support into uClibc. Selection of futex support independent of
NPTL is not currently supported.
Diffstat (limited to 'libc/stdio/_stdio.h')
-rw-r--r--libc/stdio/_stdio.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/stdio/_stdio.h b/libc/stdio/_stdio.h
index e3c2c5888..2b956daa3 100644
--- a/libc/stdio/_stdio.h
+++ b/libc/stdio/_stdio.h
@@ -25,6 +25,16 @@
#ifdef __UCLIBC_HAS_THREADS__
#include <pthread.h>
+#ifdef __UCLIBC_HAS_FUTEXES__
+#define __STDIO_THREADLOCK_OPENLIST \
+ _IO_lock_lock(_stdio_openlist_lock)
+
+#define __STDIO_THREADUNLOCK_OPENLIST \
+ _IO_lock_unlock(_stdio_openlist_lock)
+
+#define __STDIO_THREADTRYLOCK_OPENLIST \
+ _IO_lock_trylock(_stdio_openlist_lock)
+#else
#define __STDIO_THREADLOCK_OPENLIST \
__pthread_mutex_lock(&_stdio_openlist_lock)
@@ -33,6 +43,9 @@
#define __STDIO_THREADTRYLOCK_OPENLIST \
__pthread_mutex_trylock(&_stdio_openlist_lock)
+#endif
+
+
#else