This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use an alias to `ptsname_r' in login/tst-ptsname.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]