* Garrett Cooper , 20111001 21:43:
> Why not use strlcpy, etc with dlen?
Well, I could, but it wouldn't change anything. In both cases, the size
of the buffer exceeds the size of _PATH_TTY.
--
Ed Schouten
WWW: http://80386.nl/
pgpI2Dg6pLMCm.pgp
Description: PGP signature
On Sat, Oct 1, 2011 at 5:19 AM, Ed Schouten wrote:
> Author: ed
> Date: Sat Oct 1 12:19:48 2011
> New Revision: 225897
> URL: http://svn.freebsd.org/changeset/base/225897
...
> + if (s == NULL) {
> + s = def;
> + dlen = sizeof(def) - LEN_PATH_DEV;
> + } e
Author: ed
Date: Sat Oct 1 12:19:48 2011
New Revision: 225897
URL: http://svn.freebsd.org/changeset/base/225897
Log:
Reimplement ctermid().
Even though POSIX allows us to return simply /dev/tty as a pathname
identifying the controlling terminal of the running process, it is nicer
if th