From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32214 invoked by alias); 3 Mar 2009 12:07:41 -0000 Received: (qmail 32204 invoked by uid 22791); 3 Mar 2009 12:07:41 -0000 X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=BAYES_05,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from ey-out-1920.google.com (HELO ey-out-1920.google.com) (74.125.78.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Mar 2009 12:07:33 +0000 Received: by ey-out-1920.google.com with SMTP id 4so471539eyg.24 for ; Tue, 03 Mar 2009 04:07:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.210.52.15 with SMTP id z15mr4121273ebz.21.1236082050506; Tue, 03 Mar 2009 04:07:30 -0800 (PST) Date: Tue, 03 Mar 2009 12:07:00 -0000 Message-ID: <91535b350903030407t54204a7cnb500baaa055d296d@mail.gmail.com> Subject: const missing? From: "stephan o'farrill" To: pthreads-win32@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00008.txt.bz2 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.