On Wed, Mar 24, 2010 at 02:56:29AM +0100, ????? ???????????? wrote:
> Do you know a simple example? ssh and xterm are large, complex
> applications but I need a simple example.

sshd's use of them is fairly simple; search for ptymaster in
$SRC/cmd/ssh/sshd/.

With cscope (searching for references to grantpt()) I see that in ONNV
we have a few possibly simple uses of ptys:

 - script(1) ($SRC/cmd/script/)
 - enhance(1) ($SRC/cmd/enhance/)
 - in.rlogind(1M)
 - in.telnetd(1M)
 - rpc.rexd(1M)
 - zlogin(1)

Actually, add in sshd(1M) and that's it for uses of grantpt() in ONNV.
Most code that uses ptys is likely in other consolidations.

Nico
-- 

Reply via email to