This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH]: NULL pointer check in timer_* functions
- From: Roland McGrath <roland at redhat dot com>
- To: kraj at mvista dot com
- Cc: Ulrich Drepper <drepper at redhat dot com>,libc-alpha at sources dot redhat dot com
- Date: Thu, 11 Aug 2005 18:29:02 -0700 (PDT)
- Subject: Re: [PATCH]: NULL pointer check in timer_* functions
That test is indeed incorrect. It relies on getting EINVAL when passing an
invalid (deleted) timer_t to timer_settime. POSIX does not require
diagnosing this error (it's a "may fail"). The test invokes undefined
behavior.