Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-8]: src/lib/libpthread Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/31cab0a79f68
branches:  netbsd-8
changeset: 851393:31cab0a79f68
user:      snj <snj%NetBSD.org@localhost>
date:      Sun Feb 25 23:55:50 2018 +0000

description:
Pull up following revision(s) (requested by kamil in ticket #562):
        lib/libpthread/pthread.h: 1.41
Remove namespace restriction from pthread_condattr_{g,s}etclock(3)
These functions were marked as _NETBSD_SOURCE when introduced to the
sources. In fact they are regular POSIX threading functions available
since the 2001 standard. There is an older mention about alignment with
"IEEE Std 1003.1j-2000".
This corrects usage of these functions when a source code is compiled
with a POSIX namespace option.

diffstat:

 lib/libpthread/pthread.h |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r ce71427db36c -r 31cab0a79f68 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h  Sun Feb 25 23:53:59 2018 +0000
+++ b/lib/libpthread/pthread.h  Sun Feb 25 23:55:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.h,v 1.38 2016/10/30 23:26:33 kamil Exp $       */
+/*     $NetBSD: pthread.h,v 1.38.6.1 2018/02/25 23:55:50 snj Exp $     */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -130,11 +130,9 @@
 int    pthread_cond_signal(pthread_cond_t *);
 int    pthread_cond_broadcast(pthread_cond_t *);
 int    pthread_condattr_init(pthread_condattr_t *);
-#if defined(_NETBSD_SOURCE)
 int     pthread_condattr_setclock(pthread_condattr_t *, clockid_t);
 int    pthread_condattr_getclock(const pthread_condattr_t * __restrict,
            clockid_t * __restrict);
-#endif
 int    pthread_condattr_destroy(pthread_condattr_t *);
 #ifdef _PTHREAD_PSHARED
 int    pthread_condattr_getpshared(const pthread_condattr_t * __restrict,



Home | Main Index | Thread Index | Old Index