1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00
* libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last
	patch (_mode -> _flags).
This commit is contained in:
Ulrich Drepper
2000-09-01 17:49:19 +00:00
parent a8e58aa9ab
commit aebb1faa19
8 changed files with 83 additions and 6 deletions

View File

@ -1,5 +1,8 @@
2000-09-01 Ulrich Drepper <drepper@redhat.com>
* sysdeps/pthread/bits/stdio-lock.h (_IO_cleanup_region_start):
Fix typo in last patch (_mode -> _flags).
* sysdeps/pthread/bits/stdio-lock.h (_IO_cleanup_region_start):
Provide definition which respects _IO_USER_LOCK flag.

View File

@ -27,7 +27,7 @@ typedef pthread_mutex_t _IO_lock_t;
#define _IO_cleanup_region_start(_fct, _fp) \
{ struct _pthread_cleanup_buffer _buffer; \
int _avail = (((_fp)->_mode & _IO_USER_LOCK) == 0 \
int _avail = (((_fp)->_flags & _IO_USER_LOCK) == 0 \
&& _pthread_cleanup_push_defer != NULL); \
if (_avail) { \
_pthread_cleanup_push_defer (&_buffer, (_fct), (_fp)); \