mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 02:03:35 +08:00
Update.
2003-08-31 Ulrich Drepper <drepper@redhat.com> * libio/libio.h (_IO_acquire_lock_fct): Define as inline function. Code by Richard Henderson.
This commit is contained in:
parent
28c97261ea
commit
3d7ec3ad75
@ -1,3 +1,8 @@
|
||||
2003-08-31 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* libio/libio.h (_IO_acquire_lock_fct): Define as inline function.
|
||||
Code by Richard Henderson.
|
||||
|
||||
2003-08-31 Philip Blundell <philb@gnu.org>
|
||||
|
||||
* sysdeps/unix/sysv/linux/arm/Versions: Add posix_fadvise64 and
|
||||
|
@ -516,6 +516,14 @@ extern _IO_ssize_t _IO_wpadn (_IO_FILE *, wint_t, _IO_ssize_t) __THROW;
|
||||
extern void _IO_free_wbackup_area (_IO_FILE *) __THROW;
|
||||
#endif
|
||||
|
||||
static inline void
|
||||
_IO_acquire_lock_fct (_IO_FILE **p)
|
||||
{
|
||||
_IO_FILE *fp = *p;
|
||||
if ((fp->_flags & _IO_USER_LOCK) == 0)
|
||||
_IO_funlockfile (fp);
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user