www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/12/06:54:49

Date: Wed, 12 Feb 1997 13:45:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Logan Bowers <bowers AT cyberspace DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: TCP/IP Library, Svasync Library, and a Stdout that won't flush
In-Reply-To: <32FE32DF.0@cyberspace.com>
Message-ID: <Pine.SUN.3.91.970212134116.7031D-100000@is>
MIME-Version: 1.0

On Sun, 9 Feb 1997, Logan Bowers wrote:

> The only CommPort library I could find (Svasync) doesn't let you set the
> IRQ for the comm port that you use.  I need to use COM3, but it is on a
> non-standard IRQ of 9.  The library will only work if I set the IRQ of
> the port to 4.

Why won't it work for IRQ 9?  Is the number of IRQ hard-wired into the 
Svasync code?

One thing that is different between IRQ 4 and IRQ 9 is that for 9 you 
need to send EOI to both master and slave interrupt controllers, whereas 
for 4 you only need to EOI the master.

> In the source code, it has 4 settings for each port:
> Port, VectorNum, EnableIRQ, and DisableIRQ.  So how do I set these to
> access my port on COM3?

If you don't get any answers, I suggest posting these settings, because 
not many people will remember them out of their heads.

> This may seem pretty lame, but I cannot figure out how to flush the
> stdout.  When I call fflush(stdout), I know there is stuff in the
> buffer, but it doesn't display on the screen.  What am I to do?

Call fsync (fileno (stdout)).  If that doesn't help, please tell more 
about the problem and maybe post a short program which exhibits it.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019