Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 1997 15:20:55 -0600 (CST)
From:      "Daniel M. Eischen" <deischen@iworks.InterWorks.org>
To:        freebsd-hackers@freebsd.org
Subject:   pthread_cond_timedwait returning wrong error?
Message-ID:  <199711232120.PAA23932@iworks.InterWorks.org>

next in thread | raw e-mail | index | archive | help

Is EAGAIN the correct error for a timeout from a
pthread_cond_timedwait() call?  I would think that
ETIMEDOUT would be more appropriate.

I got hung up on this in trying to upgrade the
port of GNAT.  It seems that all the other GNAT
targets rely on ETIMEDOUT being returned from
a timeout in pthread_cond_timedwait().  Namely,
OpenVMS, Solaris, RTEMS, Linux, and DEC Unix.

Should I submit a PR with patch to correct it?

Dan Eischen
deischen@iworks.InterWorks.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711232120.PAA23932>