diff options
author | kib <kib@FreeBSD.org> | 2015-02-14 11:47:40 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2015-02-14 11:47:40 +0000 |
commit | 1cd0dffdca6542739e3aa4c7e5221f0b28d076c4 (patch) | |
tree | 47b61a4da1fffb3bceaf6d23305c46c7acdbbb1f /lib/libc/include | |
parent | 45b91c251bda08108ccd388ff0cede277f29ff12 (diff) | |
download | FreeBSD-src-1cd0dffdca6542739e3aa4c7e5221f0b28d076c4.zip FreeBSD-src-1cd0dffdca6542739e3aa4c7e5221f0b28d076c4.tar.gz |
Properly interpose libc spinlocks, was missed in r276630. In
particular, stdio locking was affected.
Reported and tested by: "Matthew D. Fuller" <fullermd@over-yonder.net>
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/libc_private.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h index bfcd3d0..71fc8df 100644 --- a/lib/libc/include/libc_private.h +++ b/lib/libc/include/libc_private.h @@ -95,6 +95,9 @@ do { \ _SPINUNLOCK(&__stdio_thread_lock); \ } while (0) +void __libc_spinlock_stub(struct _spinlock *); +void __libc_spinunlock_stub(struct _spinlock *); + /* * Indexes into the pthread jump table. * @@ -216,6 +219,8 @@ enum { INTERPOS_write, INTERPOS_writev, INTERPOS__pthread_mutex_init_calloc_cb, + INTERPOS_spinlock, + INTERPOS_spinunlock, INTERPOS_MAX }; |