This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/15790] pthread_mutexattr_gettype doesn't store the value of the 'type' attribute into *type
- From: "aponomarenko at rosalab dot ru" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 26 Jul 2013 11:12:59 +0000
- Subject: [Bug libc/15790] pthread_mutexattr_gettype doesn't store the value of the 'type' attribute into *type
- Auto-submitted: auto-generated
- References: <bug-15790-131 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15790
--- Comment #1 from Andrey Ponomarenko <aponomarenko at rosalab dot ru> ---
Sorry, the correct example:
#include <stdio.h>
#include <pthread.h>
int main()
{
pthread_mutexattr_t attr;
pthread_mutexattr_init(&attr);
int res1 = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_NORMAL);
int type = 0;
int res2 = pthread_mutexattr_gettype(&attr, &type);
printf("%d, %d, %d\n", res1, res2, type);
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.