]>
Commit | Line | Data |
---|---|---|
35c53530 | 1 | #ifndef _STDIO_EXT_H |
47755784 | 2 | #include <stdio-common/stdio_ext.h> |
35c53530 | 3 | |
47755784 | 4 | # ifndef _ISOMAC |
35c53530 | 5 | |
d18ea0c5 | 6 | libc_hidden_proto (__fsetlocking) |
6b87a564 | 7 | |
035ef8d7 UD |
8 | #define __fsetlocking(fp, type) \ |
9 | ({ int __result = ((fp->_flags & _IO_USER_LOCK) \ | |
10 | ? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL); \ | |
11 | \ | |
12 | if (type != FSETLOCKING_QUERY) \ | |
13 | { \ | |
14 | fp->_flags &= ~_IO_USER_LOCK; \ | |
15 | if (type == FSETLOCKING_BYCALLER) \ | |
16 | fp->_flags |= _IO_USER_LOCK; \ | |
17 | } \ | |
18 | \ | |
19 | __result; \ | |
20 | }) | |
21 | ||
47755784 ZW |
22 | # endif /* !_ISOMAC */ |
23 | #endif /* stdio_ext.h */ |