From owner-freebsd-questions Mon Sep 1 23:40:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA19886 for questions-outgoing; Mon, 1 Sep 1997 23:40:36 -0700 (PDT) Received: from gdi.uoregon.edu (cisco-ts15-line15.uoregon.edu [128.223.150.198]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA19879 for ; Mon, 1 Sep 1997 23:40:28 -0700 (PDT) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.5/8.8.5) with SMTP id XAA03288; Mon, 1 Sep 1997 23:39:23 -0700 (PDT) Date: Mon, 1 Sep 1997 23:39:23 -0700 (PDT) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Wang Huaibo cc: questions@FreeBSD.ORG Subject: Re: Quesion In-Reply-To: <340AD16A.1A48@cs.sjtu.edu.cn> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 1 Sep 1997, Wang Huaibo wrote: > I wonder what's the difference between /dev/ptyXX and /dev/ttyXX > ( appears in telnetd source file "sys_term.c" )and whether there is > Electronic version of books about Unix design and implementation > downoladable from the net. Well, /dev/ttyXX are physical devices. You'll notice that there are different types of tty devices, particulary ttyd* for dial-in devices and ttyv* for virtual terminals. You'd be more interested in the difference between pty* and ttyp*, which is well explained in the pty(4) man page. For design and implementation, I don't think there's much online documentation except what's in the man pages and in /usr/share/doc/. If you're interested in these topics, the book ``The Design and Implementation of the 4.4BSD Operating System'' (aka the daemon book) is required reading. I forgot where, but FreeBSD users can obtain this book cheaply through an online bookstore, check the -questions archives. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major Spam routed to /dev/null by Procmail | Death to Cyberpromo