From 6e731aa97a6fc399eec4cdcf65f42ac50d729c9e Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Thu, 6 Nov 2003 21:14:22 +0000 Subject: Add a utility macro. --- libc/sysdeps/linux/common/bits/uClibc_stdio.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc') 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: -- cgit v1.2.3