Subject: Re: SCO Unix compatibility
To: None <tech-userlevel@NetBSD.ORG>
From: Christos Zoulas <christos@nyc.deshaw.com>
List: tech-userlevel
Date: 05/09/1997 17:58:58
In article <199705091710.TAA19757@foible.proxima.alt.za> lucio@proxima.alt.za writes:
>Soemtime I wonder about my sanity: I'm neither sure this question 
>belongs
>here, nor whether I can remember all the details I need to formulate the
>question properly.
>
>Anyways, this is it:
>
>I attempted to use the RM Cobol Runtime (believe it or not, COBOL still
>exists :-) using the SCO Unix emulation capabilities of NetBSD and 
>everything
>except console handling worked like a charm.
>
>The problem?  When ICANON is turned off and timeout is used to return 
>from
>a read(2), SCO Unix, or, more accurately, the curses library, does not
>expect an error return.  Errno is set to EAGAIN and, presumably, the 
>called
>function returns -1 instead of zero (or whatever, I honestly don't have 
>all
>the documentation handy), causing the RM Cobol Runtime to fail when 
>handling
>multi-keystroke sequences (like function keys).

If you can send me an example program, statically linked binary + source
I'll try to fix the emulation for you.

christos