Blame include/stdio_ext.h
|
Packit Service |
82fcde |
#ifndef _STDIO_EXT_H
|
|
Packit Service |
82fcde |
#include <stdio-common/stdio_ext.h>
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# ifndef _ISOMAC
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
libc_hidden_proto (__fsetlocking)
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
#define __fsetlocking(fp, type) \
|
|
Packit Service |
82fcde |
({ int __result = ((fp->_flags & _IO_USER_LOCK) \
|
|
Packit Service |
82fcde |
? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL); \
|
|
Packit Service |
82fcde |
\
|
|
Packit Service |
82fcde |
if (type != FSETLOCKING_QUERY) \
|
|
Packit Service |
82fcde |
{ \
|
|
Packit Service |
82fcde |
fp->_flags &= ~_IO_USER_LOCK; \
|
|
Packit Service |
82fcde |
if (type == FSETLOCKING_BYCALLER) \
|
|
Packit Service |
82fcde |
fp->_flags |= _IO_USER_LOCK; \
|
|
Packit Service |
82fcde |
} \
|
|
Packit Service |
82fcde |
\
|
|
Packit Service |
82fcde |
__result; \
|
|
Packit Service |
82fcde |
})
|
|
Packit Service |
82fcde |
|
|
Packit Service |
82fcde |
# endif /* !_ISOMAC */
|
|
Packit Service |
82fcde |
#endif /* stdio_ext.h */
|