summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorManuel Novoa III <mjn3@codepoet.org>2003-11-06 21:14:22 +0000
committerManuel Novoa III <mjn3@codepoet.org>2003-11-06 21:14:22 +0000
commit6e731aa97a6fc399eec4cdcf65f42ac50d729c9e (patch)
tree60269d350216b3e45952708291ffe1d996fdff21 /libc
parentc79d5f8bb24be69f963e9ddc139746cde75396be (diff)
Add a utility macro.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/bits/uClibc_stdio.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bits/uClibc_stdio.h b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
index a8ca34c9b..cd278c13c 100644
--- a/libc/sysdeps/linux/common/bits/uClibc_stdio.h
+++ b/libc/sysdeps/linux/common/bits/uClibc_stdio.h
@@ -217,12 +217,16 @@
pthread_mutex_trylock(&(STREAM)->lock); \
}
+#define __STDIO_SET_USER_LOCKING(STREAM) ((STREAM)->user_locking = 1)
+
#else /* __STDIO_THREADSAFE */
#define __STDIO_THREADLOCK(STREAM)
#define __STDIO_THREADUNLOCK(STREAM)
#define __STDIO_THREADTRYLOCK(STREAM)
+#define __STDIO_SET_USER_LOCKING(STREAM)
+
#endif /* __STDIO_THREADSAFE */
/* This file may eventually have two personalities: