From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18358 invoked by alias); 3 Mar 2009 21:46:37 -0000 Received: (qmail 18344 invoked by uid 22791); 3 Mar 2009 21:46:35 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from bender.grapevine.net.au (HELO bender.grapevine.net.au) (203.129.32.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 21:46:25 +0000 Received: from localhost (localhost [127.0.0.1]) by bender.grapevine.net.au (Postfix) with ESMTP id 7C0E5C2204; Wed, 4 Mar 2009 08:46:22 +1100 (EST) Received: from bender.grapevine.net.au ([127.0.0.1]) by localhost (bender.grapevine.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XCbfzu7jhWkt; Wed, 4 Mar 2009 08:46:22 +1100 (EST) Received: from localhost.localdomain (ppp-138.60.129.203.grapevine.net.au [203.129.60.138]) by bender.grapevine.net.au (Postfix) with ESMTP id 2FD40C21E9; Wed, 4 Mar 2009 08:46:22 +1100 (EST) Message-ID: <49ADA52D.8090007@homemail.com.au> Date: Tue, 03 Mar 2009 21:46:00 -0000 From: Ross Johnson User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: stephan o'farrill CC: pthreads-win32@sourceware.org Subject: Re: const missing? References: <91535b350903030407t54204a7cnb500baaa055d296d@mail.gmail.com> In-Reply-To: <91535b350903030407t54204a7cnb500baaa055d296d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2009/txt/msg00009.txt.bz2 I've applied Stephan's change to the following routines in CVS (currently untested):- pthread_attr_getschedpolicy() pthread_attr_getinheritsched() pthread_mutexattr_gettype() Thanks Stephan. stephan o'farrill wrote: > Hi All, > > I just subscribed to the pthreads-win32 mailing list since I am > developing a pthread C++ class (in a very early stage). To be able to > support pthreads-win32 I need that the declarations are following the > posix standard. > Usually this is does not make a big difference, but for my purpose it > is important: > pthreads-win32s declaration of > > PTW32_DLLPORT int PTW32_CDECL pthread_mutexattr_gettype > (pthread_mutexattr_t * attr, int *kind); > > should be re-defined as: > > PTW32_DLLPORT int PTW32_CDECL pthread_mutexattr_gettype (const > pthread_mutexattr_t * attr, int *kind); > > according to the posix standard: > int pthread_mutexattr_gettype(const pthread_mutexattr_t *restrict > attr, int *restrict type); > > I changed it successfully in my test copy of pthreads-win32. > I could apply the change by myself to CVS if write access could be granted. > > All the best, > and thanks for the good work, > Hagen. >