File: pthread_mutexattr_setkind_np.3

package info (click to toggle)
manpages 6.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,476 kB
  • sloc: sh: 576; python: 222; perl: 191; makefile: 29; lisp: 22
file content (59 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.\" Copyright, the authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH pthread_mutexattr_setkind_np 3 2025-05-17 "Linux man-pages (unreleased)"
.
.
.SH NAME
pthread_mutexattr_setkind_np,
pthread_mutexattr_getkind_np
\-
deprecated mutex creation attributes
.
.
.SH SYNOPSIS
.nf
.B #include <pthread.h>
.P
.BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind );
.BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr ,
.BI "                                 int *" kind );
.fi
.
.
.SH DESCRIPTION
These functions are deprecated,
use
.BR pthread_mutexattr_settype (3)
and
.BR pthread_mutexattr_gettype (3)
instead.
.
.
.SH "RETURN VALUE"
.BR pthread_mutexattr_getkind_np ()
always returns 0.
.P
.BR pthread_mutexattr_setkind_np ()
returns 0 on success and a non-zero error code on error.
.
.
.SH ERRORS
On error,
.BR pthread_mutexattr_setkind_np ()
returns the following error code:
.TP
.B EINVAL
.I kind
is neither
.B PTHREAD_MUTEX_FAST_NP
nor
.B PTHREAD_MUTEX_RECURSIVE_NP
nor
.BR PTHREAD_MUTEX_ERRORCHECK_NP .
.
.
.SH "SEE ALSO"
.BR pthread_mutexattr_settype (3),
.BR pthread_mutexattr_gettype (3).