Module Name: src Committed By: pooka Date: Sun Mar 7 23:28:14 UTC 2010
Modified Files: src/share/examples/rump: Makefile Added Files: src/share/examples/rump/ttyserv: Makefile ttyserv.c Log Message: Add a simple tty server which attaches to /dev/ttyU in the rump kernel and provides the same device on the host with pud(4). I can succesfully talk to my u3g device using tip(1) against the server's devices. Some characters are lost here and there, though (probably a problem with interrupt pipes in ugenhc). Once that issues is solved, there is no reason why e.g. pppd (chat) could not be used against the server. Now, why would anyone want to do this instead of using the kernel driver directly? Well, for one, on my laptop I run netbsd-5 which doesn't have a u3g driver which supports the u3g hardware I have. As anyone with half an eye can see, this is quite copypasted from umserv and there is plenty of opportunity for uncopypasting for the eager vi-wielder. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/share/examples/rump/Makefile cvs rdiff -u -r0 -r1.1 src/share/examples/rump/ttyserv/Makefile \ src/share/examples/rump/ttyserv/ttyserv.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.