#: 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.
|