]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add ttydisc_rint_simple().
authored <ed@FreeBSD.org>
Sun, 23 Aug 2009 08:04:40 +0000 (08:04 +0000)
committered <ed@FreeBSD.org>
Sun, 23 Aug 2009 08:04:40 +0000 (08:04 +0000)
commit503bd5d6c51e4b39865925d17eb7f6d7708b93c6
tree832ce47945c34ffc3c6cc8881a39f32c034bfb8a
parent659df31c6cd55ed551bd24d090e55b1df6e9f152
Add ttydisc_rint_simple().

I noticed several drivers in our tree don't actually care about parity
and framing, such as pts(4), snp(4) (and my partially finished console
driver). Instead of duplicating a lot of code, I think we'd better add a
utility function for those drivers to quickly process a buffer of input.

Also change pts(4) and snp(4) to use this function.
sys/dev/snp/snp.c
sys/kern/tty_pts.c
sys/kern/tty_ttydisc.c
sys/sys/ttydisc.h