The HyperNews Linux KHG Discussion Pages

## Untitled

  Forum: The Linux Kernel Hackers' Guide
  Re: Modem bits (Franky)
  Date: Sat, 31 Jan 1998 18:57:59 GMT
  From: Kostya <ovsov@bveb.belpak.minsk.by>

It's quite simple. I think the code will explain it the best. /***************************/ #include <termios.h> int status ;
    ioctl (fd,TIOCMGET,&status) ; // fd - already opened device.
    if (status & TIOCM_DTR)
           printf ("DTR is asserted\n"); // for example
/*****************************/ Info about '#defines' for modem signals in /usr/src/linux/include/asm/termios.h Best regards.