mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* libio/libio.h (_IO_flockfile, _IO_funlockfile): Fix typo in last patch (_mode -> _flags).
This commit is contained in:
@ -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.
|
||||
|
||||
|
@ -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)); \
|
||||
|
Reference in New Issue
Block a user