]>
Commit | Line | Data |
---|---|---|
0ecb606c | 1 | /* Copyright (C) 2005 Free Software Foundation, Inc. |
b15cb495 | 2 | This file is part of the GNU C Library. |
0ecb606c | 3 | Contributed by Ulrich Drepper <drepper@redhat.com>, 2005. |
b15cb495 UD |
4 | |
5 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
b15cb495 UD |
9 | |
10 | The GNU C Library is distributed in the hope that it will be useful, | |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
b15cb495 | 14 | |
41bdb6e2 AJ |
15 | You should have received a copy of the GNU Lesser General Public |
16 | License along with the GNU C Library; if not, write to the Free | |
17 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA | |
18 | 02111-1307 USA. */ | |
b15cb495 | 19 | |
0ecb606c JJ |
20 | #include <pthreadP.h> |
21 | ||
b15cb495 UD |
22 | |
23 | int | |
0ecb606c JJ |
24 | pthread_mutexattr_getrobust_np (attr, robustness) |
25 | const pthread_mutexattr_t *attr; | |
26 | int *robustness; | |
b15cb495 | 27 | { |
0ecb606c | 28 | const struct pthread_mutexattr *iattr; |
b15cb495 | 29 | |
0ecb606c | 30 | iattr = (const struct pthread_mutexattr *) attr; |
b15cb495 | 31 | |
0ecb606c JJ |
32 | *robustness = ((iattr->mutexkind & PTHREAD_MUTEXATTR_FLAG_ROBUST) != 0 |
33 | ? PTHREAD_MUTEX_ROBUST_NP : PTHREAD_MUTEX_STALLED_NP); | |
b15cb495 | 34 | |
b15cb495 UD |
35 | return 0; |
36 | } |