/* closes the rs232 window again */ void rs232_close(int fd) { if (fd & RS232_IS_PHYSICAL_DEVICE) { rs232dev_close(fd & ~RS232_IS_PHYSICAL_DEVICE); } else { rs232net_close(fd); } }
/* reset RS232 stuff */ void rs232dev_reset(void) { int i; for (i = 0; i < RS232_NUM_DEVICES; i++) { if (fds[i].inuse) { rs232dev_close(i); } } }