about summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog7
-rw-r--r--linuxthreads/lockfile.c11
2 files changed, 3 insertions, 15 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 57bb848ce5..e55344bb4c 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,10 +1,3 @@
-2000-09-01  Ulrich Drepper  <drepper@redhat.com>
-
-	* lockfile.c (__flockfile): If _IO_USER_LOCK bit is set don't do
-	anything.
-	(__funlockfile): Likewise.
-	(__ftrylockfile): If _IO_USER_LOCK bit is set return always 0.
-
 2000-08-30  Ulrich Drepper  <drepper@redhat.com>
 
 	* manager.c (pthread_allocate_stack): Clear descriptor only if not
diff --git a/linuxthreads/lockfile.c b/linuxthreads/lockfile.c
index a7836b8168..0ef02f8757 100644
--- a/linuxthreads/lockfile.c
+++ b/linuxthreads/lockfile.c
@@ -29,8 +29,7 @@ void
 __flockfile (FILE *stream)
 {
 #ifdef USE_IN_LIBIO
-  if ((stream->_flags & _IO_USER_LOCK) == 0)
-    __pthread_mutex_lock (stream->_lock);
+  __pthread_mutex_lock (stream->_lock);
 #else
 #endif
 }
@@ -45,8 +44,7 @@ void
 __funlockfile (FILE *stream)
 {
 #ifdef USE_IN_LIBIO
-  if ((stream->_flags & _IO_USER_LOCK) == 0)
-    __pthread_mutex_unlock (stream->_lock);
+  __pthread_mutex_unlock (stream->_lock);
 #else
 #endif
 }
@@ -61,10 +59,7 @@ int
 __ftrylockfile (FILE *stream)
 {
 #ifdef USE_IN_LIBIO
-  if ((stream->_flags & _IO_USER_LOCK) == 0)
-    return __pthread_mutex_trylock (stream->_lock);
-  else
-    return 0;
+  return __pthread_mutex_trylock (stream->_lock);
 #else
 #endif
 }