Article View: comp.os.msdos.programmer
Article #2689Redirection to Serial I/O Driver
From: John Dobbs
Date: Tue, 16 Oct 1990 12:35
Date: Tue, 16 Oct 1990 12:35
21 lines
1431 bytes
1431 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 from 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.656080521@mwunix.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!linus!linus!mwunix.mitre.org!jdobbsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ns-mx!iowasp.physics.uiowa.edu!maverick.ksu.ksu.edu!zaphod.mps.ohio-state.edu!uwm.edu!bionet!agate!linus!linus!mwunix.mitre.org!jdobbs From: jdobbs@mwunix.mitre.org (John Dobbs) Newsgroups: comp.os.msdos.programmer Subject: Redirection to Serial I/O Driver Summary: Trouble redirecting stdin to aux Keywords: Redirection, Serial I/O, Device Driver Message-ID: <jdobbs.656080521@mwunix.mitre.org> Date: 16 Oct 90 12:35:21 GMT Sender: usenet@linus.mitre.org Distribution: comp Lines: 21