Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread Remove namespace restriction from pthread_con...



details:   https://anonhg.NetBSD.org/src/rev/933d20104a50
branches:  trunk
changeset: 359666:933d20104a50
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Feb 20 05:10:51 2018 +0000

description:
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 5d7039b4dc3c -r 933d20104a50 lib/libpthread/pthread.h
--- a/lib/libpthread/pthread.h  Tue Feb 20 03:34:52 2018 +0000
+++ b/lib/libpthread/pthread.h  Tue Feb 20 05:10:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread.h,v 1.40 2018/02/06 20:22:23 christos Exp $    */
+/*     $NetBSD: pthread.h,v 1.41 2018/02/20 05:10:51 kamil Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -135,11 +135,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