diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-08-31 20:53:32 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-08-31 20:53:32 +0000 |
commit | eef80cf88046fdcfc70cbf2eb7617aadf9afbe98 (patch) | |
tree | 83fd4cd8391b03a243c1de41a446ece55ec13368 /libio/libioP.h | |
parent | 38226fe3a6962d4e9f72d420df1d0338b6513a32 (diff) | |
download | glibc-eef80cf88046fdcfc70cbf2eb7617aadf9afbe98.tar glibc-eef80cf88046fdcfc70cbf2eb7617aadf9afbe98.tar.gz glibc-eef80cf88046fdcfc70cbf2eb7617aadf9afbe98.tar.bz2 glibc-eef80cf88046fdcfc70cbf2eb7617aadf9afbe98.zip |
Update.
* libio/libioP.h (_IO_acquire_lock_fct): Define as inline function.
Diffstat (limited to 'libio/libioP.h')
-rw-r--r-- | libio/libioP.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libio/libioP.h b/libio/libioP.h index 1d30eef5cd..1e66feaa78 100644 --- a/libio/libioP.h +++ b/libio/libioP.h @@ -970,3 +970,12 @@ extern struct _IO_fake_stdiobuf _IO_stdin_buf, _IO_stdout_buf, _IO_stderr_buf; #else # define CHECK_FILE(FILE, RET) COERCE_FILE (FILE) #endif + +static inline void +__attribute__ ((__always_inline__)) +_IO_acquire_lock_fct (_IO_FILE **p) +{ + _IO_FILE *fp = *p; + if ((fp->_flags & _IO_USER_LOCK) == 0) + _IO_funlockfile (fp); +} |