summaryrefslogtreecommitdiffstats
path: root/sys/fs/deadfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-11-22 09:04:09 +0000
committerbde <bde@FreeBSD.org>1998-11-22 09:04:09 +0000
commitf333cb0cb81d0f620526a2492fffd81e4821109c (patch)
treeba605209fca213a86774289070588c6e723ba911 /sys/fs/deadfs
parent2b7d69a8df339184f0c209580795574e9198545e (diff)
downloadFreeBSD-src-f333cb0cb81d0f620526a2492fffd81e4821109c.zip
FreeBSD-src-f333cb0cb81d0f620526a2492fffd81e4821109c.tar.gz
Fixed some missing cases in the check for ioctls that involve modification.
Many (mostly machine-dependent ones) are still missing. NIST-PCTS found this bug for all the ioctls used to implement the POSIX tc* functions (TIOCCBRK, TIOCDRAIN, TIOCSPGRP, TIOCSBRK, TIOCSTART and TIOCSTOP), and I found FIOASYNC, TIOCCONS, TIOCEXCL, TIOCHPCL, TIOCNXCL, TIOCSCTTY and TIOCSDRAINWAIT by inspection. TIOCSPGRP was ifdefed out for some reason. Handle tcsetattr()'s historical speed conversions correctly and more centrally: - don't store speeds of 0 in the final termios struct. Drivers can now depend on tp->t_ispeed and tp->t_ospeed giving the actual speed. Applications can now depend on tcgetattr() being POSIX.1 conformant. - convert from a proposed input speed of 0 to the proposed output speed (except if that is 0, convert to the current output speed). Drivers can now depend on the proposed input speed being nonzero. - don't reject negative speeds. Negative speeds can't happen now that speed_t is unsigned, and rejecting invalid speeds is a bug - tcsetattr() is supposed to succeed if it can "perform any of the requested actions", so it shouldn't fail in practice.
Diffstat (limited to 'sys/fs/deadfs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud