Subject: Re: SCO Unix compatibility
To: None <tech-userlevel@NetBSD.ORG>
From: Christos Zoulas <>
List: tech-userlevel
Date: 05/09/1997 17:58:58
In article <> writes:
>Soemtime I wonder about my sanity: I'm neither sure this question 
>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 
>except console handling worked like a charm.
>The problem?  When ICANON is turned off and timeout is used to return 
>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 
>function returns -1 instead of zero (or whatever, I honestly don't have 
>the documentation handy), causing the RM Cobol Runtime to fail when 
>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.