summaryrefslogtreecommitdiff
path: root/usr/src/lib/libc
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2017-01-19 16:25:56 +0000
committerRobert Mustacchi <rm@joyent.com>2017-06-20 15:44:37 +0000
commitcdcc9e2ce0563ac9f9076ee350d4fd008f61f1eb (patch)
treec5e64f3b5ec3335d0570f171283ec99a01f9d572 /usr/src/lib/libc
parent192a5ca9fe8b81784c9921860f876735fc9a1e3e (diff)
downloadillumos-joyent-cdcc9e2ce0563ac9f9076ee350d4fd008f61f1eb.tar.gz
8349 thrd_equal implements the wrong specification
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r--usr/src/lib/libc/port/threads/c11_thr.c6
1 files changed, 3 insertions, 3 deletions
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 <pthread.h>
@@ -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