This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/15790] pthread_mutexattr_gettype doesn't store the value of the 'type' attribute into *type


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]