summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/interposing_table.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-02-14 11:47:40 +0000
committerkib <kib@FreeBSD.org>2015-02-14 11:47:40 +0000
commit1cd0dffdca6542739e3aa4c7e5221f0b28d076c4 (patch)
tree47b61a4da1fffb3bceaf6d23305c46c7acdbbb1f /lib/libc/sys/interposing_table.c
parent45b91c251bda08108ccd388ff0cede277f29ff12 (diff)
downloadFreeBSD-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/sys/interposing_table.c')
-rw-r--r--lib/libc/sys/interposing_table.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/sys/interposing_table.c b/lib/libc/sys/interposing_table.c
index d303779..0fd6c75 100644
--- a/lib/libc/sys/interposing_table.c
+++ b/lib/libc/sys/interposing_table.c
@@ -73,6 +73,8 @@ interpos_func_t __libc_interposing[INTERPOS_MAX] = {
SLOT(write, __sys_write),
SLOT(writev, __sys_writev),
SLOT(_pthread_mutex_init_calloc_cb, _pthread_mutex_init_calloc_cb_stub),
+ SLOT(spinlock, __libc_spinlock_stub),
+ SLOT(spinunlock, __libc_spinunlock_stub),
};
#undef SLOT
OpenPOWER on IntegriCloud