TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Peter Fitzsimmons
from: Darin McBride
date: 1996-05-28 22:06:20
subject: Semaphores (16 & 32)

PF> Not with the 32bit calls.  I wrote that piece of squish 
 PF> code, when everything was 16bit,  and I guess Scott 
 PF> left it that way to be backwards compatible.

Yup.  I wish he'd have gone to 32-bit, though.  :-)

 PF>  [Tip: little known squish feature: the name of the sem can be
 PF>        specified with the BBSSEM env var,  if you want to have
 PF>        two (or more) copies of squish running that do not share
 PF>        any files]

I found that out... by asking Scott.  ;-)  If I find a way of calling the
16-bit semaphore functions from 32-bit code, I'll have to check the
environment variable myself.  :-)

 PF> something called something like smserial.dll.

Actually, while I haven't tried it, I have the prototype for smserial.dll
(from Scott), but I'm still trying to go for calls from 32-bit.

 PF> If you try to compile it for 32bits,  you might have to 
 PF> change the sem calls to "Dos16CreateSem", etc,  and 

Hmmm... from a scan of all 1MB of the \WATCOM\h\os2 directory, there is no
'Dos16' calls.  :-/  Even scanning DOSCALL1.DLL, there is no DOS16 there
either.

Thanks,


--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.