Lines Matching refs:err
185 err(1, "serial_to_tun: read"); in serial_to_tun()
205 err(1, "serial_to_tun: read"); in serial_to_tun()
320 err(1, "serial_to_tun: write"); in serial_to_tun()
519 err(1, "slip_send overflow"); in slip_send()
545 err(1, "slip_flushbuf write failed"); in slip_flushbuf()
623 if((size = read(infd, uip.inbuf, 2000)) == -1) err(1, "tun_to_serial: read"); in tun_to_serial()
641 if(tcflush(fd, TCIOFLUSH) == -1) err(1, "tcflush"); in stty_telos()
643 if(tcgetattr(fd, &tty) == -1) err(1, "tcgetattr"); in stty_telos()
660 if(tcsetattr(fd, TCSAFLUSH, &tty) == -1) err(1, "tcsetattr"); in stty_telos()
667 if(tcsetattr(fd, TCSAFLUSH, &tty) == -1) err(1, "tcsetattr"); in stty_telos()
677 if(tcflush(fd, TCIOFLUSH) == -1) err(1, "tcflush"); in stty_telos()
723 int fd, err; in tun_alloc() local
743 if((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ) { in tun_alloc()
745 return err; in tun_alloc()
1036 …err(1, "usage: %s [-B baudrate] [-N] [-x] [-H] [-L] [-s siodev] [-t tundev] [-T] [-v verbosity] [-… in main()
1073 err(1, "unknown baudrate %d", baudrate); in main()
1089 if(tunfd == -1) err(1, "main: open"); in main()
1132 err(1, "select"); in main()