| 1 |
.\" Copyright, the authors of the Linux man-pages project |
| 2 |
.\" |
| 3 |
.\" SPDX-License-Identifier: Linux-man-pages-copyleft |
| 4 |
.\" |
| 5 |
.TH pthread_mutexattr_setkind_np 3 2025-05-17 "Linux man-pages 6.18" |
| 6 |
. |
| 7 |
. |
| 8 |
.SH NAME |
| 9 |
pthread_mutexattr_setkind_np, |
| 10 |
pthread_mutexattr_getkind_np |
| 11 |
\- |
| 12 |
deprecated mutex creation attributes |
| 13 |
. |
| 14 |
. |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.B #include <pthread.h> |
| 18 |
.P |
| 19 |
.BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind ); |
| 20 |
.BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr , |
| 21 |
.BI " int *" kind ); |
| 22 |
.fi |
| 23 |
. |
| 24 |
. |
| 25 |
.SH DESCRIPTION |
| 26 |
These functions are deprecated, |
| 27 |
use |
| 28 |
.BR pthread_mutexattr_settype (3) |
| 29 |
and |
| 30 |
.BR pthread_mutexattr_gettype (3) |
| 31 |
instead. |
| 32 |
. |
| 33 |
. |
| 34 |
.SH "RETURN VALUE" |
| 35 |
.BR pthread_mutexattr_getkind_np () |
| 36 |
always returns 0. |
| 37 |
.P |
| 38 |
.BR pthread_mutexattr_setkind_np () |
| 39 |
returns 0 on success and a non-zero error code on error. |
| 40 |
. |
| 41 |
. |
| 42 |
.SH ERRORS |
| 43 |
On error, |
| 44 |
.BR pthread_mutexattr_setkind_np () |
| 45 |
returns the following error code: |
| 46 |
.TP |
| 47 |
.B EINVAL |
| 48 |
.I kind |
| 49 |
is neither |
| 50 |
.B PTHREAD_MUTEX_FAST_NP |
| 51 |
nor |
| 52 |
.B PTHREAD_MUTEX_RECURSIVE_NP |
| 53 |
nor |
| 54 |
.BR PTHREAD_MUTEX_ERRORCHECK_NP . |
| 55 |
. |
| 56 |
. |
| 57 |
.SH "SEE ALSO" |
| 58 |
.BR pthread_mutexattr_settype (3), |
| 59 |
.BR pthread_mutexattr_gettype (3). |