Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!cbosgd!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP Newsgroups: comp.bugs.sys5 Subject: Re: CLOCAL, or catch-22 Message-ID: <4178@ncoast.UUCP> Date: Sat, 15-Aug-87 12:06:28 EDT Article-I.D.: ncoast.4178 Posted: Sat Aug 15 12:06:28 1987 Date-Received: Sun, 16-Aug-87 13:40:27 EDT References: <325@nsta.UUCP> <1302@killer.UUCP> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: comp.bugs.sys5 Organization: Cleveland Public Access UN*X, Cleveland, Oh Lines: 11 WRT getty: if you can't find anything else, the melbourne getty for BSD is in the mod.sources archive. It's configurable via a file /etc/gettytab (?) (although, as with all Berkeley-style programs, it looks suspiciously like /etc/termcap...). One thing to watch out for is that AT&T getty-type programs must close all file descriptors and then re-open to the terminal -- I seem to remember that it uses O_RDWR on 0, 1, and 2, so you can effectively read from stdout (!). It also has to grovel in utmp and add stuff to wtmp if it exists. The proper utmp record is the LOGIN_PROCESS type (see utmp(3)). I don't think System V getty actually uses utmp(3), though...