Xref: utzoo comp.os.msdos.programmer:1502 comp.lang.c:32881 Path: 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: Date: 15 Oct 90 20:17:56 GMT Sender: usenet@linus.mitre.org Followup-To: comp.sys.ibm.pc.programmer Distribution: comp Lines: 21 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