This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH,HURD] hurd: compliance fixes for ptsname_r
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Pino Toscano <toscano dot pino at tiscali dot it>
- Cc: libc-alpha at sourceware dot org, bug-hurd at gnu dot org
- Date: Fri, 27 Apr 2012 15:21:01 -0700 (PDT)
- Subject: Re: [PATCH,HURD] hurd: compliance fixes for ptsname_r
- References: <201204271244.11035.toscano.pino@tiscali.it>
Compliance with what? Is there a standard that specifies ptsname_r?
We don't use implicit boolean coercions, we use (buf != NULL).
But unless there is a standard requiring that you diagnose a
null pointer argument somehow, then it's actually better that
it just crash.
Thanks,
Roland