diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-10-03 19:32:28 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-10-03 19:32:28 +0000 |
commit | 75cb5a0d471729d28a59b693441e2d527c9e962e (patch) | |
tree | abac9733c1b6c0a7a9c760b7cfe2d21c672e9e90 /include | |
parent | 441097af93882803bbb3296dd1fdbdd4a7773deb (diff) | |
download | glibc-75cb5a0d471729d28a59b693441e2d527c9e962e.tar glibc-75cb5a0d471729d28a59b693441e2d527c9e962e.tar.gz glibc-75cb5a0d471729d28a59b693441e2d527c9e962e.tar.bz2 glibc-75cb5a0d471729d28a59b693441e2d527c9e962e.zip |
Updated to fedora-glibc-20071003T1908cvs/fedora-glibc-2_6_90-17
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio_ext.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/stdio_ext.h b/include/stdio_ext.h index 31c7a4e7a1..c7b77246b7 100644 --- a/include/stdio_ext.h +++ b/include/stdio_ext.h @@ -4,8 +4,19 @@ extern int __fsetlocking_internal (FILE *__fp, int __type) attribute_hidden; -#ifndef NOT_IN_libc -# define __fsetlocking(fp, type) INTUSE(__fsetlocking) (fp, type) -#endif +#define __fsetlocking(fp, type) \ + ({ int __result = ((fp->_flags & _IO_USER_LOCK) \ + ? FSETLOCKING_BYCALLER : FSETLOCKING_INTERNAL); \ + \ + if (type != FSETLOCKING_QUERY) \ + { \ + fp->_flags &= ~_IO_USER_LOCK; \ + if (type == FSETLOCKING_BYCALLER) \ + fp->_flags |= _IO_USER_LOCK; \ + } \ + \ + __result; \ + }) + #endif |