sem_trywait returns EAGAIN (rather than returning -1 and setting errno)
Christopher Faylor
cgf@redhat.com
Tue Feb 26 08:17:00 GMT 2002
On Tue, Feb 26, 2002 at 08:37:35PM +1100, Robert Collins wrote:
>The problem should _not_ be endemic in the pthreads code, as I rewrote
>nearly all the pthread* functions from the P1003.1 draft spec.
% grep 'return E' thread.cc
return ETIMEDOUT;
return EAGAIN;
return EFAULT;
return EINVAL;
return EAGAIN;
return ESRCH;
return ESRCH;
we return ESRCH until all the required functions call testcancel ();
return EINVAL;
return EINVAL;
return ENOMEM;
return ENOMEM;
return ENOMEM;
return EINVAL;
return EAGAIN;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return ENOTSUP;
return EINVAL;
return ENOTSUP;
return EINVAL;
return ENOTSUP;
return EINVAL;
return EINVAL;
return ENOTSUP;
return EINVAL;
return EINVAL;
return EINVAL;
return ESRCH;
return EINVAL;
return ESRCH;
return EINVAL;
return ESRCH;
return ESRCH;
return ESRCH;
return EINVAL;
return EBUSY;
return EAGAIN;
return EINVAL;
return EINVAL;
return ESRCH;
return ENOTSUP;
return EINVAL;
return EINVAL;
return EINVAL;
return EBUSY;
return EINVAL;
return EBUSY;
return EAGAIN;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return ETIMEDOUT;
return EAGAIN;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EBUSY;
return EAGAIN;
return EINVAL;
return ENOSYS;
return EINVAL;
return EINVAL;
return EBUSY;
return EINVAL;
return EINVAL;
return EBUSY;
return EINVAL;
return ENOSYS;
return EINVAL;
return ENOSYS;
return EINVAL;
*PTHREAD_MUTEX_DEFAULT to PTHREAD_MUTEX_RECURSIVE and return EINVAL for other types.
return EINVAL;
return EBUSY;
return ENOMEM;
return EINVAL;
return EINVAL;
return ENOSYS;
return EINVAL;
return ENOSYS;
return EINVAL;
return ENOSYS;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
return EBUSY;
return EINVAL;
return EAGAIN;
return EINVAL;
return EINVAL;
return EINVAL;
return EINVAL;
cgf
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list