packaging: remove nis/ nss
[platform/upstream/glibc.git] / include / stdio_ext.h
1 #ifndef _STDIO_EXT_H
2 #include <stdio-common/stdio_ext.h>
3
4 # ifndef _ISOMAC
5
6 libc_hidden_proto (__fsetlocking)
7
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
22 # endif /* !_ISOMAC */
23 #endif /* stdio_ext.h */