aboutsummaryrefslogtreecommitdiff
path: root/nptl/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-20 09:33:33 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-20 09:33:33 +0000
commit1561bf636d195795688e81b19fd42cdc2f5e6975 (patch)
treeba2047a599d3518e6710d3c82d68c360eacef540 /nptl/sysdeps
parent676fde70c8940888bed31881ec9d0fd5c34f9dc0 (diff)
downloadglibc-1561bf636d195795688e81b19fd42cdc2f5e6975.tar
glibc-1561bf636d195795688e81b19fd42cdc2f5e6975.tar.gz
glibc-1561bf636d195795688e81b19fd42cdc2f5e6975.tar.bz2
glibc-1561bf636d195795688e81b19fd42cdc2f5e6975.zip
Update.
* include/libio.h [_IO_MTSAFE_IO && _IO_lock_inexpensive]: Redefine _IO_flockifle and _IO_funlockfile as inlines.
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r--nptl/sysdeps/pthread/bits/stdio-lock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/nptl/sysdeps/pthread/bits/stdio-lock.h b/nptl/sysdeps/pthread/bits/stdio-lock.h
index ea622e4142..fbb14a1120 100644
--- a/nptl/sysdeps/pthread/bits/stdio-lock.h
+++ b/nptl/sysdeps/pthread/bits/stdio-lock.h
@@ -24,6 +24,9 @@
#include <lowlevellock.h>
+/* The locking here is very inexpensive, even for inlining. */
+#define _IO_lock_inexpensive 1
+
typedef struct { int lock; int cnt; void *owner; } _IO_lock_t;
#define _IO_lock_initializer { LLL_MUTEX_LOCK_INITIALIZER, 0, NULL }