mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
* include/stdio_ext.h (__fsetlocking): Define as macro.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2007-10-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* include/stdio_ext.h (__fsetlocking): Define as macro.
|
||||||
|
|
||||||
2007-09-30 Ulrich Drepper <drepper@redhat.com>
|
2007-09-30 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* locale/programs/ld-collate.c (collate_finish): Compare all bytes
|
* locale/programs/ld-collate.c (collate_finish): Compare all bytes
|
||||||
|
@@ -4,8 +4,19 @@
|
|||||||
|
|
||||||
extern int __fsetlocking_internal (FILE *__fp, int __type) attribute_hidden;
|
extern int __fsetlocking_internal (FILE *__fp, int __type) attribute_hidden;
|
||||||
|
|
||||||
#ifndef NOT_IN_libc
|
#define __fsetlocking(fp, type) \
|
||||||
# define __fsetlocking(fp, type) INTUSE(__fsetlocking) (fp, type)
|
({ int __result = ((fp->_flags & _IO_USER_LOCK) \
|
||||||
#endif
|
? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL); \
|
||||||
|
\
|
||||||
|
if (type != FSETLOCKING_QUERY) \
|
||||||
|
{ \
|
||||||
|
fp->_flags &= ~_IO_USER_LOCK; \
|
||||||
|
if (type == FSETLOCKING_BYCALLER) \
|
||||||
|
fp->_flags |= _IO_USER_LOCK; \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
__result; \
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user