TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: Pete Lyall 76703,4230 (X)
from: David George 72240,134
date: 1992-10-04 13:56:18
subject: #16612-#C Communications

#: 16619 S12/OS9/68000 (OSK)
    04-Oct-92  13:56:18
Sb: #16612-#C Communications
Fm: David George 72240,134
To: Pete Lyall 76703,4230 (X)

here is a section of the code I am using.

int rdy_chars;
  .
  .
  .
rdy_chars = _gs_rdy(path);
if (rdy_chars = -1)
  exit(errno);

This exits with Error #000:216
I know I have opened the port properly and I can read and write to it,
because before I call this function I read and write to the remote device
without any problems.  I have declared path globally.  Here is the section
that comes before the function call:

int path;

main (argc, argv)
int argc;
char **argv;
{
  .
  .
  .
  if ((path = open("/t1", S_IREAD+S_IWRITE)) = -1) {
    error ...
  } else {
    read(path, in_line, 1);
    ...
    write(path, temp, strlen(temp));
    ...
  }
  ...
}
In this section it is ok to what for data to become available, and it
works the way it is expected.  in_line is char in_line[300], temp is
char temp[80].
Thank you for your help.
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™.