*** h8write.c.bak Sun Jan 19 00:00:00 2003 --- h8write.c Sat Jan 12 14:19:13 2008 *************** *** 1,4 **** ! #define LINUX #undef Solaris #undef FreeBSD #undef Win32 --- 1,5 ---- ! #define OpenBSD ! #undef LINUX #undef Solaris #undef FreeBSD #undef Win32 *************** *** 47,52 **** --- 48,56 ---- #ifdef Solaris #define RSLINE "/dev/cua/b" #endif + #ifdef OpenBSD + #define RSLINE "/dev/tty00" + #endif /* Wait timinig for each char send. In milli second. *************** *** 869,875 **** snprintf(buf,sizeof(buf),"Try to set speed : %d [bps]\n",rate); error_print(FATAL,ERR_LINESPEED,buf); } ! if((TheFd=open( sPort , O_RDWR)) == -1){ error_print(FATAL,ERR_OPENLINE,sPort); } tcsetpgrp(TheFd, getpgrp()); --- 873,879 ---- snprintf(buf,sizeof(buf),"Try to set speed : %d [bps]\n",rate); error_print(FATAL,ERR_LINESPEED,buf); } ! if((TheFd=open( sPort , O_RDWR|O_NDELAY)) < 0){ error_print(FATAL,ERR_OPENLINE,sPort); } tcsetpgrp(TheFd, getpgrp()); *************** *** 929,934 **** --- 933,942 ---- TheTty.c_cflag |= HUPCL | CLOCAL ; if(tcsetattr(TheFd, TCSANOW, &TheTty ) == -1){ error_print(FATAL,ERR_INITLINE,NULL); + } + + if((TheFd=open( sPort , O_RDWR)) < 0){ + error_print(FATAL,ERR_OPENLINE,sPort); } #endif }