2 #include <stdio-common/stdio_ext.h>
6 libc_hidden_proto (__fsetlocking
)
8 #define __fsetlocking(fp, type) \
9 ({ int __result = ((fp->_flags & _IO_USER_LOCK) \
10 ? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL); \
12 if (type != FSETLOCKING_QUERY) \
14 fp->_flags &= ~_IO_USER_LOCK; \
15 if (type == FSETLOCKING_BYCALLER) \
16 fp->_flags |= _IO_USER_LOCK; \
22 # endif /* !_ISOMAC */
23 #endif /* stdio_ext.h */