bug-gnulib
[Top][All Lists]
Advanced

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

Re: [PATCH 2/4] ptsname_r-tests: new test module


From: Eric Blake
Subject: Re: [PATCH 2/4] ptsname_r-tests: new test module
Date: Thu, 10 Nov 2011 06:13:55 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110928 Fedora/3.1.15-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.4 Thunderbird/3.1.15

On 11/10/2011 06:02 AM, Eric Blake wrote:
Not necessarily. On many of the existing standardized *_r functions, and
more particularly on ptsname_r, POSIX requires that the function returns
                       ^^^^^^^^^

Correction - the closest existing standardized function I had in mind is ttyname_r (since on some platforms, ptsname_r can be implemented in terms of ttyname_r); especially when comparing ttyname to ttyname_r. [Serves me right for typing too fast after waking up ;) ].

http://pubs.opengroup.org/onlinepubs/9699919799/functions/ttyname_r.html

Upon successful completion, ttyname() shall return a pointer to a string. Otherwise, a null pointer shall be returned and errno set to indicate the error.

If successful, the ttyname_r() function shall return zero. Otherwise, an error number shall be returned to indicate the error.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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