From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13486 invoked by alias); 19 Oct 2009 15:10:06 -0000 Received: (qmail 13477 invoked by uid 22791); 19 Oct 2009 15:10:05 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-qy0-f200.google.com (HELO mail-qy0-f200.google.com) (209.85.221.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Oct 2009 15:10:01 +0000 Received: by qyk38 with SMTP id 38so3294419qyk.25 for ; Mon, 19 Oct 2009 08:10:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.3.74 with SMTP id 10mr2628473qam.302.1255964998015; Mon, 19 Oct 2009 08:09:58 -0700 (PDT) Date: Mon, 19 Oct 2009 15:10:00 -0000 Message-ID: Subject: Winsock dependency. From: Ramiro Polla To: pthreads-win32@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00053.txt.bz2 Hi, A dependency to Winsock was introduced to pthreads-win32 in this commit: 2001-08-23 Phil Frisbie, Jr. * tsd.c (pthread_getspecific): Preserve the last winsock error [from WSAGetLastError()]. There was an unanswered reply that questions whether this was really necessary: http://sourceware.org/ml/pthreads-win32/2001/msg00122.html Does anyone have a reproducible testcase that triggers the error this commit was supposed to fix? I've tested on win98, xp and vista and I can't get GetTlsValue() to touch WSA errors. The source code in Wine also only uses SetLastError(), and not WSASetLastError(). If I understood correctly, this should only be a problem if the user does: some_wsock_function() some_pthread_function() WSAGetLastError() In the case where people check for errors right after calling a wsock function this shouldn't be a problem, right? Ramiro Polla