git: ttyname(3) - Set errno if ttyname_r call fails
Alex Hornung
alexh at crater.dragonflybsd.org
Tue Aug 11 04:05:57 PDT 2009
commit 4998a7ac0aa83ff49b852b33f9f264c7e3c0fe21
Author: Alex Hornung <ahornung at gmail.com>
Date: Tue Aug 11 10:19:57 2009 +0100
ttyname(3) - Set errno if ttyname_r call fails
* If ttyname_r returns non-null when called from ttyname, set errno
in ttyname to whatever *_r returned.
This also makes our ttyname comply with the standard.
Reported-By: Sascha Wildner
Summary of changes:
lib/libc/gen/ttyname.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4998a7ac0aa83ff49b852b33f9f264c7e3c0fe21
--
DragonFly BSD source repository
More information about the Commits
mailing list