From 8682a7e091ccd625f69f32e89d09028e33504f7f Mon Sep 17 00:00:00 2001 From: Robert Mustacchi Date: Thu, 19 Jan 2017 16:25:56 +0000 Subject: OS-5905 thrd_equal implements the wrong specification Reviewed by: Patrick Mooney Approved by: Patrick Mooney --- usr/src/lib/libc/port/threads/c11_thr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr/src/lib/libc') diff --git a/usr/src/lib/libc/port/threads/c11_thr.c b/usr/src/lib/libc/port/threads/c11_thr.c index 6a8c6d157e..a33fa12743 100644 --- a/usr/src/lib/libc/port/threads/c11_thr.c +++ b/usr/src/lib/libc/port/threads/c11_thr.c @@ -10,7 +10,7 @@ */ /* - * Copyright 2016 Joyent, Inc. + * Copyright 2017 Joyent, Inc. */ #include @@ -156,7 +156,7 @@ mtx_lock(mtx_t *mtx) int mtx_timedlock(mtx_t *_RESTRICT_KYWD mtx, - const struct timespec *_RESTRICT_KYWD abstime) + const struct timespec *_RESTRICT_KYWD abstime) { int ret; @@ -221,7 +221,7 @@ thrd_detach(thrd_t thr) int thrd_equal(thrd_t t1, thrd_t t2) { - return (!pthread_equal(t1, t2)); + return (pthread_equal(t1, t2)); } _NORETURN_KYWD void -- cgit v1.2.3