[hsflinux] latest driver & RI...
Michael Landon - IBN
mlandon at ibnads.com
Fri May 17 09:35:14 EDT 2002
>mstat = TIOCM_RI;
>err = ioctl(fd, TIOCMGET, &mstat);
>if(err == -1)
>{
> printf("Unable to query device [%s].\nError code: %i\n", argv[1], errno);
> exit(255);
>}
>ret = 1;
>printf("RING\n");
Sorry, the TIOCMIWAIT code looks like this:
mstat = TIOCM_RI;
err = ioctl(fd, TIOCMIWAIT, &mstat);
if(err == -1)
{
printf("Unable to query device [%s].\nError code: %i\n", argv[1], errno);
exit(255);
}
ret = 1;
printf("RING\n");
Michael
More information about the hsflinux
mailing list