TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: ALL
from: David George 72240,134
date: 1992-10-02 15:46:04
subject: #C Communications

#: 16604 S12/OS9/68000 (OSK)
    02-Oct-92  15:46:04
Sb: #C Communications
Fm: David George 72240,134
To: ALL

I am writing a program in C that reads and writes through the serial ports. I
am using Professional OSK v2.2 and trying to use _gs_rdy() to see is there is
any data to be read (I have a version that does just a read, but I don't want
the program to wait for something that might never come).  My problem is when I
call _gs_rdy(path)  (where path is the return value from open()) it returns -1
with an Error #216 (from errno).  Am I on the wrong track?  Is there another,
better way to communicate through the serial ports than just doing an open on
/t1?  (I am opening with S_IREAD+S_IWRITE). Any help or comments would be
greatly appreciated. David George

There is 1 Reply.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.