On Wed, 17 May 2000, Theodore Y. Ts'o wrote:
> Is the linux-serial archived anywhere? It seems just last week I
> answered the question about using TIOCMIWAIT to allow you a process
> to sleep until a specified set of control lines change.
> Unfortunately, I can't find my posting on the subject, and I don't
> have time now to rewrite it just now.
Not really, but I have that posting.
On Mon, 15 May 2000, Theodore Y. Ts'o wrote:
> The TIOCMIWAIT ioctl can be used to do this. You pass it a mask of
> which lines you're interested in, using the bitmask definitions used
> by TIOCMGET. TIOCGICOUNT can be used to count to determine which
> line(s) changed while the process was sleeping.
> That being said, these interface (and those RS-232 lines) weren't
> designed for protocol work, and it's possible it might miss a
> transition.
These are referenced in my Serial-Programming-HOWTO which is included
in my "serial_suite" collection. There is a do nothing example in
"~/ctl_lines/lines.c".
Ted, since these are not POSIX, what was the inspiration for
implementing them.
vern
--
Vernon C. Hoxie [EMAIL PROTECTED]
3975 W. 29th Ave. uucp: 303-455-2670
Denver, Colo., 80212 voice: 303-477-1780
I sink, therefore I swam.
-
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to [EMAIL PROTECTED]