Article View: comp.os.msdos.programmer
Article #2634Serial I/O Device Driver
From: John Dobbs
Date: Mon, 15 Oct 1990 20:17
Date: Mon, 15 Oct 1990 20:17
21 lines
1423 bytes
1423 bytes
I am looking for some advice concerning DOS device drivers. I have written
a serial i/o port driver (AUX) in assembly language. It is installed by
DEVICE = xxx.sys and handles the RS-232 port on an interrupt basis. I can
successfully access the driver directly from C language routines as in
fgets( string, MAX_CHARS, stdaux)
or
fputs( string, stdaux ).
The problem I have is in redirecting stdin to aux as in
c:> someprog < aux
By monitoring what the driver is receiving versus what DOS is giving to
someprog, it looks as though there is double buffering or non-recognition
of end of line in that the characters received are out of sync. The
documentation I have described the template of a device driver but not the
buffering that might be done by DOS. Can someone give me a hint of what
might be happening?
Thanks,
John
jdobbs@mwunix.mitre.org
Technical Details
Message-ID:
<jdobbs.656021876@mwunix.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!linus!linus!mwunix.mitre.org!jdobbsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!agate!linus!linus!mwunix.mitre.org!jdobbs From: jdobbs@mwunix.mitre.org (John Dobbs) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Serial I/O Device Driver Summary: Trouble redirecting I/O to device driver Keywords: Redirection, Device Driver Message-ID: <jdobbs.656021876@mwunix.mitre.org> Date: 15 Oct 90 20:17:56 GMT Sender: usenet@linus.mitre.org Followup-To: comp.sys.ibm.pc.programmer Distribution: comp Lines: 21