Re: Serial driver changes from v5 to v7



Per Hedeland <per@xxxxxxxxxxxx> wrote:

For future dejagooglers, on comparing the defaults between 5.3 and 6.0,
I found that the difference was that these were set in 6.0 but not in
5.3 (or ever before):

lflags: icanon isig iexten
iflags: icrnl ixon ixany imaxbel brkint
oflags: opost onlcr


For the sake of my own edification, _where_ is this default set?
If it's the source, I'll plead that I'm not a programmer. If it's
in a config file, I'm guilty to something 8-)

Per above, icanon is set by default in 6.0 and later. The fact that your
initial attempt to unset it failed can probably be blamed on the pretty
arcane and picky syntax for *cap entries - you can see that in your old
entry, continuations are only done after ':', which is probably safest.
When you put a continuation immediately after 'ms=', the unfolded line
becomes something like 'ms= -icanon,...', which may confuse the
parser.

For some (possibly imaginary) reason I believed the : character denoted
a countable boundary which should be preserved. My mistake.

I'd never have paid enough attention to the icanon/-icanon flag significance
if you hadn't pointed it out to me.


Oh, but your question wasn't naive at all, it was quite a difficult one
Thanks for the kind words! More thanks for your help.

- it was just that you were the only one that could do the actual
debugging, and you seemed to keep giving up, and then come back and
That I'm the only one who can do the debugging [reconfiguring?] is
somewhat sad. If nobody of sufficient skill is using rs232 serial
ports they will not long survive in FreeBSD. However, they remain useful.
At least to a few skinflint throwbacks to a bygone age. ;-)

Start over from scratch every N months.:-)
The restart was triggered by personal distraction, which I sincerely
hope does not recur.

--Per Hedeland
per@xxxxxxxxxxxx
Thanks again for your help, I hope it's not needed anytime soon!

bob prohaska

.