summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_intr.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2008-08-22 21:27:37 +0000
committered <ed@FreeBSD.org>2008-08-22 21:27:37 +0000
commita6b774bc3b273e7c391ec85e6c7e92dffc7d1354 (patch)
tree4db7daeb534af1031c775e094e144ae927c7de23 /sys/kern/kern_intr.c
parent2c1bd90c13f2eaa2d33f7132e4df07198e5658c3 (diff)
downloadFreeBSD-src-a6b774bc3b273e7c391ec85e6c7e92dffc7d1354.zip
FreeBSD-src-a6b774bc3b273e7c391ec85e6c7e92dffc7d1354.tar.gz
Fix two small bugs in tcsetattr().
- According to POSIX, tcsetattr() must not fail when any of the bits in the structure are unsupported, but it must leave the unsupported flags alone. - The CIGNORE flag (set by TCSASOFT, extension) was not cleared from c_cflag, which means using it would cause it to be applied during its entire lifespan. Eventually make sure we clear the flag. I don't really like CIGNORE, but I think we must keep it alive right now. With our new TTY layer, we don't actually need this mechanism, because if you leave c_cflag, c_ispeed and c_ospeed alone, we won't make a call into the device driver anyway. Reported by: naddy Tested by: naddy
Diffstat (limited to 'sys/kern/kern_intr.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud