Article View: comp.sys.amiga.tech
Article #10242Re: Proposal for new DOS calls
From: Greg M. Garner
Date: Wed, 09 Nov 1988 05:10
Date: Wed, 09 Nov 1988 05:10
31 lines
1416 bytes
1416 bytes
Matt, I agree with your proposed dos packets, but I would also like
to see a simple way to implement the one that checks for characters
to be read (See if any are available) on the serial port.
I would like to be able to access the serial port like this:
fp=fopen("ser:","r");
(error check here)
while( (status=any_chars_to_read(fp)) != 0)
{
c = getc(fp);
do_stuff();
}
do_other_stuff();
---------------------
Maybe there is a simple way to do this now, but I sure haven't found it
yet. I need to do this to be able to write a Eprom programmer driver,
( I use a B&C microsystems 1409C ). I think I could implement the
above using the serial device, but I really haven't gotten into the
devices and exec deeply enough to understand how to do it yet. Any
body out there have any good ideas? Thanks for any help!
Greg Garner
gmg@hcx.uucp path: ...!uunet!harris.cis.ksu.edu!hcx!gmg
Technical Details
Message-ID:
<1121@cseg.uucp>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!rochester!rutgers!ksuvax1!cseg!hcx!gmgReferences:
<8811072046.AA04999@postgres.Berkeley.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!super!udel!rochester!rutgers!ksuvax1!cseg!hcx!gmg From: gmg@hcx.uucp (Greg M. Garner) Newsgroups: comp.sys.amiga.tech Subject: Re: Proposal for new DOS calls Summary: More IO requests... Message-ID: <1121@cseg.uucp> Date: 9 Nov 88 05:10:24 GMT References: <8811072046.AA04999@postgres.Berkeley.EDU> Sender: netnews@cseg.uucp Organization: College of Engineering, University of Arkansas, Fayetteville Lines: 31