bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ttyname_r returning EINVAL


From: Thomas Schwinge
Subject: Re: ttyname_r returning EINVAL
Date: Thu, 05 Apr 2012 00:42:13 +0200
User-agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu)

Hi!

On Thu, 04 Aug 2011 12:13:19 +0200, Simon Josefsson <simon@josefsson.org> wrote:
> As explained as 4) in this e-mail:
> 
> https://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00027.html
> 
> it seems like the ttyname_r function returns EINVAL when the provided
> buffer is too small.
> 
> This doesn't seem consistent with the specifcation at:
> 
> http://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname.html
> 
> Instead, it seems this should be ERANGE?
> 
> [ERANGE]
>     The value of namesize is smaller than the length of the string to be
>     returned including the terminating null character.

Thanks; finally fixed (glibc BZ #12340).


Grüße,
 Thomas

Attachment: pgp_y5tJXdHf3.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]