/* Program to add hardware flow control to the modem */ #include #include #include #include main (argc,argv) { int argc; char *argv[]; int fd; if ( (fd = open(argv[1], O_NDELAY|O_RDWR)) <0 ) { printf("%s: could not open %sn",argv[0],argv[1]); exit (22); } ioctl(fd, TXADDCD, "rts"); /* adds rts to the tty in the argument */ close(fd); }