[vlc-devel] [RFC PATCH 1/2] vlc_threads: include errno.h for all oses
Rémi Denis-Courmont
remi at remlab.net
Mon Nov 30 17:36:09 CET 2015
On Monday 30 November 2015 17:05:37 Thomas Guillem wrote:
> On Mon, Nov 30, 2015, at 17:01, Rémi Denis-Courmont wrote:
> > On Monday 30 November 2015 14:57:48 Thomas Guillem wrote:
> > > You need errno.h to handle vlc_cond_timedwait returns.
> >
> > No, you don´t need errno.h to distinguish zero and non-zero.
>
> But I don't know by heart the value of ETIMEDOUT. Should I ?
All error codes are strictly positive, says ISO C. Thus ETIMEDOUT is non-zero.
See also existing vlc_cond_timedwait() call sites...
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list