🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2487

DosDevIOCtl call in OS/2

#2487
From: Dan Nater
Date: Tue, 26 Mar 1991 21:36
34 lines
1643 bytes
I've set up a program that executes a child process and grabs
its STDIN and STDOUT by using anonymous pipes.  I need to have
NON-BLOCKING reads to make this program usable.  When I try to
use the DosDevIOCtl call to make reads non-blocking I do the
following:


	DosDevIOCtl(&mydcbstruct, 0L, 0x0073, 0x0001, mypipeHandle);

         /* set the appropriate bits in the retreived mydcbstruct */

	DosDevIOCtl(0L, mydcbstruct, 0x0053, 0x0001, mypipeHandle);


Unfortunately, these DosDevIOCtl calls return an error of 1.  Which
implies an INVALID FUNCTION (the function is specified by 0x0073 and
0x0053 respectively).  These values are right out of the OS2 documentation.

I'm using OS/2  version 1.2.  Does anyone know why this is not working?
Are the values listed in the OS/2  manuals incorrect?  Did something 
change to make this call invalid on version 1.2?   Is there an alternative
way to get non-blocking reads? 

Any suggestions would be appreciated.

		Thanks, 
	
		Mike Frumkin (mfrumkin@verity.com)

--
*****************************************
What the fuck is going on here???
*****************************************
Technical Details
Message-ID: <1991Mar26.213619.28028@verity.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ads.com!killer!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!ads.com!killer!news
From: dnater@verity.com (Dan Nater)
Subject: DosDevIOCtl call in OS/2
Reply-To:  (mfrumkin@verity.com)
Organization: Verity
Date: Tue, 26 Mar 91 21:36:19 GMT
Message-ID: <1991Mar26.213619.28028@verity.com>
Keywords: pipes, redirection, nonblocking reads
Sender: usenet@verity.com (USENET News)