]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 31 Aug 2003 20:32:41 +0000 (20:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 31 Aug 2003 20:32:41 +0000 (20:32 +0000)
2003-08-31  Ulrich Drepper  <drepper@redhat.com>

* libio/libio.h (_IO_acquire_lock_fct): Define as inline function.
Code by Richard Henderson.

ChangeLog
libio/libio.h

index 0b78e5eba0edb669351b08330ed7c8254b1bcde4..5596d530b8086762e923b1ec2b38c750cef30641 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 11274aebb4aa3fe30c698b4d8db968a679410f3f..af747933690dddc774dc9904c6b32d2b0e6241aa 100644 (file)
@@ -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
This page took 0.054488 seconds and 5 git commands to generate.