Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Mar 2005 16:52:15 -0500 (EST)
From:      Daniel Eischen <deischen@freebsd.org>
To:        Poul-Henning Kamp <phk@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/lib/libc/gen ttyname.3 ttyname.c
Message-ID:  <Pine.GSO.4.43.0503081646540.2547-100000@sea.ntplx.net>
In-Reply-To: <200503082135.j28LZqYh027693@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Mar 2005, Poul-Henning Kamp wrote:

> phk         2005-03-08 21:35:52 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     lib/libc/gen         ttyname.3 ttyname.c
>   Log:
>   Have ttyname_r() try to ask DEVFS for the device name.
>
>   Document ttyname_r().

ttyname_r() currently doesn't agree with the POSIX spec which
is probably why it isn't documented or in <unistd.h>.  The
prototype for ttyname_r() is suppose to be:

  int ttyname_r(int, char *, size_t);

There's patches (PRs I think) out there to fix it, but I think
they're waiting for Kris to scan ports to see if there are any
uses of the old undocumented API.  I think you can find related
mail in -threads and/or -standards.

-- 
DE



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.43.0503081646540.2547-100000>