sparc: Fix .udiv plt on libc
[glibc.git] / include / stdio_ext.h
blob29c6e68cdb201b1e8eb55b744250276890952464
1 #ifndef _STDIO_EXT_H
2 #include <stdio-common/stdio_ext.h>
4 # ifndef _ISOMAC
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) \
13 { \
14 fp->_flags &= ~_IO_USER_LOCK; \
15 if (type == FSETLOCKING_BYCALLER) \
16 fp->_flags |= _IO_USER_LOCK; \
17 } \
19 __result; \
22 # endif /* !_ISOMAC */
23 #endif /* stdio_ext.h */