[PATCH] Use an alias to `ptsname_r' in login/tst-ptsname.c
Florian Weimer
fweimer@gapps.redhat.com
Thu May 25 21:40:00 GMT 2017
On Thu, May 25, 2017 at 11:37 PM, Arjun Shankar <arjun.is@lostca.se> wrote:
> My argument behind both of these suggestions was that `pthread_create'
> doesn't care about both of these things (i.e. it doesn't check that the
> `pthread_t' pointer is not NULL; it just writes to it. And it doesn't
> explicitly mention in the man-page that the pointer is required to be
> valid and of sufficient size) - and therefore `ptsname_r' doesn't
> require these things either.
>
> Am I reasoning about this correctly?
What you are saying is not wrong, but the manual page in its current
state documents the EINVAL return value. That would have to change.
Thanks,
Florian
More information about the Libc-alpha
mailing list