diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 22:12:06 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-20 22:12:06 +0100 |
commit | 4d10ceb2b2f199a42fc214128aebe9ef587e0a2b (patch) | |
tree | f08a54d279b0c787c32224eabafb46c344aeaa7d | |
parent | d2129ad4570455d418b3ca34eeffd0505df088ea (diff) | |
download | glibc-4d10ceb2b2f199a42fc214128aebe9ef587e0a2b.tar.gz glibc-4d10ceb2b2f199a42fc214128aebe9ef587e0a2b.tar.xz glibc-4d10ceb2b2f199a42fc214128aebe9ef587e0a2b.zip |
hurd: Allow inlining IO locks
* sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/mach/hurd/libc-lock.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index db408c729e..4b8890eb74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2016-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>: + * sysdeps/mach/hurd/libc-lock.h (_IO_lock_inexpensive): Define to 1. + +2016-03-20 Samuel Thibault <samuel.thibault@ens-lyon.org>: + * sysdeps/generic/dl-fcntl.h: New file, adds attribute_hidden to __open and __fcntl. * sysdeps/mach/hurd/dl-fcntl.h: New file, adds attribute_hidden to diff --git a/sysdeps/mach/hurd/libc-lock.h b/sysdeps/mach/hurd/libc-lock.h index f6cbe50fc2..dfcbee195c 100644 --- a/sysdeps/mach/hurd/libc-lock.h +++ b/sysdeps/mach/hurd/libc-lock.h @@ -23,6 +23,9 @@ #include <cthreads.h> #include <hurd/threadvar.h> +/* The locking here is very inexpensive, even for inlining. */ +#define _IO_lock_inexpensive 1 + typedef struct mutex __libc_lock_t; typedef struct { |