I'm trying to use towitoko-0.97 on OpenBSD 2.4 and running into some
problems.  I'm starting to think linux isn't posix compliant for termios.  I
don't have posix in front of me, but...

I don't think you can set speed by just assigning it to cflag.  There are
macros that should be used instead.

INPCK is an iflag, not a cflag.  ISTRIP is an iflag, not an lflag.

There is a bug in OpenBSD; the cua device must be opened with O_NONBLOCK.
And it's cua00, not cua0.  This should be configurable somehow.

With these changes it works better, but still isn't right.  Is this the
right place to discuss this?  (I reckon it's more on-topic than test
messages, anyway).
***************************************************************
Linux Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/smartcard/index.html
***************************************************************

Reply via email to