From pkocmid@atlas.cz  Fri Feb 25 12:59:02 2000
Received: from relay.atlas.cz (relay.atlas.cz [195.119.187.170])
	by swi.psy.uva.nl (8.9.3/8.9.3) with ESMTP id MAA14217
	for <prolog@swi.psy.uva.nl>; Fri, 25 Feb 2000 12:59:02 +0100 (MET)
Received: from raxas ([212.20.101.240]) by relay.atlas.cz  with Microsoft SMTPSVC(5.5.1877.357.35);
	 Fri, 25 Feb 2000 13:02:41 +0100
From: "Petr Kocmid" <pkocmid@atlas.cz>
To: "swi prolog mailing list" <prolog@swi.psy.uva.nl>
Subject: libpl.dll on win32
Date: Fri, 25 Feb 2000 12:57:56 +0100
Message-ID: <LOBBKIFBPIKMGOCJCAKDGEJMDEAA.pkocmid@atlas.cz>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-2"
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by swi.psy.uva.nl id MAA14217

Hi,

Investigating libpl.dll architecture in Dependency
Walker, it shows libpl dynamic library imports 
winsock.

wsock32.dll:
ordinal 18 select
ordinal 151 __WSDAFDIsSet

I was curious why. Closer look into source shows 
winsock select() is used 3 times at:

pl-file.c(1038)
pl-fli.c(2580)
pl-os.c(2652)

At all those places, it looks like the only purpose of 
select() is.. timing only. Seems to me as an overkill.

Straightforward way to get rid of it is to #undef
HAVE_SELECT in config/win32.h. I did that and plwin
is working ok, having no more wsock32.dll binding in 
libpl.dll.

Am I missed something, or does it make sense to implement 
another timing method?

What about other platforms?

Sorry for my inquisitive nature ;-).

Petr Kocmid
pkocmid@atlas.cz

