- // same thing for modem
- xget1(sfd, &tio, &tiosfd);
- // order device to hang up at exit
- tio.c_cflag |= (CREAD|HUPCL);
-// if (!istty)
-// tio.c_iflag |= (IGNCR);
- // set device speed
- cfsetspeed(&tio, tty_value_to_baud(speed));
- if (xset1(sfd, &tio, argv[0]))
- goto restore0_and_done;
-