[Top][All Lists]

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

ttyname_r returning EINVAL

From: Simon Josefsson
Subject: ttyname_r returning EINVAL
Date: Thu, 04 Aug 2011 12:13:19 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux)

As explained as 4) in this e-mail:


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:


Instead, it seems this should be ERANGE?

    The value of namesize is smaller than the length of the string to be
    returned including the terminating null character.


reply via email to

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