mirror of
https://github.com/open-simh/simh.git
synced 2026-05-04 07:08:55 +00:00
Fixed some HP-UX serial I/O functionality from Mikulas Patocka
We need to set buffer to 1 character and turn off the timeout. Otherwise, HP-UX buffers 4 characters before making them available to read().
This commit is contained in:
@@ -1052,6 +1052,12 @@ tio.c_iflag = (tio.c_iflag & ~i_clear) | i_set; /* configure the seria
|
|||||||
tio.c_oflag = (tio.c_oflag & ~o_clear) | o_set;
|
tio.c_oflag = (tio.c_oflag & ~o_clear) | o_set;
|
||||||
tio.c_cflag = (tio.c_cflag & ~c_clear) | c_set;
|
tio.c_cflag = (tio.c_cflag & ~c_clear) | c_set;
|
||||||
tio.c_lflag = (tio.c_lflag & ~l_clear) | l_set;
|
tio.c_lflag = (tio.c_lflag & ~l_clear) | l_set;
|
||||||
|
#ifdef VMIN
|
||||||
|
tio.c_cc[VMIN] = 1;
|
||||||
|
#endif
|
||||||
|
#ifdef VTIME
|
||||||
|
tio.c_cc[VTIME] = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif 0
|
#elif 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user