Subject: CVS commit: src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <email@example.com>
Date: 11/11/2004 00:01:38
Module Name: src
Committed By: christos
Date: Thu Nov 11 00:01:38 UTC 2004
src/lib/libc/gen: ttyname.3 ttyslot.c
It is silly to have to enumerate all the ptys in /etc/ttys in order to
get a valid ttyslot for them. Instead if and entry is not found and we
are a pty, allocate the n + 1 + minor(pty) slot.
To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/lib/libc/gen/ttyname.3
cvs rdiff -r1.11 -r1.12 src/lib/libc/gen/ttyslot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.