[Midnightbsd-cvs] src [10296] U trunk/share/man/man3: update man 3
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jun 3 14:41:52 EDT 2018
Revision: 10296
http://svnweb.midnightbsd.org/src/?rev=10296
Author: laffer1
Date: 2018-06-03 14:41:52 -0400 (Sun, 03 Jun 2018)
Log Message:
-----------
update man 3
Modified Paths:
--------------
trunk/share/man/man3/Makefile
trunk/share/man/man3/assert.3
trunk/share/man/man3/bitstring.3
trunk/share/man/man3/end.3
trunk/share/man/man3/fpgetround.3
trunk/share/man/man3/intro.3
trunk/share/man/man3/makedev.3
trunk/share/man/man3/pthread.3
trunk/share/man/man3/pthread_affinity_np.3
trunk/share/man/man3/pthread_atfork.3
trunk/share/man/man3/pthread_attr.3
trunk/share/man/man3/pthread_attr_affinity_np.3
trunk/share/man/man3/pthread_attr_get_np.3
trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3
trunk/share/man/man3/pthread_barrier_destroy.3
trunk/share/man/man3/pthread_barrierattr.3
trunk/share/man/man3/pthread_cancel.3
trunk/share/man/man3/pthread_cleanup_pop.3
trunk/share/man/man3/pthread_cleanup_push.3
trunk/share/man/man3/pthread_cond_broadcast.3
trunk/share/man/man3/pthread_cond_destroy.3
trunk/share/man/man3/pthread_cond_init.3
trunk/share/man/man3/pthread_cond_signal.3
trunk/share/man/man3/pthread_cond_timedwait.3
trunk/share/man/man3/pthread_cond_wait.3
trunk/share/man/man3/pthread_condattr.3
trunk/share/man/man3/pthread_create.3
trunk/share/man/man3/pthread_detach.3
trunk/share/man/man3/pthread_equal.3
trunk/share/man/man3/pthread_exit.3
trunk/share/man/man3/pthread_getconcurrency.3
trunk/share/man/man3/pthread_getspecific.3
trunk/share/man/man3/pthread_getthreadid_np.3
trunk/share/man/man3/pthread_join.3
trunk/share/man/man3/pthread_key_create.3
trunk/share/man/man3/pthread_key_delete.3
trunk/share/man/man3/pthread_kill.3
trunk/share/man/man3/pthread_main_np.3
trunk/share/man/man3/pthread_multi_np.3
trunk/share/man/man3/pthread_mutex_destroy.3
trunk/share/man/man3/pthread_mutex_init.3
trunk/share/man/man3/pthread_mutex_lock.3
trunk/share/man/man3/pthread_mutex_timedlock.3
trunk/share/man/man3/pthread_mutex_trylock.3
trunk/share/man/man3/pthread_mutex_unlock.3
trunk/share/man/man3/pthread_mutexattr.3
trunk/share/man/man3/pthread_mutexattr_getkind_np.3
trunk/share/man/man3/pthread_once.3
trunk/share/man/man3/pthread_resume_all_np.3
trunk/share/man/man3/pthread_resume_np.3
trunk/share/man/man3/pthread_rwlock_destroy.3
trunk/share/man/man3/pthread_rwlock_init.3
trunk/share/man/man3/pthread_rwlock_rdlock.3
trunk/share/man/man3/pthread_rwlock_timedrdlock.3
trunk/share/man/man3/pthread_rwlock_timedwrlock.3
trunk/share/man/man3/pthread_rwlock_unlock.3
trunk/share/man/man3/pthread_rwlock_wrlock.3
trunk/share/man/man3/pthread_rwlockattr_destroy.3
trunk/share/man/man3/pthread_rwlockattr_getpshared.3
trunk/share/man/man3/pthread_rwlockattr_init.3
trunk/share/man/man3/pthread_rwlockattr_setpshared.3
trunk/share/man/man3/pthread_schedparam.3
trunk/share/man/man3/pthread_self.3
trunk/share/man/man3/pthread_set_name_np.3
trunk/share/man/man3/pthread_setspecific.3
trunk/share/man/man3/pthread_sigmask.3
trunk/share/man/man3/pthread_spin_init.3
trunk/share/man/man3/pthread_spin_lock.3
trunk/share/man/man3/pthread_suspend_all_np.3
trunk/share/man/man3/pthread_suspend_np.3
trunk/share/man/man3/pthread_switch_add_np.3
trunk/share/man/man3/pthread_testcancel.3
trunk/share/man/man3/pthread_yield.3
trunk/share/man/man3/queue.3
trunk/share/man/man3/siginfo.3
trunk/share/man/man3/stdarg.3
trunk/share/man/man3/sysexits.3
trunk/share/man/man3/tgmath.3
trunk/share/man/man3/timeradd.3
trunk/share/man/man3/tree.3
Added Paths:
-----------
trunk/share/man/man3/ATOMIC_VAR_INIT.3
trunk/share/man/man3/offsetof.3
trunk/share/man/man3/pthread_getcpuclockid.3
trunk/share/man/man3/sigevent.3
Property Changed:
----------------
trunk/share/man/man3/assert.3
trunk/share/man/man3/bitstring.3
trunk/share/man/man3/end.3
trunk/share/man/man3/fpgetround.3
trunk/share/man/man3/intro.3
trunk/share/man/man3/makedev.3
trunk/share/man/man3/pthread.3
trunk/share/man/man3/pthread_affinity_np.3
trunk/share/man/man3/pthread_atfork.3
trunk/share/man/man3/pthread_attr.3
trunk/share/man/man3/pthread_attr_affinity_np.3
trunk/share/man/man3/pthread_attr_get_np.3
trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3
trunk/share/man/man3/pthread_barrier_destroy.3
trunk/share/man/man3/pthread_barrierattr.3
trunk/share/man/man3/pthread_cancel.3
trunk/share/man/man3/pthread_cleanup_pop.3
trunk/share/man/man3/pthread_cleanup_push.3
trunk/share/man/man3/pthread_cond_broadcast.3
trunk/share/man/man3/pthread_cond_destroy.3
trunk/share/man/man3/pthread_cond_init.3
trunk/share/man/man3/pthread_cond_signal.3
trunk/share/man/man3/pthread_cond_timedwait.3
trunk/share/man/man3/pthread_cond_wait.3
trunk/share/man/man3/pthread_condattr.3
trunk/share/man/man3/pthread_create.3
trunk/share/man/man3/pthread_detach.3
trunk/share/man/man3/pthread_equal.3
trunk/share/man/man3/pthread_exit.3
trunk/share/man/man3/pthread_getconcurrency.3
trunk/share/man/man3/pthread_getspecific.3
trunk/share/man/man3/pthread_getthreadid_np.3
trunk/share/man/man3/pthread_join.3
trunk/share/man/man3/pthread_key_create.3
trunk/share/man/man3/pthread_key_delete.3
trunk/share/man/man3/pthread_kill.3
trunk/share/man/man3/pthread_main_np.3
trunk/share/man/man3/pthread_multi_np.3
trunk/share/man/man3/pthread_mutex_destroy.3
trunk/share/man/man3/pthread_mutex_init.3
trunk/share/man/man3/pthread_mutex_lock.3
trunk/share/man/man3/pthread_mutex_timedlock.3
trunk/share/man/man3/pthread_mutex_trylock.3
trunk/share/man/man3/pthread_mutex_unlock.3
trunk/share/man/man3/pthread_mutexattr.3
trunk/share/man/man3/pthread_mutexattr_getkind_np.3
trunk/share/man/man3/pthread_once.3
trunk/share/man/man3/pthread_resume_all_np.3
trunk/share/man/man3/pthread_resume_np.3
trunk/share/man/man3/pthread_rwlock_destroy.3
trunk/share/man/man3/pthread_rwlock_init.3
trunk/share/man/man3/pthread_rwlock_rdlock.3
trunk/share/man/man3/pthread_rwlock_timedrdlock.3
trunk/share/man/man3/pthread_rwlock_timedwrlock.3
trunk/share/man/man3/pthread_rwlock_unlock.3
trunk/share/man/man3/pthread_rwlock_wrlock.3
trunk/share/man/man3/pthread_rwlockattr_destroy.3
trunk/share/man/man3/pthread_rwlockattr_getpshared.3
trunk/share/man/man3/pthread_rwlockattr_init.3
trunk/share/man/man3/pthread_rwlockattr_setpshared.3
trunk/share/man/man3/pthread_schedparam.3
trunk/share/man/man3/pthread_self.3
trunk/share/man/man3/pthread_set_name_np.3
trunk/share/man/man3/pthread_setspecific.3
trunk/share/man/man3/pthread_sigmask.3
trunk/share/man/man3/pthread_spin_init.3
trunk/share/man/man3/pthread_spin_lock.3
trunk/share/man/man3/pthread_suspend_all_np.3
trunk/share/man/man3/pthread_suspend_np.3
trunk/share/man/man3/pthread_switch_add_np.3
trunk/share/man/man3/pthread_testcancel.3
trunk/share/man/man3/pthread_yield.3
trunk/share/man/man3/queue.3
trunk/share/man/man3/siginfo.3
trunk/share/man/man3/stdarg.3
trunk/share/man/man3/sysexits.3
trunk/share/man/man3/tgmath.3
trunk/share/man/man3/timeradd.3
trunk/share/man/man3/tree.3
Added: trunk/share/man/man3/ATOMIC_VAR_INIT.3
===================================================================
--- trunk/share/man/man3/ATOMIC_VAR_INIT.3 (rev 0)
+++ trunk/share/man/man3/ATOMIC_VAR_INIT.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -0,0 +1,302 @@
+.\" $MidnightBSD$
+.\" Copyright (c) 2011 Ed Schouten <ed at FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD: stable/10/share/man/man3/ATOMIC_VAR_INIT.3 235286 2012-05-11 20:06:46Z gjb $
+.\"
+.Dd December 27, 2011
+.Dt ATOMIC_VAR_INIT 3
+.Os
+.Sh NAME
+.Nm ATOMIC_VAR_INIT ,
+.Nm atomic_init ,
+.Nm atomic_load ,
+.Nm atomic_store ,
+.Nm atomic_exchange ,
+.Nm atomic_compare_exchange_strong ,
+.Nm atomic_compare_exchange_weak ,
+.Nm atomic_fetch_add ,
+.Nm atomic_fetch_and ,
+.Nm atomic_fetch_or ,
+.Nm atomic_fetch_sub ,
+.Nm atomic_fetch_xor ,
+.Nm atomic_is_lock_free
+.Nd type-generic atomic operations
+.Sh SYNOPSIS
+.In stdatomic.h
+.Pp
+_Atomic(T)
+.Fa v
+= ATOMIC_VAR_INIT(c);
+.Ft void
+.Fn atomic_init "_Atomic(T) *object" "T value"
+.Ft T
+.Fn atomic_load "_Atomic(T) *object"
+.Ft T
+.Fn atomic_load_explicit "_Atomic(T) *object" "memory_order order"
+.Ft void
+.Fn atomic_store "_Atomic(T) *object" "T desired"
+.Ft void
+.Fn atomic_store_explicit "_Atomic(T) *object" "T desired" "memory_order order"
+.Ft T
+.Fn atomic_exchange "_Atomic(T) *object" "T desired"
+.Ft T
+.Fn atomic_exchange_explicit "_Atomic(T) *object" "T desired" "memory_order order"
+.Ft _Bool
+.Fn atomic_compare_exchange_strong "_Atomic(T) *object" "T *expected" "T desired"
+.Ft _Bool
+.Fn atomic_compare_exchange_strong_explicit "_Atomic(T) *object" "T *expected" "T desired" "memory_order success" "memory_order failure"
+.Ft _Bool
+.Fn atomic_compare_exchange_weak "_Atomic(T) *object" "T *expected" "T desired"
+.Ft _Bool
+.Fn atomic_compare_exchange_weak_explicit "_Atomic(T) *object" "T *expected" "T desired" "memory_order success" "memory_order failure"
+.Ft T
+.Fn atomic_fetch_add "_Atomic(T) *object" "T operand"
+.Ft T
+.Fn atomic_fetch_add_explicit "_Atomic(T) *object" "T operand" "memory_order order"
+.Ft T
+.Fn atomic_fetch_and "_Atomic(T) *object" "T operand"
+.Ft T
+.Fn atomic_fetch_and_explicit "_Atomic(T) *object" "T operand" "memory_order order"
+.Ft T
+.Fn atomic_fetch_or "_Atomic(T) *object" "T operand"
+.Ft T
+.Fn atomic_fetch_or_explicit "_Atomic(T) *object" "T operand" "memory_order order"
+.Ft T
+.Fn atomic_fetch_sub "_Atomic(T) *object" "T operand"
+.Ft T
+.Fn atomic_fetch_sub_explicit "_Atomic(T) *object" "T operand" "memory_order order"
+.Ft T
+.Fn atomic_fetch_xor "_Atomic(T) *object" "T operand"
+.Ft T
+.Fn atomic_fetch_xor_explicit "_Atomic(T) *object" "T operand" "memory_order order"
+.Ft _Bool
+.Fn atomic_is_lock_free "const _Atomic(T) *object"
+.Sh DESCRIPTION
+The header
+.In stdatomic.h
+provides type-generic macros for atomic operations.
+Atomic operations can be used by multithreaded programs to provide
+shared variables between threads that in most cases may be modified
+without acquiring locks.
+.Pp
+Atomic variables are declared using the
+.Fn _Atomic
+type specifier.
+These variables are not type-compatible with their non-atomic
+counterparts.
+Depending on the compiler used, atomic variables may be opaque and can
+therefore only be influenced using the macros described.
+.Pp
+The
+.Fn atomic_init
+macro initializes the atomic variable
+.Fa object
+with a
+.Fa value .
+Atomic variables can be initialized while being declared using
+.Fn ATOMIC_VAR_INIT .
+.Pp
+The
+.Fn atomic_load
+macro returns the value of atomic variable
+.Fa object .
+The
+.Fn atomic_store
+macro sets the atomic variable
+.Fa object
+to its
+.Fa desired
+value.
+.Pp
+The
+.Fn atomic_exchange
+macro combines the behaviour of
+.Fn atomic_load
+and
+.Fn atomic_store .
+It sets the atomic variable
+.Fa object
+to its desired
+.Fa value
+and returns the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_compare_exchange_strong
+macro stores a
+.Fa desired
+value into atomic variable
+.Fa object ,
+only if the atomic variable is equal to its
+.Fa expected
+value.
+Upon success, the macro returns
+.Dv true .
+Upon failure, the
+.Fa desired
+value is overwritten with the value of the atomic variable and
+.Dv false
+is returned.
+The
+.Fn atomic_compare_exchange_weak
+macro is identical to
+.Fn atomic_compare_exchange_strong ,
+but is allowed to fail even if atomic variable
+.Fa object
+is equal to its
+.Fa expected
+value.
+.Pp
+The
+.Fn atomic_fetch_add
+macro adds the value
+.Fa operand
+to atomic variable
+.Fa object
+and returns the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_fetch_and
+macro applies the
+.Em and
+operator to atomic variable
+.Fa object
+and
+.Fa operand
+and stores the value into
+.Fa object ,
+while returning the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_fetch_or
+macro applies the
+.Em or
+operator to atomic variable
+.Fa object
+and
+.Fa operand
+and stores the value into
+.Fa object ,
+while returning the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_fetch_sub
+macro subtracts the value
+.Fa operand
+from atomic variable
+.Fa object
+and returns the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_fetch_xor
+macro applies the
+.Em xor
+operator to atomic variable
+.Fa object
+and
+.Fa operand
+and stores the value into
+.Fa object ,
+while returning the original contents of the atomic variable.
+.Pp
+The
+.Fn atomic_is_lock_free
+macro returns whether atomic variable
+.Fa object
+uses locks when using atomic operations.
+.Sh BARRIERS
+The atomic operations described previously are implemented in such a way
+that they disallow both the compiler and the executing processor to
+re-order any nearby memory operations across the atomic operation.
+In certain cases this behaviour may cause suboptimal performance.
+To mitigate this, every atomic operation has an
+.Fn _explicit
+version that allows the re-ordering to be configured.
+.Pp
+The
+.Fa order
+parameter of these
+.Fn _explicit
+macros can have one of the following values.
+.Bl -tag -width memory_order_relaxed
+.It Dv memory_order_relaxed
+No operation orders memory.
+.It Dv memory_order_consume
+Perform consume operation.
+.It Dv memory_order_acquire
+Acquire fence.
+.It Dv memory_order_release
+Release fence.
+.It Dv memory_order_acq_rel
+Acquire and release fence.
+.It Dv memory_order_seq_cst
+Sequentially consistent acquire and release fence.
+.El
+.Pp
+The previously described macros are identical to the
+.Fn _explicit
+macros, when
+.Fa order
+is
+.Dv memory_order_seq_cst .
+.Sh COMPILER SUPPORT
+These atomic operations are typically implemented by the compiler, as
+they must be implemented type-generically and must often use special
+hardware instructions.
+As this interface has not been adopted by most compilers yet, the
+.In stdatomic.h
+header implements these macros on top of existing compiler intrinsics to
+provide forward compatibility.
+.Pp
+This means that certain aspects of the interface, such as support for
+different barrier types may simply be ignored.
+When using GCC, all atomic operations are executed as if they are using
+.Dv memory_order_seq_cst .
+.Pp
+Instead of using the atomic operations provided by this interface,
+.St -isoC-2011
+allows the atomic variables to be modified directly using built-in
+language operators.
+This behaviour cannot be emulated for older compilers.
+To prevent unintended non-atomic access to these variables, this header
+file places the atomic variable in a structure when using an older
+compiler.
+.Pp
+When using GCC on architectures on which it lacks support for built-in
+atomic intrinsics, these macros may emit function calls to fallback
+routines.
+These fallback routines are only implemented for 32-bits and 64-bits
+datatypes, if supported by the CPU.
+.Sh SEE ALSO
+.Xr pthread 3 ,
+.Xr atomic 9
+.Sh STANDARDS
+These macros attempt to conform to
+.St -isoC-2011 .
+.Sh HISTORY
+These macros appeared in
+.Fx 10.0 .
+.Sh AUTHORS
+.An Ed Schouten Aq ed at FreeBSD.org ,
+.An David Chisnall Aq theraven at FreeBSD.org
Property changes on: trunk/share/man/man3/ATOMIC_VAR_INIT.3
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/share/man/man3/Makefile
===================================================================
--- trunk/share/man/man3/Makefile 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/Makefile 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,16 +1,20 @@
+# $MidnightBSD$
# @(#)Makefile 8.2 (Berkeley) 12/13/93
-# $MidnightBSD$
+# $FreeBSD: stable/10/share/man/man3/Makefile 303325 2016-07-25 23:38:14Z jhb $
.include <bsd.own.mk>
MAN= assert.3 \
+ ATOMIC_VAR_INIT.3 \
bitstring.3 \
end.3 \
fpgetround.3 \
intro.3 \
makedev.3 \
+ offsetof.3 \
${PTHREAD_MAN} \
queue.3 \
+ sigevent.3 \
siginfo.3 \
stdarg.3 \
sysexits.3 \
@@ -18,7 +22,29 @@
timeradd.3 \
tree.3
-MLINKS= bitstring.3 bit_alloc.3 \
+MLINKS= ATOMIC_VAR_INIT.3 atomic_compare_exchange_strong.3 \
+ ATOMIC_VAR_INIT.3 atomic_compare_exchange_strong_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_compare_exchange_weak.3 \
+ ATOMIC_VAR_INIT.3 atomic_compare_exchange_weak_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_exchange.3 \
+ ATOMIC_VAR_INIT.3 atomic_exchange_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_add.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_add_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_and.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_and_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_or.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_or_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_sub.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_sub_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_xor.3 \
+ ATOMIC_VAR_INIT.3 atomic_fetch_xor_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_init.3 \
+ ATOMIC_VAR_INIT.3 atomic_is_lock_free.3 \
+ ATOMIC_VAR_INIT.3 atomic_load.3 \
+ ATOMIC_VAR_INIT.3 atomic_load_explicit.3 \
+ ATOMIC_VAR_INIT.3 atomic_store.3 \
+ ATOMIC_VAR_INIT.3 atomic_store_explicit.3
+MLINKS+= bitstring.3 bit_alloc.3 \
bitstring.3 bit_clear.3 \
bitstring.3 bit_decl.3 \
bitstring.3 bit_ffc.3 \
@@ -40,10 +66,13 @@
MLINKS+= makedev.3 major.3 \
makedev.3 minor.3
MLINKS+= ${PTHREAD_MLINKS}
-MLINKS+= queue.3 LIST_EMPTY.3 \
+MLINKS+= queue.3 LIST_CLASS_ENTRY.3 \
+ queue.3 LIST_CLASS_HEAD.3 \
+ queue.3 LIST_EMPTY.3 \
queue.3 LIST_ENTRY.3 \
queue.3 LIST_FIRST.3 \
queue.3 LIST_FOREACH.3 \
+ queue.3 LIST_FOREACH_FROM_SAFE.3 \
queue.3 LIST_FOREACH_SAFE.3 \
queue.3 LIST_HEAD.3 \
queue.3 LIST_HEAD_INITIALIZER.3 \
@@ -55,10 +84,13 @@
queue.3 LIST_PREV.3 \
queue.3 LIST_REMOVE.3 \
queue.3 LIST_SWAP.3 \
+ queue.3 SLIST_CLASS_ENTRY.3 \
+ queue.3 SLIST_CLASS_HEAD.3 \
queue.3 SLIST_EMPTY.3 \
queue.3 SLIST_ENTRY.3 \
queue.3 SLIST_FIRST.3 \
queue.3 SLIST_FOREACH.3 \
+ queue.3 SLIST_FOREACH_FROM_SAFE.3 \
queue.3 SLIST_FOREACH_SAFE.3 \
queue.3 SLIST_HEAD.3 \
queue.3 SLIST_HEAD_INITIALIZER.3 \
@@ -70,11 +102,14 @@
queue.3 SLIST_REMOVE_AFTER.3 \
queue.3 SLIST_REMOVE_HEAD.3 \
queue.3 SLIST_SWAP.3 \
+ queue.3 STAILQ_CLASS_ENTRY.3 \
+ queue.3 STAILQ_CLASS_HEAD.3 \
queue.3 STAILQ_CONCAT.3 \
queue.3 STAILQ_EMPTY.3 \
queue.3 STAILQ_ENTRY.3 \
queue.3 STAILQ_FIRST.3 \
queue.3 STAILQ_FOREACH.3 \
+ queue.3 STAILQ_FOREACH_FROM_SAFE.3 \
queue.3 STAILQ_FOREACH_SAFE.3 \
queue.3 STAILQ_HEAD.3 \
queue.3 STAILQ_HEAD_INITIALIZER.3 \
@@ -88,12 +123,16 @@
queue.3 STAILQ_REMOVE_AFTER.3 \
queue.3 STAILQ_REMOVE_HEAD.3 \
queue.3 STAILQ_SWAP.3 \
+ queue.3 TAILQ_CLASS_ENTRY.3 \
+ queue.3 TAILQ_CLASS_HEAD.3 \
queue.3 TAILQ_CONCAT.3 \
queue.3 TAILQ_EMPTY.3 \
queue.3 TAILQ_ENTRY.3 \
queue.3 TAILQ_FIRST.3 \
queue.3 TAILQ_FOREACH.3 \
+ queue.3 TAILQ_FOREACH_FROM_SAFE.3 \
queue.3 TAILQ_FOREACH_REVERSE.3 \
+ queue.3 TAILQ_FOREACH_REVERSE_FROM_SAFE.3 \
queue.3 TAILQ_FOREACH_REVERSE_SAFE.3 \
queue.3 TAILQ_FOREACH_SAFE.3 \
queue.3 TAILQ_HEAD.3 \
@@ -183,6 +222,7 @@
pthread_equal.3 \
pthread_exit.3 \
pthread_getconcurrency.3 \
+ pthread_getcpuclockid.3 \
pthread_getspecific.3 \
pthread_getthreadid_np.3 \
pthread_join.3 \
Modified: trunk/share/man/man3/assert.3
===================================================================
--- trunk/share/man/man3/assert.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/assert.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -9,7 +10,11 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
+.\" 3. All advertising materials mentioning features or use of this software
+.\" must display the following acknowledgement:
+.\" This product includes software developed by the University of
+.\" California, Berkeley and its contributors.
+.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
@@ -26,8 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)assert.3 8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/share/man/man3/assert.3,v 1.15 2002/12/04 18:57:46 ru Exp $
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/assert.3 107619 2002-12-04 18:57:46Z ru $
.\"
.Dd January 26, 1999
.Dt ASSERT 3
Property changes on: trunk/share/man/man3/assert.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/bitstring.3
===================================================================
--- trunk/share/man/man3/bitstring.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/bitstring.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1989, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -32,7 +33,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)bitstring.3 8.1 (Berkeley) 7/19/93
-.\" $FreeBSD: src/share/man/man3/bitstring.3,v 1.11 2001/10/01 16:09:20 ru Exp $
+.\" $FreeBSD: stable/10/share/man/man3/bitstring.3 84306 2001-10-01 16:09:29Z ru $
.\"
.Dd July 19, 1993
.Dt BITSTRING 3
Property changes on: trunk/share/man/man3/bitstring.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/end.3
===================================================================
--- trunk/share/man/man3/end.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/end.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1986
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)end.3 6.4 (Berkeley) 1/24/94
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/end.3 70974 2001-01-12 15:46:56Z ru $
.\"
.Dd August 28, 2000
.Dt END 3
Property changes on: trunk/share/man/man3/end.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/fpgetround.3
===================================================================
--- trunk/share/man/man3/fpgetround.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/fpgetround.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1993 Andrew Moore, Talke Studio
.\" All rights reserved.
.\"
@@ -30,7 +31,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)fpgetround.3 1.0 (Berkeley) 9/23/93
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/fpgetround.3 249373 2013-04-11 18:46:41Z joel $
.\"
.Dd December 3, 2010
.Dt FPGETROUND 3
@@ -164,7 +165,7 @@
.Fn fpsetprec
functions provide functionality unavailable on many platforms.
At present, they are implemented only on the i386 and amd64 platforms.
-Changing precision isn't a supported feature:
+Changing precision is not a supported feature:
it may be ineffective when code is compiled to take advantage of SSE,
and many library functions and compiler optimizations depend upon the
default precision for correct behavior.
Property changes on: trunk/share/man/man3/fpgetround.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/intro.3
===================================================================
--- trunk/share/man/man3/intro.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/intro.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -30,9 +31,9 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)intro.3 8.1 (Berkeley) 6/5/93
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/intro.3 318611 2017-05-22 06:06:48Z ngie $
.\"
-.Dd June 5, 1993
+.Dd March 22, 2017
.Dt INTRO 3
.Os
.Sh NAME
@@ -44,26 +45,16 @@
common definitions and concepts.
Most of these functions are available from the C library,
.Em libc .
-.\" (see
-.\" .Xr libc 3 ) .
Other libraries, such as the math library,
.Em libm ,
must be indicated at compile time with the
.Fl l
option of the compiler.
-.\" .Pp
-.\" A subset of the
-.\" .Xr libc functions
-.\" are available from Fortran;
-.\" they are described separately in
-.\" .Xr intro 3f .
.Pp
The various libraries (followed by the loader flag):
.Bl -tag -width "libc (-lc)"
-.It Xr libc Pq Fl l Ns Ar c
+.It Em libc Pq Fl l Ns Ar c
Standard C library functions.
-.\" (See
-.\" .Xr libc 3 . )
When using the C compiler
.Xr cc 1 ,
it is not necessary
@@ -71,8 +62,8 @@
.Fl l Ns Ar c
for these functions.
There are several `libraries' or groups of functions included inside of
-.Xr libc :
-the standard
+.Em libc
+: the standard
.Tn I/O
routines,
database routines,
@@ -81,12 +72,12 @@
character tests and character operators,
des encryption routines,
storage allocation, time functions, signal handling and more.
-.It Xr libcurses Pq Fl l Ns Ar curses Fl l Ns Ar termcap
+.It Em libcurses Pq Fl l Ns Ar curses Fl l Ns Ar termcap
Terminal independent screen management routines
for two dimensional non-bitmap display terminals.
(See
.Xr ncurses 3 . )
-.It Xr libcompat Pq Fl l Ns Ar compat
+.It Em libcompat Pq Fl l Ns Ar compat
Functions which are obsolete but are available for compatibility with
.Bx 4.3 .
In particular,
@@ -96,45 +87,30 @@
Use of these routines should, for the most part, be avoided.
The manual page entry for each compatibility routine
indicates the proper interface to use.
-.It Xr libkvm Pq Fl l Ns Ar kvm
+.It Em libkvm Pq Fl l Ns Ar kvm
Functions used to access kernel memory are in this library.
They can be used
against both a running system and a crash dump.
(See
.Xr kvm 3 . )
-.It Xr libl Pq Fl l Ns Ar l
+.It Em libl Pq Fl l Ns Ar l
The library for
.Xr lex 1 .
-.\" .It Xr libln
-.It Xr libm Pq Fl l Ns Ar m
+.It Em libm Pq Fl l Ns Ar m
The math library,
.Em libm .
The math library is loaded as needed by the Pascal compiler,
-.\" .Xr pc 1 ,
but not by the C compiler which requires the
.Fl l Ns Ar m
flag.
(See
.Xr math 3 . )
-.It Xr libmp Pq Fl l Ns Ar mp
-.\" .It Xr libom
-.\" Old math library.
-.\" .It Xr libplot Pq Fl l Ns Ar plot
-.\" Device independent plotting functions.
-.\" (See
-.\" .Xr plot 3 . )
-.\" .It Xr libplotf77 Pq Fl l Ns Ar plotf77
-.\" The device independent plotting functions for fortran.
-.\" (See
-.\" .Xr plot 3 . )
-.\" .It Xr libresolv Pq Fl l Ns Ar resolv
-.\" Routines for network address resolution.
-.It Xr libtermcap Pq Fl l Ns Ar termcap
+.It Em libmp Pq Fl l Ns Ar mp
+.It Em libtermcap Pq Fl l Ns Ar termcap
The terminal independent operation library package.
(See
.Xr termcap 3 . )
-.\" .It libvt0.a
-.It Xr liby Pq Fl l Ns Ar y
+.It Em liby Pq Fl l Ns Ar y
The library for
.Xr yacc 1 .
.El
@@ -150,7 +126,6 @@
the math library compiled for profiling
.El
.Sh SEE ALSO
-.\" .Xr libc 3 ,
.Xr cc 1 ,
.Xr ld 1 ,
.Xr nm 1 ,
@@ -157,10 +132,6 @@
.Xr intro 2 ,
.Xr math 3 ,
.Xr stdio 3
-.\" .Sh LIST OF FUNCTIONS
-.\" .Bl -column "strncasecmpxxx" "system"
-.\" .Sy Name Description
-.\" .El
.Sh HISTORY
An
.Nm
Property changes on: trunk/share/man/man3/intro.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/makedev.3
===================================================================
--- trunk/share/man/man3/makedev.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/makedev.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2008 Ed Schouten <ed at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/makedev.3 183443 2008-09-28 20:26:16Z ed $
.\"
.Dd September 28, 2008
.Dt MAKEDEV 3
Property changes on: trunk/share/man/man3/makedev.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/share/man/man3/offsetof.3
===================================================================
--- trunk/share/man/man3/offsetof.3 (rev 0)
+++ trunk/share/man/man3/offsetof.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -0,0 +1,48 @@
+.\" $MidnightBSD$
+.\" $OpenBSD: offsetof.3,v 1.2 2010/02/18 18:30:19 jmc Exp $
+.\"
+.\" Copyright (c) 2010 Thomas Pfaff <tpfaff at tp76.info>
+.\"
+.\" Permission to use, copy, modify, and distribute this software for any
+.\" purpose with or without fee is hereby granted, provided that the above
+.\" copyright notice and this permission notice appear in all copies.
+.\"
+.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+.\"
+.\" $FreeBSD: stable/10/share/man/man3/offsetof.3 251369 2013-06-04 07:37:06Z joel $
+.\"
+.Dd February 18 2010
+.Dt OFFSETOF 3
+.Os
+.Sh NAME
+.Nm offsetof
+.Nd offset of a structure member
+.Sh SYNOPSIS
+.In stddef.h
+.Ft size_t
+.Fn offsetof "type" "member"
+.Sh DESCRIPTION
+The
+.Fn offsetof
+macro expands to an integer constant expression of type
+.Ft size_t
+and yields the offset,
+in bytes, of the field
+.Ar member
+from the start of the structure
+.Ar type .
+.Pp
+A compiler error will result if
+.Ar member
+is not aligned to a byte boundary (i.e. it is a bit-field).
+.Sh STANDARDS
+The
+.Fn offsetof
+macro conforms to
+.St -ansiC .
Property changes on: trunk/share/man/man3/offsetof.3
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/share/man/man3/pthread.3
===================================================================
--- trunk/share/man/man3/pthread.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread.3 271062 2014-09-03 23:11:39Z gavin $
.\"
-.Dd January 8, 2010
+.Dd August 12, 2014
.Dt PTHREAD 3
.Os
.Sh NAME
@@ -344,13 +345,13 @@
.Fa "const struct timespec *abstime"
.Fc
.Xc
-Wait no longer than the specified time for a condition
-and lock the specified mutex.
+Unlock the specified mutex, wait no longer than the specified time for
+a condition, and then relock the mutex.
.It Xo
.Ft int
.Fn pthread_cond_wait "pthread_cond_t *" "pthread_mutex_t *mutex"
.Xc
-Wait for a condition and lock the specified mutex.
+Unlock the specified mutex, wait for a condition, and relock the mutex.
.El
.Ss Read/Write Lock Routines
.Bl -tag -width indent
Property changes on: trunk/share/man/man3/pthread.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_affinity_np.3
===================================================================
--- trunk/share/man/man3/pthread_affinity_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_affinity_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"-
.\" Copyright (c) 2010 Xin LI <delphij at FreeBSD.org>
.\" All rights reserved.
@@ -23,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_affinity_np.3 249716 2013-04-21 06:46:41Z joel $
.\"
.Dd March 23, 2010
.Dt PTHREAD_AFFINITY_NP 3
@@ -49,7 +50,7 @@
Masks of type
.Ft cpuset_t
are composed using the
-.Xr CPU_SET 3
+.Dv CPU_SET
macros.
The kernel tolerates large sets as long as all CPUs specified
in the set exist.
@@ -123,7 +124,6 @@
.Xr cpuset 2 ,
.Xr cpuset_getid 2 ,
.Xr cpuset_setid 2 ,
-.Xr CPU_SET 3 ,
.Xr pthread 3 ,
.Xr pthread_attr_getaffinity_np 3 ,
.Xr pthread_attr_setaffinity_np 3
Property changes on: trunk/share/man/man3/pthread_affinity_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_atfork.3
===================================================================
--- trunk/share/man/man3/pthread_atfork.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_atfork.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Alex Vasylenko <lxv at omut.org>
.\" All rights reserved.
.\"
@@ -32,7 +33,7 @@
.\" the referee document. The original Standard can be obtained online at
.\" http://www.opengroup.org/unix/online.html.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_atfork.3 147432 2005-06-16 18:46:17Z ru $
.\"
.Dd June 21, 2004
.Dt PTHREAD_ATFORK 3
Property changes on: trunk/share/man/man3/pthread_atfork.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_attr.3
===================================================================
--- trunk/share/man/man3/pthread_attr.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_attr.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_attr.3 201892 2010-01-09 12:31:11Z delphij $
.Dd January 8, 2010
.Dt PTHREAD_ATTR 3
.Os
Property changes on: trunk/share/man/man3/pthread_attr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_attr_affinity_np.3
===================================================================
--- trunk/share/man/man3/pthread_attr_affinity_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_attr_affinity_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"-
.\" Copyright (c) 2010 Xin LI <delphij at FreeBSD.org>
.\" All rights reserved.
@@ -23,7 +24,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_attr_affinity_np.3 249716 2013-04-21 06:46:41Z joel $
.\"
.Dd January 8, 2010
.Dt PTHREAD_ATTR_AFFINITY_NP 3
@@ -50,7 +51,7 @@
Masks of type
.Ft cpuset_t
are composed using the
-.Xr CPU_SET 3
+.Dv CPU_SET
macros.
The kernel tolerates large sets as long as all CPUs specified
in the set exist.
@@ -132,7 +133,6 @@
.Xr cpuset 2 ,
.Xr cpuset_getid 2 ,
.Xr cpuset_setid 2 ,
-.Xr CPU_SET 3 ,
.Xr pthread_get_affinity_np 3 ,
.Xr pthread_set_affinity_np 3
.Sh STANDARDS
Property changes on: trunk/share/man/man3/pthread_attr_affinity_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_attr_get_np.3
===================================================================
--- trunk/share/man/man3/pthread_attr_get_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_attr_get_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2002,2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_attr_get_np.3 302011 2016-06-18 13:44:10Z jilles $
.\"
.Dd January 31, 2003
.Dt PTHREAD_ATTR_GET_NP 3
@@ -93,7 +94,7 @@
.Bl -tag -width Er
.It Bq Er EINVAL
Invalid value for one of given parameters.
-.It Bq Er ESRC
+.It Bq Er ESRCH
No thread could be found corresponding to that specified by the given
thread ID.
.El
Property changes on: trunk/share/man/man3/pthread_attr_get_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3
===================================================================
--- trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_attr_setcreatesuspend_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_ATTR_SETCREATESUSPEND_NP 3
Property changes on: trunk/share/man/man3/pthread_attr_setcreatesuspend_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_barrier_destroy.3
===================================================================
--- trunk/share/man/man3/pthread_barrier_destroy.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_barrier_destroy.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_barrier_destroy.3 302010 2016-06-18 13:42:33Z jilles $
.\"
.Dd February 19, 2004
.Dt PTHREAD_BARRIER 3
@@ -75,9 +76,7 @@
.Fn pthread_barrier_init .
Once the threads have been released the barrier will be reset.
.Sh IMPLEMENTATION NOTES
-In both
-.Lb libkse
-and
+In
.Lb libthr
the
.Dv PTHREAD_BARRIER_SERIAL_THREAD
Property changes on: trunk/share/man/man3/pthread_barrier_destroy.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_barrierattr.3
===================================================================
--- trunk/share/man/man3/pthread_barrierattr.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_barrierattr.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_barrierattr.3 302010 2016-06-18 13:42:33Z jilles $
.\"
.Dd February 19, 2004
.Dt PTHREAD_BARRIERATTR 3
@@ -137,11 +138,9 @@
does not fully conform to
.St -p1003.2
because the process-shared attribute is ignored in
-.Lb libthr ,
-and in
-.Lb libkse ;
+.Lb libthr ;
if any value other than
-.Dv PTHREAD_PROCESSES_PRIVATE
+.Dv PTHREAD_PROCESS_PRIVATE
is specified in a call to
.Fn pthread_barrierattr_setpshared ,
it will return
Property changes on: trunk/share/man/man3/pthread_barrierattr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cancel.3
===================================================================
--- trunk/share/man/man3/pthread_cancel.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cancel.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,4 +1,5 @@
.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cancel.3 172880 2007-10-22 10:08:01Z ru $
.Dd January 17, 1999
.Dt PTHREAD_CANCEL 3
.Os
Property changes on: trunk/share/man/man3/pthread_cancel.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cleanup_pop.3
===================================================================
--- trunk/share/man/man3/pthread_cleanup_pop.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cleanup_pop.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,9 +26,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cleanup_pop.3 273996 2014-11-02 23:22:22Z jhb $
.\"
-.Dd July 30, 1998
+.Dd October 25, 2014
.Dt PTHREAD_CLEANUP_POP 3
.Os
.Sh NAME
@@ -50,6 +51,14 @@
then
.Fn pthread_cleanup_pop
does nothing.
+.Pp
+The
+.Fn pthread_cleanup_pop
+function is implemented as a macro that closes a block.
+Invocations of this function must appear as standalone statements that are
+paired with an earlier call of
+.Xr pthread_cleanup_push 3
+in the same lexical scope.
.Sh RETURN VALUES
The
.Fn pthread_cleanup_pop
Property changes on: trunk/share/man/man3/pthread_cleanup_pop.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cleanup_push.3
===================================================================
--- trunk/share/man/man3/pthread_cleanup_push.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cleanup_push.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,9 +26,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cleanup_push.3 273996 2014-11-02 23:22:22Z jhb $
.\"
-.Dd July 30, 1998
+.Dd October 25, 2014
.Dt PTHREAD_CLEANUP_PUSH 3
.Os
.Sh NAME
@@ -52,6 +53,14 @@
is called, it is passed
.Fa arg
as its only argument.
+.Pp
+The
+.Fn pthread_cleanup_push
+function is implemented as a macro that opens a new block.
+Invocations of this function must appear as standalone statements that are
+paired with a later call of
+.Xr pthread_cleanup_pop 3
+in the same lexical scope.
.Sh RETURN VALUES
The
.Fn pthread_cleanup_push
Property changes on: trunk/share/man/man3/pthread_cleanup_push.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_broadcast.3
===================================================================
--- trunk/share/man/man3/pthread_cond_broadcast.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_broadcast.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_broadcast.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd July 28, 1998
.Dt PTHREAD_COND_BROADCAST 3
Property changes on: trunk/share/man/man3/pthread_cond_broadcast.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_destroy.3
===================================================================
--- trunk/share/man/man3/pthread_cond_destroy.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_destroy.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_destroy.3 233466 2012-03-25 16:00:56Z joel $
.\"
.Dd July 28, 1998
.Dt PTHREAD_COND_DESTROY 3
@@ -44,6 +45,9 @@
.Fn pthread_cond_destroy
function frees the resources allocated by the condition variable
.Fa cond .
+.Sh IMPLEMENTATION NOTES
+A condition variable can be destroyed immediately after all the threads that
+are blocked on it are awakened.
.Sh RETURN VALUES
If successful, the
.Fn pthread_cond_destroy
Property changes on: trunk/share/man/man3/pthread_cond_destroy.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_init.3
===================================================================
--- trunk/share/man/man3/pthread_cond_init.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_init.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_init.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd November 4, 2006
.Dt PTHREAD_COND_INIT 3
Property changes on: trunk/share/man/man3/pthread_cond_init.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_signal.3
===================================================================
--- trunk/share/man/man3/pthread_cond_signal.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_signal.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_signal.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd July 28, 1998
.Dt PTHREAD_COND_SIGNAL 3
Property changes on: trunk/share/man/man3/pthread_cond_signal.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_timedwait.3
===================================================================
--- trunk/share/man/man3/pthread_cond_timedwait.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_timedwait.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_timedwait.3 233648 2012-03-29 05:02:12Z eadler $
.\"
.Dd May 9, 2010
.Dt PTHREAD_COND_TIMEDWAIT 3
Property changes on: trunk/share/man/man3/pthread_cond_timedwait.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_cond_wait.3
===================================================================
--- trunk/share/man/man3/pthread_cond_wait.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_cond_wait.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_cond_wait.3 233648 2012-03-29 05:02:12Z eadler $
.\"
.Dd February 16, 2006
.Dt PTHREAD_COND_WAIT 3
Property changes on: trunk/share/man/man3/pthread_cond_wait.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_condattr.3
===================================================================
--- trunk/share/man/man3/pthread_condattr.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_condattr.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_condattr.3 302010 2016-06-18 13:42:33Z jilles $
.Dd May 9, 2010
.Dt PTHREAD_CONDATTR 3
.Os
@@ -167,7 +168,7 @@
.St -p1003.2
because the process-shared attribute is ignored;
if any value other than
-.Dv PTHREAD_PROCESSES_PRIVATE
+.Dv PTHREAD_PROCESS_PRIVATE
is specified in a call to
.Fn pthread_condattr_setpshared ,
it will return
Property changes on: trunk/share/man/man3/pthread_condattr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_create.3
===================================================================
--- trunk/share/man/man3/pthread_create.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_create.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_create.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd November 4, 2006
.Dt PTHREAD_CREATE 3
Property changes on: trunk/share/man/man3/pthread_create.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_detach.3
===================================================================
--- trunk/share/man/man3/pthread_detach.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_detach.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996-1998 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_detach.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_DETACH 3
Property changes on: trunk/share/man/man3/pthread_detach.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_equal.3
===================================================================
--- trunk/share/man/man3/pthread_equal.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_equal.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_equal.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_EQUAL 3
Property changes on: trunk/share/man/man3/pthread_equal.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_exit.3
===================================================================
--- trunk/share/man/man3/pthread_exit.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_exit.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_exit.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_EXIT 3
Property changes on: trunk/share/man/man3/pthread_exit.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_getconcurrency.3
===================================================================
--- trunk/share/man/man3/pthread_getconcurrency.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_getconcurrency.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Sergey Osokin <osa at FreeBSD.org.ru>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_getconcurrency.3 249491 2013-04-15 03:02:55Z hiren $
.Dd April 11, 2003
.Dt PTHREAD_GETCONCURRENCY 3
.Os
@@ -40,7 +41,7 @@
.Fn pthread_setconcurrency "int new_level"
.Sh DESCRIPTION
The
-.Fn pthread_getconcurrency
+.Fn pthread_setconcurrency
function allows an application to inform the threads implementation
of its desired concurrency level,
.Fa new_level .
Property changes on: trunk/share/man/man3/pthread_getconcurrency.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/share/man/man3/pthread_getcpuclockid.3
===================================================================
--- trunk/share/man/man3/pthread_getcpuclockid.3 (rev 0)
+++ trunk/share/man/man3/pthread_getcpuclockid.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -0,0 +1,85 @@
+.\" $MidnightBSD$
+.\" Copyright (c) 2012 David Xu <davidxu at FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" Portions of this text are reprinted and reproduced in electronic form
+.\" from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology --
+.\" Portable Operating System Interface (POSIX), The Open Group Base
+.\" Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of
+.\" Electrical and Electronics Engineers, Inc and The Open Group. In the
+.\" event of any discrepancy between this version and the original IEEE and
+.\" The Open Group Standard, the original IEEE and The Open Group Standard is
+.\" the referee document. The original Standard can be obtained online at
+.\" http://www.opengroup.org/unix/online.html.
+.\"
+.\" $FreeBSD: stable/10/share/man/man3/pthread_getcpuclockid.3 239533 2012-08-21 20:40:12Z joel $
+.\"
+.Dd August 21, 2012
+.Dt PTHREAD_GETCPUCLOCKID 3
+.Os
+.Sh NAME
+.Nm pthread_getcpuclockid
+.Nd access a thread CPU-time clock
+.Sh LIBRARY
+.Lb libpthread
+.Sh SYNOPSIS
+.In pthread.h
+.In time.h
+.Ft int
+.Fn pthread_getcpuclockid "pthread_t thread_id" "clockid_t *clock_id"
+.Sh DESCRIPTION
+The
+.Fn pthread_getcpuclockid
+returns the clock ID of the CPU-time clock of the thread specified by
+.Fa thread_id .
+If the thread described by
+.Fa thread_id
+exists.
+.Sh RETURN VALUES
+Upon successful completion,
+.Fn pthread_getcpuclockid
+returns zero; otherwise, an error number is returned to indicate the
+error.
+.Sh ERRORS
+The pthread_getcpuclockid() function will fail if:
+.Bl -tag -width Er
+.It Bq Er ESRCH
+The value specified by
+.Fa thread_id
+does not refer to an existing thread.
+.El
+.Sh SEE ALSO
+.Xr clock_gettime 2
+.Sh STANDARDS
+The
+.Fn pthread_getcpuclockid
+function conforms to
+.St -p1003.1-2004 .
+.Sh HISTORY
+The
+.Fn pthread_getcpuclockid
+function first appeared in
+.Fx 10.0 .
+.Sh AUTHORS
+.An David Xu Aq davidxu at FreeBSD.org
Property changes on: trunk/share/man/man3/pthread_getcpuclockid.3
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_getspecific.3
===================================================================
--- trunk/share/man/man3/pthread_getspecific.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_getspecific.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_getspecific.3 283344 2015-05-24 01:52:22Z pkelsey $
.\"
.Dd April 4, 1996
.Dt PTHREAD_GETSPECIFIC 3
@@ -64,6 +65,11 @@
The
.Fn pthread_getspecific
function may be called from a thread-specific data destructor function.
+A call to
+.Fn pthread_getspecific
+for the thread-specific data key being destroyed returns the value NULL,
+unless the value is changed (after the destructor starts) by a call to
+.Fn pthread_setspecific .
.Sh RETURN VALUES
The
.Fn pthread_getspecific
Property changes on: trunk/share/man/man3/pthread_getspecific.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_getthreadid_np.3
===================================================================
--- trunk/share/man/man3/pthread_getthreadid_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_getthreadid_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2011 Jung-uk Kim <jkim at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_getthreadid_np.3 232157 2012-02-25 14:31:25Z gjb $
.\"
.Dd February 25, 2012
.Dt PTHREAD_GETTHREADID_NP 3
Property changes on: trunk/share/man/man3/pthread_getthreadid_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_join.3
===================================================================
--- trunk/share/man/man3/pthread_join.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_join.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996-1998 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_join.3 209588 2010-06-29 14:32:01Z jhb $
.\"
.Dd January 23, 2010
.Dt PTHREAD_JOIN 3
Property changes on: trunk/share/man/man3/pthread_join.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_key_create.3
===================================================================
--- trunk/share/man/man3/pthread_key_create.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_key_create.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_key_create.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_KEY_CREATE 3
Property changes on: trunk/share/man/man3/pthread_key_create.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_key_delete.3
===================================================================
--- trunk/share/man/man3/pthread_key_delete.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_key_delete.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_key_delete.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_KEY_DELETE 3
Property changes on: trunk/share/man/man3/pthread_key_delete.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_kill.3
===================================================================
--- trunk/share/man/man3/pthread_kill.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_kill.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_kill.3 172880 2007-10-22 10:08:01Z ru $
.Dd April 27, 2000
.Dt PTHREAD_KILL 3
.Os
Property changes on: trunk/share/man/man3/pthread_kill.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_main_np.3
===================================================================
--- trunk/share/man/man3/pthread_main_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_main_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_main_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_MAIN_NP 3
Property changes on: trunk/share/man/man3/pthread_main_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_multi_np.3
===================================================================
--- trunk/share/man/man3/pthread_multi_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_multi_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_multi_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_MULTI_NP 3
Property changes on: trunk/share/man/man3/pthread_multi_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_destroy.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_destroy.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_destroy.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_destroy.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd July 29, 1998
.Dt PTHREAD_MUTEX_DESTROY 3
Property changes on: trunk/share/man/man3/pthread_mutex_destroy.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_init.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_init.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_init.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_init.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd November 4, 2006
.Dt PTHREAD_MUTEX_INIT 3
Property changes on: trunk/share/man/man3/pthread_mutex_init.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_lock.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_lock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_lock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_lock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd January 31, 2006
.Dt PTHREAD_MUTEX_LOCK 3
Property changes on: trunk/share/man/man3/pthread_mutex_lock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_timedlock.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_timedlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_timedlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_timedlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd December 30, 2003
.Dt PTHREAD_MUTEX_TIMEDLOCK 3
Property changes on: trunk/share/man/man3/pthread_mutex_timedlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_trylock.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_trylock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_trylock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_trylock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd July 30, 1998
.Dt PTHREAD_MUTEX_TRYLOCK 3
Property changes on: trunk/share/man/man3/pthread_mutex_trylock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutex_unlock.3
===================================================================
--- trunk/share/man/man3/pthread_mutex_unlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutex_unlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1997 Brian Cully <shmit at kublai.com>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutex_unlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd July 30, 1998
.Dt PTHREAD_MUTEX_UNLOCK 3
Property changes on: trunk/share/man/man3/pthread_mutex_unlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutexattr.3
===================================================================
--- trunk/share/man/man3/pthread_mutexattr.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutexattr.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutexattr.3 172880 2007-10-22 10:08:01Z ru $
.Dd May 1, 2000
.Dt PTHREAD_MUTEXATTR 3
.Os
Property changes on: trunk/share/man/man3/pthread_mutexattr.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_mutexattr_getkind_np.3
===================================================================
--- trunk/share/man/man3/pthread_mutexattr_getkind_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_mutexattr_getkind_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_mutexattr_getkind_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_MUTEXATTR_GETKIND_NP 3
Property changes on: trunk/share/man/man3/pthread_mutexattr_getkind_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_once.3
===================================================================
--- trunk/share/man/man3/pthread_once.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_once.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_once.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd April 4, 1996
.Dt PTHREAD_ONCE 3
Property changes on: trunk/share/man/man3/pthread_once.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_resume_all_np.3
===================================================================
--- trunk/share/man/man3/pthread_resume_all_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_resume_all_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_resume_all_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_RESUME_ALL_NP 3
Property changes on: trunk/share/man/man3/pthread_resume_all_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_resume_np.3
===================================================================
--- trunk/share/man/man3/pthread_resume_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_resume_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_resume_np.3 302011 2016-06-18 13:44:10Z jilles $
.\"
.Dd February 13, 2003
.Dt PTHREAD_RESUME_NP 3
@@ -57,7 +58,7 @@
The value specified by the
.Fa tid
argument is invalid.
-.It Bq ESRC
+.It Bq Er ESRCH
No thread could be found corresponding to the thread ID specified by the
.Fa tid
argument.
Property changes on: trunk/share/man/man3/pthread_resume_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_destroy.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_destroy.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_destroy.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_destroy.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCK_DESTROY 3
Property changes on: trunk/share/man/man3/pthread_rwlock_destroy.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_init.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_init.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_init.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_init.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCK_INIT 3
Property changes on: trunk/share/man/man3/pthread_rwlock_init.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_rdlock.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_rdlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_rdlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_rdlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCK_RDLOCK 3
Property changes on: trunk/share/man/man3/pthread_rwlock_rdlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_timedrdlock.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_timedrdlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_timedrdlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_timedrdlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd January 16, 2004
.Dt PTHREAD_RWLOCK_TIMEDRDLOCK 3
Property changes on: trunk/share/man/man3/pthread_rwlock_timedrdlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_timedwrlock.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_timedwrlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_timedwrlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_timedwrlock.3 218991 2011-02-24 10:21:26Z gahr $
.\"
.Dd January 16, 2004
.Dt PTHREAD_RWLOCK_TIMEDWRLOCK 3
Property changes on: trunk/share/man/man3/pthread_rwlock_timedwrlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_unlock.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_unlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_unlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_unlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCK_UNLOCK 3
Property changes on: trunk/share/man/man3/pthread_rwlock_unlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlock_wrlock.3
===================================================================
--- trunk/share/man/man3/pthread_rwlock_wrlock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlock_wrlock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlock_wrlock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCK_WRLOCK 3
Property changes on: trunk/share/man/man3/pthread_rwlock_wrlock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlockattr_destroy.3
===================================================================
--- trunk/share/man/man3/pthread_rwlockattr_destroy.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlockattr_destroy.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlockattr_destroy.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCKATTR_DESTROY 3
Property changes on: trunk/share/man/man3/pthread_rwlockattr_destroy.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlockattr_getpshared.3
===================================================================
--- trunk/share/man/man3/pthread_rwlockattr_getpshared.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlockattr_getpshared.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlockattr_getpshared.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd March 22, 1999
.Dt PTHREAD_RWLOCKATTR_GETPSHARED 3
Property changes on: trunk/share/man/man3/pthread_rwlockattr_getpshared.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlockattr_init.3
===================================================================
--- trunk/share/man/man3/pthread_rwlockattr_init.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlockattr_init.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlockattr_init.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCKATTR_INIT 3
Property changes on: trunk/share/man/man3/pthread_rwlockattr_init.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_rwlockattr_setpshared.3
===================================================================
--- trunk/share/man/man3/pthread_rwlockattr_setpshared.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_rwlockattr_setpshared.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1998 Alex Nash
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_rwlockattr_setpshared.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd August 4, 1998
.Dt PTHREAD_RWLOCKATTR_SETPSHARED 3
Property changes on: trunk/share/man/man3/pthread_rwlockattr_setpshared.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_schedparam.3
===================================================================
--- trunk/share/man/man3/pthread_schedparam.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_schedparam.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_schedparam.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd October 16, 2006
.Dt PTHREAD_SCHEDPARAM 3
Property changes on: trunk/share/man/man3/pthread_schedparam.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_self.3
===================================================================
--- trunk/share/man/man3/pthread_self.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_self.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_self.3 218414 2011-02-07 21:26:46Z jkim $
.\"
.Dd April 4, 1996
.Dt PTHREAD_SELF 3
Property changes on: trunk/share/man/man3/pthread_self.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_set_name_np.3
===================================================================
--- trunk/share/man/man3/pthread_set_name_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_set_name_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_set_name_np.3 224047 2011-07-15 01:50:40Z emaste $
.\"
.Dd February 13, 2003
.Dt PTHREAD_SET_NAME_NP 3
Property changes on: trunk/share/man/man3/pthread_set_name_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_setspecific.3
===================================================================
--- trunk/share/man/man3/pthread_setspecific.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_setspecific.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1996 John Birrell <jb at cimlogic.com.au>.
.\" All rights reserved.
.\"
@@ -28,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_setspecific.3 283977 2015-06-04 04:50:52Z pkelsey $
.\"
.Dd April 4, 1996
.Dt PTHREAD_SETSPECIFIC 3
@@ -67,7 +68,10 @@
The
.Fn pthread_setspecific
function may be called from a thread-specific data destructor function,
-however this may result in lost storage or infinite loops.
+however this may result in lost storage or infinite loops if doing so
+causes non-NULL key values to remain after
+.Bq PTHREAD_DESTRUCTOR_ITERATIONS
+iterations of destructor calls have been made.
.Sh RETURN VALUES
If successful, the
.Fn pthread_setspecific
Property changes on: trunk/share/man/man3/pthread_setspecific.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_sigmask.3
===================================================================
--- trunk/share/man/man3/pthread_sigmask.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_sigmask.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (C) 2000 Jason Evans <jasone at FreeBSD.org>.
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_sigmask.3 218881 2011-02-20 09:52:29Z kib $
.Dd February 19, 2011
.Dt PTHREAD_SIGMASK 3
.Os
Property changes on: trunk/share/man/man3/pthread_sigmask.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_spin_init.3
===================================================================
--- trunk/share/man/man3/pthread_spin_init.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_spin_init.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_spin_init.3 302010 2016-06-18 13:42:33Z jilles $
.\"
.Dd January 22, 2004
.Dt PTHREAD_SPIN_INIT 3
@@ -129,10 +130,8 @@
because the
.Fa pshared
argument is ignored in
-.Lb libthr ,
-and in
-.Lb libkse
+.Lb libthr ;
if any value other than
-.Dv PTHREAD_PROCESSES_PRIVATE
+.Dv PTHREAD_PROCESS_PRIVATE
is specified, it returns
.Er EINVAL .
Property changes on: trunk/share/man/man3/pthread_spin_init.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_spin_lock.3
===================================================================
--- trunk/share/man/man3/pthread_spin_lock.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_spin_lock.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Michael Telahun Makonnen
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_spin_lock.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd January 22, 2004
.Dt PTHREAD_SPIN_LOCK 3
Property changes on: trunk/share/man/man3/pthread_spin_lock.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_suspend_all_np.3
===================================================================
--- trunk/share/man/man3/pthread_suspend_all_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_suspend_all_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,9 +23,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_suspend_all_np.3 299522 2016-05-12 06:55:42Z kib $
.\"
-.Dd February 13, 2003
+.Dd May 5, 2016
.Dt PTHREAD_SUSPEND_ALL_NP 3
.Os
.Sh NAME
@@ -44,6 +45,13 @@
the thread that called the
.Fn pthread_suspend_all_np
function.
+.Pp
+It is not safe for the caller of the
+.Fn pthread_suspend_all_np
+function to use any non-async signal safe functions, besides
+.Xr pthread_resume_all_np 3 ,
+until threads are resumed, unless measures are taken to ensure
+that all threads are suspended at safe points.
.Sh SEE ALSO
.Xr pthread_resume_all_np 3 ,
.Xr pthread_resume_np 3 ,
Property changes on: trunk/share/man/man3/pthread_suspend_all_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_suspend_np.3
===================================================================
--- trunk/share/man/man3/pthread_suspend_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_suspend_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,9 +23,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_suspend_np.3 302011 2016-06-18 13:44:10Z jilles $
.\"
-.Dd February 13, 2003
+.Dd May 5, 2016
.Dt PTHREAD_SUSPEND_NP 3
.Os
.Sh NAME
@@ -40,6 +41,13 @@
The
.Fn pthread_suspend_np
function, called on an active thread, causes it to suspend.
+.Pp
+It is not safe for the caller of the
+.Fn pthread_suspend_np
+function to use any non-async signal safe functions, except
+.Xr pthread_resume_np 3 ,
+until suspended thread is resumed, unless measures are taken to ensure
+that the thread is suspended at a safe point.
.Sh RETURN VALUES
If successful,
.Fn pthread_suspend_np
@@ -56,7 +64,7 @@
The value specified by the
.Fa tid
argument is invalid.
-.It Bq ESRC
+.It Bq Er ESRCH
No thread could be found corresponding to the thread ID specified by the
.Fa tid
argument.
Property changes on: trunk/share/man/man3/pthread_suspend_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_switch_add_np.3
===================================================================
--- trunk/share/man/man3/pthread_switch_add_np.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_switch_add_np.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2003 Alexey Zelkin <phantom at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -22,7 +23,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_switch_add_np.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd February 13, 2003
.Dt PTHREAD_SWITCH_ADD_NP 3
Property changes on: trunk/share/man/man3/pthread_switch_add_np.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_testcancel.3
===================================================================
--- trunk/share/man/man3/pthread_testcancel.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_testcancel.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,5 +1,6 @@
.\" $MidnightBSD$
-.Dd January 17, 1999
+.\" $FreeBSD: stable/10/share/man/man3/pthread_testcancel.3 281981 2015-04-25 08:14:08Z kib $
+.Dd April 16, 2015
.Dt PTHREAD_TESTCANCEL 3
.Os
.Sh NAME
@@ -100,38 +101,74 @@
.Ss Cancellation Points
Cancellation points will occur when a thread is executing the following
functions:
-.Fn close ,
-.Fn creat ,
-.Fn fcntl ,
-.Fn fsync ,
-.Fn msync ,
-.Fn nanosleep ,
-.Fn open ,
-.Fn pause ,
-.Fn pthread_cond_timedwait ,
-.Fn pthread_cond_wait ,
-.Fn pthread_join ,
-.Fn pthread_testcancel ,
-.Fn read ,
-.Fn sigwaitinfo ,
-.Fn sigsuspend ,
-.Fn sigwait ,
-.Fn sleep ,
-.Fn system ,
-.Fn tcdrain ,
-.Fn wait ,
-.Fn waitpid ,
-.Fn write .
-.Sh RETURN VALUES
-If successful, the
-.Fn pthread_setcancelstate
-and
-.Fn pthread_setcanceltype
-functions will return zero.
-Otherwise, an error number shall be returned to
-indicate the error.
-.Pp
+.Bl -tag -width "Fn pthread_cond_timedwait" -compact
+.It Fn accept
+.It Fn accept4
+.It Fn aio_suspend
+.It Fn connect
+.It Fn close
+.It Fn creat
+.It Fn fcntl
The
+.Fn fcntl
+function is a cancellation point if
+.Fa cmd
+is
+.Dv F_SETLKW .
+.It Fn fsync
+.It Fn kevent
+The
+.Fn kevent
+function is a cancellation point if it is potentially blocking,
+i.e. when the
+.Fa nevents
+argument is non-zero.
+.It Fn mq_receive
+.It Fn mq_send
+.It Fn mq_timedreceive
+.It Fn mq_timedsend
+.It Fn msync
+.It Fn nanosleep
+.It Fn open
+.It Fn openat
+.It Fn pause
+.It Fn poll
+.It Fn ppoll
+.It Fn pselect
+.It Fn pthread_cond_timedwait
+.It Fn pthread_cond_wait
+.It Fn pthread_join
+.It Fn pthread_testcancel
+.It Fn read
+.It Fn readv
+.It Fn recv
+.It Fn recvfrom
+.It Fn recvmsg
+.It Fn select
+.It Fn sem_timedwait
+.It Fn sem_wait
+.It Fn send
+.It Fn sendmsg
+.It Fn sendto
+.It Fn sigsuspend
+.It Fn sigtimedwait
+.It Fn sigwaitinfo
+.It Fn sigwait
+.It Fn sleep
+.It Fn system
+.It Fn tcdrain
+.It Fn usleep
+.It Fn wait
+.It Fn wait3
+.It Fn wait4
+.It Fn wait6
+.It Fn waitid
+.It Fn waitpid
+.It Fn write
+.It Fn writev
+.El
+.Sh NOTES
+The
.Fn pthread_setcancelstate
and
.Fn pthread_setcanceltype
@@ -172,6 +209,14 @@
.Pp
Finally, only functions that are cancel-safe may be called from a thread that
is asynchronously cancelable.
+.Sh RETURN VALUES
+If successful, the
+.Fn pthread_setcancelstate
+and
+.Fn pthread_setcanceltype
+functions will return zero.
+Otherwise, an error number shall be returned to
+indicate the error.
.Sh ERRORS
The function
.Fn pthread_setcancelstate
@@ -201,6 +246,8 @@
.Fn pthread_testcancel
function conforms to
.St -p1003.1-96 .
+The standard allows implementations to make many more functions
+cancellation points.
.Sh AUTHORS
This manual page was written by
.An David Leonard Aq d at openbsd.org
Property changes on: trunk/share/man/man3/pthread_testcancel.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/pthread_yield.3
===================================================================
--- trunk/share/man/man3/pthread_yield.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/pthread_yield.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,8 +1,9 @@
+.\" $MidnightBSD$
.\" $OpenBSD: pthread_yield.3,v 1.3 2004/01/25 14:48:32 jmc Exp $
.\"
.\" PUBLIC DOMAIN: No Rights Reserved. Marco S Hyman <marc at snafu.org>
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/pthread_yield.3 172880 2007-10-22 10:08:01Z ru $
.\"
.Dd September 18, 2006
.Dt PTHREAD_YIELD 3
Property changes on: trunk/share/man/man3/pthread_yield.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/queue.3
===================================================================
--- trunk/share/man/man3/queue.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/queue.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -30,16 +31,21 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)queue.3 8.2 (Berkeley) 1/24/94
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/queue.3 307534 2016-10-17 21:49:54Z mckusick $
.\"
-.Dd Sep 12, 2012
+.Dd August 15, 2016
.Dt QUEUE 3
.Os
.Sh NAME
+.Nm SLIST_CLASS_ENTRY ,
+.Nm SLIST_CLASS_HEAD ,
+.Nm SLIST_CONCAT ,
.Nm SLIST_EMPTY ,
.Nm SLIST_ENTRY ,
.Nm SLIST_FIRST ,
.Nm SLIST_FOREACH ,
+.Nm SLIST_FOREACH_FROM ,
+.Nm SLIST_FOREACH_FROM_SAFE ,
.Nm SLIST_FOREACH_SAFE ,
.Nm SLIST_HEAD ,
.Nm SLIST_HEAD_INITIALIZER ,
@@ -47,15 +53,19 @@
.Nm SLIST_INSERT_AFTER ,
.Nm SLIST_INSERT_HEAD ,
.Nm SLIST_NEXT ,
+.Nm SLIST_REMOVE ,
.Nm SLIST_REMOVE_AFTER ,
.Nm SLIST_REMOVE_HEAD ,
-.Nm SLIST_REMOVE ,
.Nm SLIST_SWAP ,
+.Nm STAILQ_CLASS_ENTRY ,
+.Nm STAILQ_CLASS_HEAD ,
.Nm STAILQ_CONCAT ,
.Nm STAILQ_EMPTY ,
.Nm STAILQ_ENTRY ,
.Nm STAILQ_FIRST ,
.Nm STAILQ_FOREACH ,
+.Nm STAILQ_FOREACH_FROM ,
+.Nm STAILQ_FOREACH_FROM_SAFE ,
.Nm STAILQ_FOREACH_SAFE ,
.Nm STAILQ_HEAD ,
.Nm STAILQ_HEAD_INITIALIZER ,
@@ -65,14 +75,19 @@
.Nm STAILQ_INSERT_TAIL ,
.Nm STAILQ_LAST ,
.Nm STAILQ_NEXT ,
+.Nm STAILQ_REMOVE ,
.Nm STAILQ_REMOVE_AFTER ,
.Nm STAILQ_REMOVE_HEAD ,
-.Nm STAILQ_REMOVE ,
.Nm STAILQ_SWAP ,
+.Nm LIST_CLASS_ENTRY ,
+.Nm LIST_CLASS_HEAD ,
+.Nm LIST_CONCAT ,
.Nm LIST_EMPTY ,
.Nm LIST_ENTRY ,
.Nm LIST_FIRST ,
.Nm LIST_FOREACH ,
+.Nm LIST_FOREACH_FROM ,
+.Nm LIST_FOREACH_FROM_SAFE ,
.Nm LIST_FOREACH_SAFE ,
.Nm LIST_HEAD ,
.Nm LIST_HEAD_INITIALIZER ,
@@ -84,14 +99,20 @@
.Nm LIST_PREV ,
.Nm LIST_REMOVE ,
.Nm LIST_SWAP ,
+.Nm TAILQ_CLASS_ENTRY ,
+.Nm TAILQ_CLASS_HEAD ,
.Nm TAILQ_CONCAT ,
.Nm TAILQ_EMPTY ,
.Nm TAILQ_ENTRY ,
.Nm TAILQ_FIRST ,
.Nm TAILQ_FOREACH ,
-.Nm TAILQ_FOREACH_SAFE ,
+.Nm TAILQ_FOREACH_FROM ,
+.Nm TAILQ_FOREACH_FROM_SAFE ,
.Nm TAILQ_FOREACH_REVERSE ,
+.Nm TAILQ_FOREACH_REVERSE_FROM ,
+.Nm TAILQ_FOREACH_REVERSE_FROM_SAFE ,
.Nm TAILQ_FOREACH_REVERSE_SAFE ,
+.Nm TAILQ_FOREACH_SAFE ,
.Nm TAILQ_HEAD ,
.Nm TAILQ_HEAD_INITIALIZER ,
.Nm TAILQ_INIT ,
@@ -109,10 +130,15 @@
.Sh SYNOPSIS
.In sys/queue.h
.\"
+.Fn SLIST_CLASS_ENTRY "CLASSTYPE"
+.Fn SLIST_CLASS_HEAD "HEADNAME" "CLASSTYPE"
+.Fn SLIST_CONCAT "SLIST_HEAD *head1" "SLIST_HEAD *head2" "TYPE" "SLIST_ENTRY NAME"
.Fn SLIST_EMPTY "SLIST_HEAD *head"
.Fn SLIST_ENTRY "TYPE"
.Fn SLIST_FIRST "SLIST_HEAD *head"
.Fn SLIST_FOREACH "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME"
+.Fn SLIST_FOREACH_FROM "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME"
+.Fn SLIST_FOREACH_FROM_SAFE "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME" "TYPE *temp_var"
.Fn SLIST_FOREACH_SAFE "TYPE *var" "SLIST_HEAD *head" "SLIST_ENTRY NAME" "TYPE *temp_var"
.Fn SLIST_HEAD "HEADNAME" "TYPE"
.Fn SLIST_HEAD_INITIALIZER "SLIST_HEAD head"
@@ -120,16 +146,20 @@
.Fn SLIST_INSERT_AFTER "TYPE *listelm" "TYPE *elm" "SLIST_ENTRY NAME"
.Fn SLIST_INSERT_HEAD "SLIST_HEAD *head" "TYPE *elm" "SLIST_ENTRY NAME"
.Fn SLIST_NEXT "TYPE *elm" "SLIST_ENTRY NAME"
+.Fn SLIST_REMOVE "SLIST_HEAD *head" "TYPE *elm" "TYPE" "SLIST_ENTRY NAME"
.Fn SLIST_REMOVE_AFTER "TYPE *elm" "SLIST_ENTRY NAME"
.Fn SLIST_REMOVE_HEAD "SLIST_HEAD *head" "SLIST_ENTRY NAME"
-.Fn SLIST_REMOVE "SLIST_HEAD *head" "TYPE *elm" "TYPE" "SLIST_ENTRY NAME"
.Fn SLIST_SWAP "SLIST_HEAD *head1" "SLIST_HEAD *head2" "SLIST_ENTRY NAME"
.\"
+.Fn STAILQ_CLASS_ENTRY "CLASSTYPE"
+.Fn STAILQ_CLASS_HEAD "HEADNAME" "CLASSTYPE"
.Fn STAILQ_CONCAT "STAILQ_HEAD *head1" "STAILQ_HEAD *head2"
.Fn STAILQ_EMPTY "STAILQ_HEAD *head"
.Fn STAILQ_ENTRY "TYPE"
.Fn STAILQ_FIRST "STAILQ_HEAD *head"
.Fn STAILQ_FOREACH "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME"
+.Fn STAILQ_FOREACH_FROM "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME"
+.Fn STAILQ_FOREACH_FROM_SAFE "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME" "TYPE *temp_var"
.Fn STAILQ_FOREACH_SAFE "TYPE *var" "STAILQ_HEAD *head" "STAILQ_ENTRY NAME" "TYPE *temp_var"
.Fn STAILQ_HEAD "HEADNAME" "TYPE"
.Fn STAILQ_HEAD_INITIALIZER "STAILQ_HEAD head"
@@ -137,17 +167,22 @@
.Fn STAILQ_INSERT_AFTER "STAILQ_HEAD *head" "TYPE *listelm" "TYPE *elm" "STAILQ_ENTRY NAME"
.Fn STAILQ_INSERT_HEAD "STAILQ_HEAD *head" "TYPE *elm" "STAILQ_ENTRY NAME"
.Fn STAILQ_INSERT_TAIL "STAILQ_HEAD *head" "TYPE *elm" "STAILQ_ENTRY NAME"
-.Fn STAILQ_LAST "STAILQ_HEAD *head" "TYPE" "STAILQ_ENTRY NAME"
+.Fn STAILQ_LAST "STAILQ_HEAD *head" "TYPE *elm" "STAILQ_ENTRY NAME"
.Fn STAILQ_NEXT "TYPE *elm" "STAILQ_ENTRY NAME"
+.Fn STAILQ_REMOVE "STAILQ_HEAD *head" "TYPE *elm" "TYPE" "STAILQ_ENTRY NAME"
.Fn STAILQ_REMOVE_AFTER "STAILQ_HEAD *head" "TYPE *elm" "STAILQ_ENTRY NAME"
.Fn STAILQ_REMOVE_HEAD "STAILQ_HEAD *head" "STAILQ_ENTRY NAME"
-.Fn STAILQ_REMOVE "STAILQ_HEAD *head" "TYPE *elm" "TYPE" "STAILQ_ENTRY NAME"
.Fn STAILQ_SWAP "STAILQ_HEAD *head1" "STAILQ_HEAD *head2" "STAILQ_ENTRY NAME"
.\"
+.Fn LIST_CLASS_ENTRY "CLASSTYPE"
+.Fn LIST_CLASS_HEAD "HEADNAME" "CLASSTYPE"
+.Fn LIST_CONCAT "LIST_HEAD *head1" "LIST_HEAD *head2" "TYPE" "LIST_ENTRY NAME"
.Fn LIST_EMPTY "LIST_HEAD *head"
.Fn LIST_ENTRY "TYPE"
.Fn LIST_FIRST "LIST_HEAD *head"
.Fn LIST_FOREACH "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME"
+.Fn LIST_FOREACH_FROM "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME"
+.Fn LIST_FOREACH_FROM_SAFE "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME" "TYPE *temp_var"
.Fn LIST_FOREACH_SAFE "TYPE *var" "LIST_HEAD *head" "LIST_ENTRY NAME" "TYPE *temp_var"
.Fn LIST_HEAD "HEADNAME" "TYPE"
.Fn LIST_HEAD_INITIALIZER "LIST_HEAD head"
@@ -160,14 +195,20 @@
.Fn LIST_REMOVE "TYPE *elm" "LIST_ENTRY NAME"
.Fn LIST_SWAP "LIST_HEAD *head1" "LIST_HEAD *head2" "TYPE" "LIST_ENTRY NAME"
.\"
+.Fn TAILQ_CLASS_ENTRY "CLASSTYPE"
+.Fn TAILQ_CLASS_HEAD "HEADNAME" "CLASSTYPE"
.Fn TAILQ_CONCAT "TAILQ_HEAD *head1" "TAILQ_HEAD *head2" "TAILQ_ENTRY NAME"
.Fn TAILQ_EMPTY "TAILQ_HEAD *head"
.Fn TAILQ_ENTRY "TYPE"
.Fn TAILQ_FIRST "TAILQ_HEAD *head"
.Fn TAILQ_FOREACH "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME"
-.Fn TAILQ_FOREACH_SAFE "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME" "TYPE *temp_var"
+.Fn TAILQ_FOREACH_FROM "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME"
+.Fn TAILQ_FOREACH_FROM_SAFE "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME" "TYPE *temp_var"
.Fn TAILQ_FOREACH_REVERSE "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME"
+.Fn TAILQ_FOREACH_REVERSE_FROM "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME"
+.Fn TAILQ_FOREACH_REVERSE_FROM_SAFE "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME" "TYPE *temp_var"
.Fn TAILQ_FOREACH_REVERSE_SAFE "TYPE *var" "TAILQ_HEAD *head" "HEADNAME" "TAILQ_ENTRY NAME" "TYPE *temp_var"
+.Fn TAILQ_FOREACH_SAFE "TYPE *var" "TAILQ_HEAD *head" "TAILQ_ENTRY NAME" "TYPE *temp_var"
.Fn TAILQ_HEAD "HEADNAME" "TYPE"
.Fn TAILQ_HEAD_INITIALIZER "TAILQ_HEAD head"
.Fn TAILQ_INIT "TAILQ_HEAD *head"
@@ -182,8 +223,18 @@
.Fn TAILQ_SWAP "TAILQ_HEAD *head1" "TAILQ_HEAD *head2" "TYPE" "TAILQ_ENTRY NAME"
.\"
.Sh DESCRIPTION
-These macros define and operate on four types of data structures:
-singly-linked lists, singly-linked tail queues, lists, and tail queues.
+These macros define and operate on four types of data structures which
+can be used in both C and C++ source code:
+.Bl -enum -compact -offset indent
+.It
+Lists
+.It
+Singly-linked lists
+.It
+Singly-linked tail queues
+.It
+Tail queues
+.El
All four structures support the following functionality:
.Bl -enum -compact -offset indent
.It
@@ -207,6 +258,8 @@
.Bl -enum -compact -offset indent
.It
O(n) removal of any entry in the list.
+.It
+O(n) concatenation of two lists.
.El
.Pp
Singly-linked tail queues add the following functionality:
@@ -254,6 +307,8 @@
They add the following functionality over the above:
.Bl -enum -compact -offset indent
.It
+O(n) concatenation of two lists.
+.It
They may be traversed backwards.
.El
However:
@@ -285,24 +340,39 @@
.Pp
In the macro definitions,
.Fa TYPE
-is the name of a user defined structure,
-that must contain a field of type
+is the name of a user defined structure.
+The structure must contain a field called
+.Fa NAME
+which is of type
.Li SLIST_ENTRY ,
.Li STAILQ_ENTRY ,
.Li LIST_ENTRY ,
or
-.Li TAILQ_ENTRY ,
-named
-.Fa NAME .
+.Li TAILQ_ENTRY .
+In the macro definitions,
+.Fa CLASSTYPE
+is the name of a user defined class.
+The class must contain a field called
+.Fa NAME
+which is of type
+.Li SLIST_CLASS_ENTRY ,
+.Li STAILQ_CLASS_ENTRY ,
+.Li LIST_CLASS_ENTRY ,
+or
+.Li TAILQ_CLASS_ENTRY .
The argument
.Fa HEADNAME
is the name of a user defined structure that must be declared
using the macros
.Li SLIST_HEAD ,
+.Li SLIST_CLASS_HEAD ,
.Li STAILQ_HEAD ,
+.Li STAILQ_CLASS_HEAD ,
.Li LIST_HEAD ,
+.Li LIST_CLASS_HEAD ,
+.Li TAILQ_HEAD ,
or
-.Li TAILQ_HEAD .
+.Li TAILQ_CLASS_HEAD .
See the examples below for further explanation of how these
macros are used.
.Sh SINGLY-LINKED LISTS
@@ -344,6 +414,19 @@
.Fa head .
.Pp
The macro
+.Nm SLIST_CONCAT
+concatenates the list headed by
+.Fa head2
+onto the end of the one headed by
+.Fa head1
+removing all entries from the former.
+Use of this macro should be avoided as it traverses the entirety of the
+.Fa head1
+list.
+A singly-linked tail queue should be used if this macro is needed in
+high-usage code paths or to operate on long lists.
+.Pp
+The macro
.Nm SLIST_EMPTY
evaluates to true if there are no elements in the list.
.Pp
@@ -365,6 +448,19 @@
.Fa var .
.Pp
The macro
+.Nm SLIST_FOREACH_FROM
+behaves identically to
+.Nm SLIST_FOREACH
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found SLIST element and begins the loop at
+.Fa var
+instead of the first element in the SLIST referenced by
+.Fa head .
+.Pp
+The macro
.Nm SLIST_FOREACH_SAFE
traverses the list referenced by
.Fa head
@@ -379,6 +475,19 @@
traversal.
.Pp
The macro
+.Nm SLIST_FOREACH_FROM_SAFE
+behaves identically to
+.Nm SLIST_FOREACH_SAFE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found SLIST element and begins the loop at
+.Fa var
+instead of the first element in the SLIST referenced by
+.Fa head .
+.Pp
+The macro
.Nm SLIST_INIT
initializes the list referenced by
.Fa head .
@@ -404,7 +513,8 @@
.Nm SLIST_REMOVE_AFTER
removes the element after
.Fa elm
-from the list. Unlike
+from the list.
+Unlike
.Fa SLIST_REMOVE ,
this macro does not traverse the entire list.
.Pp
@@ -424,6 +534,9 @@
removes the element
.Fa elm
from the list.
+Use of this macro should be avoided as it traverses the entire list.
+A doubly-linked list should be used if this macro is needed in
+high-usage code paths or to operate on long lists.
.Pp
The macro
.Nm SLIST_SWAP
@@ -544,6 +657,19 @@
.Fa var .
.Pp
The macro
+.Nm STAILQ_FOREACH_FROM
+behaves identically to
+.Nm STAILQ_FOREACH
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found STAILQ element and begins the loop at
+.Fa var
+instead of the first element in the STAILQ referenced by
+.Fa head .
+.Pp
+The macro
.Nm STAILQ_FOREACH_SAFE
traverses the tail queue referenced by
.Fa head
@@ -558,6 +684,19 @@
traversal.
.Pp
The macro
+.Nm STAILQ_FOREACH_FROM_SAFE
+behaves identically to
+.Nm STAILQ_FOREACH_SAFE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found STAILQ element and begins the loop at
+.Fa var
+instead of the first element in the STAILQ referenced by
+.Fa head .
+.Pp
+The macro
.Nm STAILQ_INIT
initializes the tail queue referenced by
.Fa head .
@@ -595,7 +734,8 @@
.Nm STAILQ_REMOVE_AFTER
removes the element after
.Fa elm
-from the tail queue. Unlike
+from the tail queue.
+Unlike
.Fa STAILQ_REMOVE ,
this macro does not traverse the entire tail queue.
.Pp
@@ -613,6 +753,9 @@
removes the element
.Fa elm
from the tail queue.
+Use of this macro should be avoided as it traverses the entire list.
+A doubly-linked tail queue should be used if this macro is needed in
+high-usage code paths or to operate on long tail queues.
.Pp
The macro
.Nm STAILQ_SWAP
@@ -712,6 +855,19 @@
.Fa head .
.Pp
The macro
+.Nm LIST_CONCAT
+concatenates the list headed by
+.Fa head2
+onto the end of the one headed by
+.Fa head1
+removing all entries from the former.
+Use of this macro should be avoided as it traverses the entirety of the
+.Fa head1
+list.
+A tail queue should be used if this macro is needed in
+high-usage code paths or to operate on long lists.
+.Pp
+The macro
.Nm LIST_EMPTY
evaluates to true if there are no elements in the list.
.Pp
@@ -733,6 +889,19 @@
.Fa var .
.Pp
The macro
+.Nm LIST_FOREACH_FROM
+behaves identically to
+.Nm LIST_FOREACH
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found LIST element and begins the loop at
+.Fa var
+instead of the first element in the LIST referenced by
+.Fa head .
+.Pp
+The macro
.Nm LIST_FOREACH_SAFE
traverses the list referenced by
.Fa head
@@ -746,6 +915,19 @@
traversal.
.Pp
The macro
+.Nm LIST_FOREACH_FROM_SAFE
+behaves identically to
+.Nm LIST_FOREACH_SAFE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found LIST element and begins the loop at
+.Fa var
+instead of the first element in the LIST referenced by
+.Fa head .
+.Pp
+The macro
.Nm LIST_INIT
initializes the list referenced by
.Fa head .
@@ -918,6 +1100,19 @@
if the loop completes normally, or if there were no elements.
.Pp
The macro
+.Nm TAILQ_FOREACH_FROM
+behaves identically to
+.Nm TAILQ_FOREACH
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found TAILQ element and begins the loop at
+.Fa var
+instead of the first element in the TAILQ referenced by
+.Fa head .
+.Pp
+The macro
.Nm TAILQ_FOREACH_REVERSE
traverses the tail queue referenced by
.Fa head
@@ -924,6 +1119,19 @@
in the reverse direction, assigning each element in turn to
.Fa var .
.Pp
+The macro
+.Nm TAILQ_FOREACH_REVERSE_FROM
+behaves identically to
+.Nm TAILQ_FOREACH_REVERSE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found TAILQ element and begins the reverse loop at
+.Fa var
+instead of the last element in the TAILQ referenced by
+.Fa head .
+.Pp
The macros
.Nm TAILQ_FOREACH_SAFE
and
@@ -943,6 +1151,32 @@
traversal.
.Pp
The macro
+.Nm TAILQ_FOREACH_FROM_SAFE
+behaves identically to
+.Nm TAILQ_FOREACH_SAFE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found TAILQ element and begins the loop at
+.Fa var
+instead of the first element in the TAILQ referenced by
+.Fa head .
+.Pp
+The macro
+.Nm TAILQ_FOREACH_REVERSE_FROM_SAFE
+behaves identically to
+.Nm TAILQ_FOREACH_REVERSE_SAFE
+when
+.Fa var
+is NULL, else it treats
+.Fa var
+as a previously found TAILQ element and begins the reverse loop at
+.Fa var
+instead of the last element in the TAILQ referenced by
+.Fa head .
+.Pp
+The macro
.Nm TAILQ_INIT
initializes the tail queue referenced by
.Fa head .
Property changes on: trunk/share/man/man3/queue.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/share/man/man3/sigevent.3
===================================================================
--- trunk/share/man/man3/sigevent.3 (rev 0)
+++ trunk/share/man/man3/sigevent.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -0,0 +1,128 @@
+.\" $MidnightBSD$
+.\" -*- nroff -*-
+.\"
+.\" Copyright (c) 2016 John H. Baldwin <jhb at FreeBSD.org>
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" $FreeBSD: stable/10/share/man/man3/sigevent.3 303325 2016-07-25 23:38:14Z jhb $
+.\"
+.Dd July 15, 2016
+.Dt SIGEVENT 3
+.Os
+.Sh NAME
+.Nm sigevent
+.Nd "asynchronous event notification"
+.Sh SYNOPSIS
+.In signal.h
+.Sh DESCRIPTION
+Some operations permit threads to request asychronous notification of events
+via a
+.Vt struct sigevent
+structure.
+This structure contains several fields that describe the requested notification:
+.Bl -column ".Vt void (*)(union sigval)" ".Va sigev_notify_kevent_flags"
+.It Sy Type Ta Sy Member Ta Sy Description
+.It Vt int Ta sigev_notify Ta notification method
+.It Vt int Ta sigev_signo Ta signal number
+.It Vt union sigval Ta sigev_value Ta signal value
+.It Vt int Ta sigev_notify_kqueue Ta
+.Xr kqueue 2
+file descriptor
+.It Vt unsigned short Ta sigev_notify_kevent_flags Ta kevent flags
+.It Vt lwpid_t Ta sigev_notify_thread_id Ta LWP ID
+.It Vt void (*)(union sigval) Ta sigev_notify_function Ta
+callback function pointer
+.It Vt pthread_attr_t * Ta sigev_notify_attributes Ta
+callback thread attributes
+.El
+.Pp
+The
+.Va sigev_notify
+field specifies the notification method used when the event triggers:
+.Bl -tag -width ".Dv SIGEV_THREAD_ID"
+.It Dv SIGEV_NONE
+No notification is sent.
+.It Dv SIGEV_SIGNAL
+The signal
+.Va sigev_signo
+is queued as a real-time signal to the calling process.
+The value stored in
+.Va sigev_value
+will be present in the
+.Va si_value
+of the
+.Vt siginfo_t
+structure of the queued signal.
+.It Dv SIGEV_THREAD
+The notification function in
+.Va sigev_notify_function
+is called in a separate thread context.
+The thread is created with the attributes specified in
+.Va *sigev_notify_attributes .
+The value stored in
+.Va sigev_value
+is passed as the sole argument to
+.Va sigev_notify_function .
+If
+.Va sigev_notify_attributes
+is
+.Dv NULL ,
+the thread is created with default attributes.
+.It Dv SIGEV_KEVENT
+A new kevent is posted to the kqueue
+.Va sigev_notify_kqueue .
+The
+.Va udata
+member of the kevent structure contains the value stored in
+.Va sigev_value .
+The meaning of other fields in the kevent are specific to the type of triggered
+event.
+.It Dv SIGEV_THREAD_ID
+The signal
+.Va sigev_signo
+is queued to the thread whose LWP ID is
+.Va sigev_notify_thread_id .
+The value stored in
+.Va sigev_value
+will be present in the
+.Va si_value
+of the
+.Vt siginfo_t
+structure of the queued signal.
+.El
+.Sh NOTES
+Note that programs wishing to use
+.Dv SIGEV_THREAD
+notifications must link against the
+.Lb librt .
+.Sh SEE ALSO
+.Xr aio_read 2 ,
+.Xr mq_notify 2 ,
+.Xr timer_create 2 ,
+.Xr siginfo 3
+.Sh STANDARDS
+The
+.Vt struct sigevent
+type conforms to
+.St -p1003.1-2004 .
Property changes on: trunk/share/man/man3/sigevent.3
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Modified: trunk/share/man/man3/siginfo.3
===================================================================
--- trunk/share/man/man3/siginfo.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/siginfo.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2005 David Xu <davidxu at FreeBSD.org>
.\" All rights reserved.
.\"
@@ -25,9 +26,9 @@
.\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/siginfo.3 303317 2016-07-25 19:18:42Z jhb $
.\"
-.Dd December 27, 2012
+.Dd July 14, 2016
.Dt SIGINFO 3
.Os
.Sh NAME
@@ -54,7 +55,7 @@
.Vt siginfo_t ,
which includes the following information:
.Bl -column ".Vt union signal" ".Va si_overrun"
-.It Sy "Type Member Description"
+.It Sy Type Ta Sy Member Ta Sy Description
.It Vt int Ta Va si_signo Ta
signal number
.It Vt int Ta Va si_errno Ta
@@ -107,7 +108,7 @@
that are signal-specific or non-signal-specific reasons why the signal was
generated:
.Bl -column ".Dv SIGPOLL" ".Dv CLD_CONTINUED"
-.It Sy "Signal Code Reason"
+.It Sy Signal Ta Sy Code Ta Sy Reason
.It Dv SIGILL Ta Dv ILL_ILLOPC Ta
illegal opcode
.It Ta Dv ILL_ILLOPN Ta
@@ -206,7 +207,7 @@
.Pp
In addition, the following signal-specific information is available:
.Bl -column ".Dv SIGPOLL" ".Dv CLD_CONTINUED"
-.It Sy "Signal Member Value"
+.It Sy Signal Ta Sy Member Ta Sy Value
.It Dv SIGILL Ta Va si_addr Ta
address of faulting instruction
.It Ta Va si_trapno Ta
@@ -240,8 +241,8 @@
.El
.Pp
Finally, the following code-specific information is available:
-.Bl -column ".Dv SI_QUEUE" ".Va si_overrun"
-.It Sy "Code Member Value"
+.Bl -column ".Dv SI_ASYNCIO" ".Va si_overrun"
+.It Sy Code Ta Sy Member Ta Sy Value
.It Dv SI_USER Ta Va si_pid Ta
the process ID that sent the signal
.It Ta Va si_uid Ta
Property changes on: trunk/share/man/man3/siginfo.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/stdarg.3
===================================================================
--- trunk/share/man/man3/stdarg.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/stdarg.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -34,7 +35,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)stdarg.3 8.1 (Berkeley) 6/5/93
-.\" $MidnightBSD: src/share/man/man3/stdarg.3,v 1.2 2006/10/31 19:20:02 laffer1 Exp $
+.\" $FreeBSD: stable/10/share/man/man3/stdarg.3 262190 2014-02-18 20:16:32Z jhb $
.\"
.Dd October 25, 2002
.Dt STDARG 3
@@ -59,7 +60,7 @@
.In stdarg.h
declares a type
.Pq Em va_list
-and defines three macros for stepping
+and defines four macros for stepping
through a list of arguments whose number and types are not known to
the called function.
.Pp
@@ -77,7 +78,8 @@
macro initializes
.Fa ap
for subsequent use by
-.Fn va_arg
+.Fn va_arg ,
+.Fn va_copy ,
and
.Fn va_end ,
and must be called first.
@@ -93,10 +95,6 @@
function or an array type.
.Pp
The
-.Fn va_start
-macro returns no value.
-.Pp
-The
.Fn va_arg
macro expands to an expression that has the type and value of the next
argument in the call.
@@ -105,7 +103,9 @@
is the
.Em va_list Fa ap
initialized by
-.Fn va_start .
+.Fn va_start
+or
+.Fn va_copy .
Each call to
.Fn va_arg
modifies
@@ -152,18 +152,28 @@
.Fa src .
.Pp
The
+.Fn va_end
+macro cleans up any state associated with the variable argument list
+.Fa ap .
+.Pp
+Each invocation of
+.Fn va_start
+or
.Fn va_copy
-macro returns no value.
-.Pp
+must be paired with a corresponding invocation of
+.Fn va_end
+in the same function.
+.Sh RETURN VALUES
The
-.Fn va_end
-macro handles a normal return from the function whose variable argument
-list was initialized by
-.Fn va_start .
+.Fn va_arg
+macro returns the value of the next argument.
.Pp
The
+.Fn va_start ,
+.Fn va_copy ,
+and
.Fn va_end
-macro returns no value.
+macros return no value.
.Sh EXAMPLES
The function
.Em foo
Property changes on: trunk/share/man/man3/stdarg.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/sysexits.3
===================================================================
--- trunk/share/man/man3/sysexits.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/sysexits.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\"
.\" Copyright (c) 1996 Joerg Wunsch
.\"
@@ -23,10 +24,10 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/sysexits.3 240506 2012-09-14 17:50:42Z eadler $
.\"
.\" "
-.Dd March 31, 1996
+.Dd January 21, 2010
.Dt SYSEXITS 3
.Os
.Sh NAME
Property changes on: trunk/share/man/man3/sysexits.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/tgmath.3
===================================================================
--- trunk/share/man/man3/tgmath.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/tgmath.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 2004 Stefan Farfeleder
.\" All rights reserved.
.\"
@@ -22,9 +23,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD$
+.\" $FreeBSD: stable/10/share/man/man3/tgmath.3 233992 2012-04-07 09:05:30Z joel $
.\"
-.Dd August 14, 2004
+.Dd January 4, 2012
.Dt TGMATH 3
.Os
.Sh NAME
@@ -116,8 +117,8 @@
.It Fn erfc Ta Fn hypot Ta Fn lrint Ta Fn scalbln
.It Fn exp2 Ta Fn ilogb Ta Fn lround Ta Fn tgamma
.It Fn expm1 Ta Fn ldexp Ta Fn nextbyint Ta Fn trunc
-.It Fn fdim Ta Fn lgamma Ta Fn nextafter
-.It Fn floor Ta Fn llrint Ta Fn nexttoward
+.It Fn fdim Ta Fn lgamma Ta Fn nextafter Ta \&
+.It Fn floor Ta Fn llrint Ta Fn nexttoward Ta \&
.El
.Pp
The following macros always expand to a complex function:
@@ -139,15 +140,24 @@
.In tgmath.h
first appeared in
.Fx 5.3 .
-.Sh BUGS
-The header
+.Sh COMPILER SUPPORT
+Before
+.St -isoC-2011 ,
+the header
.In tgmath.h
-cannot be implemented with strictly conforming C code and needs
+could not be implemented with strictly conforming C code and needed
special compiler support.
-The current implementation only works for GCC.
-.Pp
+As of
+.St -isoC-2011 ,
+this header file can be implemented using the
+.Fn _Generic
+language keyword.
+In addition to compilers that support this keyword, this header file
+works with GCC.
+.Sh BUGS
Many of the functions mentioned here are not prototyped in
.In math.h
or
.In complex.h
as they are not yet implemented.
+This prevents the corresponding type-generic macro from working at all.
Property changes on: trunk/share/man/man3/tgmath.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/timeradd.3
===================================================================
--- trunk/share/man/man3/timeradd.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/timeradd.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" Copyright (c) 1999 Kelly Yancey <kbyanc at posi.net>
.\" All rights reserved.
.\"
@@ -25,7 +26,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $MidnightBSD: src/share/man/man3/timeradd.3,v 1.2 2006/10/31 19:20:02 laffer1 Exp $
+.\" $FreeBSD: stable/10/share/man/man3/timeradd.3 119893 2003-09-08 19:57:22Z ru $
.\"
.Dd August 11, 1999
.Dt TIMERADD 3
Property changes on: trunk/share/man/man3/timeradd.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/share/man/man3/tree.3
===================================================================
--- trunk/share/man/man3/tree.3 2018-06-03 18:40:29 UTC (rev 10295)
+++ trunk/share/man/man3/tree.3 2018-06-03 18:41:52 UTC (rev 10296)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
.\" $OpenBSD: tree.3,v 1.7 2002/06/12 01:09:20 provos Exp $
.\"
.\" Copyright 2002 Niels Provos <provos at citi.umich.edu>
@@ -28,10 +29,9 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $FreeBSD: src/share/man/man3/tree.3,v 1.6 2006/01/19 07:20:20 jasone Exp $
-.\" $MidnightBSD: src/share/man/man3/tree.3,v 1.3 2008/11/11 23:09:30 laffer1 Exp $
+.\" $FreeBSD: stable/10/share/man/man3/tree.3 278344 2015-02-07 08:14:20Z kib $
.\"
-.Dd November 11, 2008
+.Dd January 24, 2015
.Dt TREE 3
.Os
.Sh NAME
@@ -54,8 +54,26 @@
.Nm SPLAY_REMOVE ,
.Nm RB_PROTOTYPE ,
.Nm RB_PROTOTYPE_STATIC ,
+.Nm RB_PROTOTYPE_INSERT ,
+.Nm RB_PROTOTYPE_INSERT_COLOR ,
+.Nm RB_PROTOTYPE_REMOVE ,
+.Nm RB_PROTOTYPE_REMOVE_COLOR ,
+.Nm RB_PROTOTYPE_FIND ,
+.Nm RB_PROTOTYPE_NFIND ,
+.Nm RB_PROTOTYPE_NEXT ,
+.Nm RB_PROTOTYPE_PREV ,
+.Nm RB_PROTOTYPE_MINMAX ,
.Nm RB_GENERATE ,
.Nm RB_GENERATE_STATIC ,
+.Nm RB_GENERATE_INSERT ,
+.Nm RB_GENERATE_INSERT_COLOR ,
+.Nm RB_GENERATE_REMOVE ,
+.Nm RB_GENERATE_REMOVE_COLOR ,
+.Nm RB_GENERATE_FIND ,
+.Nm RB_GENERATE_NFIND ,
+.Nm RB_GENERATE_NEXT ,
+.Nm RB_GENERATE_PREV ,
+.Nm RB_GENERATE_MINMAX ,
.Nm RB_ENTRY ,
.Nm RB_HEAD ,
.Nm RB_INITIALIZER ,
@@ -71,7 +89,9 @@
.Nm RB_RIGHT ,
.Nm RB_PARENT ,
.Nm RB_FOREACH ,
+.Nm RB_FOREACH_SAFE ,
.Nm RB_FOREACH_REVERSE ,
+.Nm RB_FOREACH_REVERSE_SAFE ,
.Nm RB_INIT ,
.Nm RB_INSERT ,
.Nm RB_REMOVE
@@ -108,8 +128,26 @@
.Fn SPLAY_REMOVE NAME "SPLAY_HEAD *head" "struct TYPE *elm"
.Fn RB_PROTOTYPE NAME TYPE FIELD CMP
.Fn RB_PROTOTYPE_STATIC NAME TYPE FIELD CMP
+.Fn RB_PROTOTYPE_INSERT NAME TYPE ATTR
+.Fn RB_PROTOTYPE_INSERT_COLOR NAME TYPE ATTR
+.Fn RB_PROTOTYPE_REMOVE NAME TYPE ATTR
+.Fn RB_PROTOTYPE_REMOVE_COLOR NAME TYPE ATTR
+.Fn RB_PROTOTYPE_FIND NAME TYPE ATTR
+.Fn RB_PROTOTYPE_NFIND NAME TYPE ATTR
+.Fn RB_PROTOTYPE_NEXT NAME TYPE ATTR
+.Fn RB_PROTOTYPE_PREV NAME TYPE ATTR
+.Fn RB_PROTOTYPE_MINMAX NAME TYPE ATTR
.Fn RB_GENERATE NAME TYPE FIELD CMP
.Fn RB_GENERATE_STATIC NAME TYPE FIELD CMP
+.Fn RB_GENERATE_INSERT NAME TYPE FIELD CMP ATTR
+.Fn RB_GENERATE_INSERT_COLOR NAME TYPE FIELD ATTR
+.Fn RB_GENERATE_REMOVE NAME TYPE FIELD ATTR
+.Fn RB_GENERATE_REMOVE_COLOR NAME TYPE FIELD ATTR
+.Fn RB_GENERATE_FIND NAME TYPE FIELD CMP ATTR
+.Fn RB_GENERATE_NFIND NAME TYPE FIELD CMP ATTR
+.Fn RB_GENERATE_NEXT NAME TYPE FIELD ATTR
+.Fn RB_GENERATE_PREV NAME TYPE FIELD ATTR
+.Fn RB_GENERATE_MINMAX NAME TYPE FIELD ATTR
.Fn RB_ENTRY TYPE
.Fn RB_HEAD HEADNAME TYPE
.Fn RB_INITIALIZER "RB_HEAD *head"
@@ -136,7 +174,9 @@
.Ft "struct TYPE *"
.Fn RB_PARENT "struct TYPE *elm" "RB_ENTRY NAME"
.Fn RB_FOREACH VARNAME NAME "RB_HEAD *head"
+.Fn RB_FOREACH_SAFE "VARNAME" "NAME" "RB_HEAD *head" "TEMP_VARNAME"
.Fn RB_FOREACH_REVERSE VARNAME NAME "RB_HEAD *head"
+.Fn RB_FOREACH_REVERSE_SAFE "VARNAME" "NAME" "RB_HEAD *head" "TEMP_VARNAME"
.Ft void
.Fn RB_INIT "RB_HEAD *head"
.Ft "struct TYPE *"
@@ -370,6 +410,27 @@
.Fa FIELD
argument is the name of the element defined by
.Fn RB_ENTRY .
+Individual prototypes can be declared with
+.Fn RB_PROTOTYPE_INSERT ,
+.Fn RB_PROTOTYPE_INSERT_COLOR ,
+.Fn RB_PROTOTYPE_REMOVE ,
+.Fn RB_PROTOTYPE_REMOVE_COLOR ,
+.Fn RB_PROTOTYPE_FIND ,
+.Fn RB_PROTOTYPE_NFIND ,
+.Fn RB_PROTOTYPE_NEXT ,
+.Fn RB_PROTOTYPE_PREV ,
+and
+.Fn RB_PROTOTYPE_MINMAX
+in case not all functions are required. The individual prototype macros expect
+.Fa NAME ,
+.Fa TYPE ,
+and
+.Fa ATTR
+arguments. The
+.Fa ATTR
+argument must be empty for global functions or
+.Fa static
+for static functions.
.Pp
The function bodies are generated with the
.Fn RB_GENERATE
@@ -381,6 +442,18 @@
and
.Fn RB_PROTOTYPE_STATIC
macros, but should be used only once.
+As an alternative individual function bodies are generated with the
+.Fn RB_GENERATE_INSERT ,
+.Fn RB_GENERATE_INSERT_COLOR ,
+.Fn RB_GENERATE_REMOVE ,
+.Fn RB_GENERATE_REMOVE_COLOR ,
+.Fn RB_GENERATE_FIND ,
+.Fn RB_GENERATE_NFIND ,
+.Fn RB_GENERATE_NEXT ,
+.Fn RB_GENERATE_PREV ,
+and
+.Fn RB_GENERATE_MINMAX
+macros.
.Pp
Finally,
the
@@ -455,6 +528,18 @@
.Fn RB_FOREACH np NAME head
.Ed
.Pp
+The macros
+.Fn RB_FOREACH_SAFE
+and
+.Fn RB_FOREACH_REVERSE_SAFE
+traverse the tree referenced by head
+in a forward or reverse direction respectively,
+assigning each element in turn to np.
+However, unlike their unsafe counterparts,
+they permit both the removal of np
+as well as freeing it from within the loop safely
+without interfering with the traversal.
+.Pp
The
.Fn RB_EMPTY
macro should be used to check whether a red-black tree is empty.
Property changes on: trunk/share/man/man3/tree.3
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list