Debian Codegraph @

upstream/debian-trixie/man3/pthread_mutexattr_setkind_np.3

raw
1 .\" Copyright, Xavier Leroy <[email protected]>
2 .\" Copyright 2023, Alejandro Colomar <[email protected]>
3 .\"
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
5 .\"
6 .TH pthread_mutexattr_setkind_np 3 2024-05-19 "Linux man-pages 6.9.1"
7 .
8 .
9 .SH NAME
10 pthread_mutexattr_setkind_np,
11 pthread_mutexattr_getkind_np
12 \-
13 deprecated mutex creation attributes
14 .
15 .
16 .SH SYNOPSIS
17 .nf
18 .B #include <pthread.h>
19 .P
20 .BI "int pthread_mutexattr_setkind_np(pthread_mutexattr_t *" attr ", int " kind );
21 .BI "int pthread_mutexattr_getkind_np(const pthread_mutexattr_t *" attr ,
22 .BI " int *" kind );
23 .fi
24 .
25 .
26 .SH DESCRIPTION
27 These functions are deprecated,
28 use \fBpthread_mutexattr_settype\fP(3)
29 and \fBpthread_mutexattr_gettype\fP(3)
30 instead.
31 .
32 .
33 .SH "RETURN VALUE"
34 \fBpthread_mutexattr_getkind_np\fP always returns 0.
35 .P
36 \fBpthread_mutexattr_setkind_np\fP
37 returns 0 on success and a non-zero error code on error.
38 .
39 .
40 .SH ERRORS
41 On error,
42 \fBpthread_mutexattr_setkind_np\fP returns the following error code:
43 .TP
44 \fBEINVAL\fP
45 \fIkind\fP is neither
46 \fBPTHREAD_MUTEX_FAST_NP\fP
47 nor
48 \fBPTHREAD_MUTEX_RECURSIVE_NP\fP
49 nor
50 \fBPTHREAD_MUTEX_ERRORCHECK_NP\fP.
51 .
52 .
53 .SH "SEE ALSO"
54 \fBpthread_mutexattr_settype\fP(3),
55 \fBpthread_mutexattr_gettype\fP(3).