From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27883 invoked by alias); 26 Jul 2013 11:13:03 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 27784 invoked by uid 48); 26 Jul 2013 11:12:59 -0000 From: "aponomarenko at rosalab dot ru" To: glibc-bugs@sourceware.org Subject: [Bug libc/15790] pthread_mutexattr_gettype doesn't store the value of the 'type' attribute into *type Date: Fri, 26 Jul 2013 11:13:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.18 X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: aponomarenko at rosalab dot ru X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00157.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15790 --- Comment #1 from Andrey Ponomarenko --- Sorry, the correct example: #include #include 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.