Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
robthedude%mac.com@localhost (Rob Newberry) writes:
>But the â??readâ?? call takes 25 seconds or more!
That's your application.
If configured with ",default" it sets all control characters to
_POSIX_VDISABLE, including the 'VMIN' and 'VTIME' characters.
socket-utils.c:889
FETCH_TERMIOS();
for (i=0; i < NCCS; i++) {
tios.c_cc[i] = _POSIX_VDISABLE;
}
but
If the value of one of the changeable special control characters (see
Special Characters) is {_POSIX_VDISABLE}, that function is disabled; that
is, no input data is recognized as the disabled special character. If
ICANON is not set, the value of {_POSIX_VDISABLE} has no special meaning
for the VMIN and VTIME entries of the c_cc array.
_POSIX_VDISABLE is '\377', so your read waits for 255 chars and times
out after 255 tenth of a second.
Greetings,
--
--
Michael van Elst
Internet: mlelstv%serpens.de@localhost
"A potential Snark may lurk in every tree."
- References:
- problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
- Re: problems with USB/CDC serial (umodem) - devices work with Linux, Mac OS X, and FreeBSD, but not NetBSD
Home |
Main Index |
Thread Index |
Old Index