From: Paul Tarjan Date: Wed, 04 Mar 2026 18:17:44 GMT Subject: Re: [PATCH v7 03/10] compat/win32: add pthread_cond_timedwait Message-ID: <20260304181744.25653-1-github@paulisageek.com> In-Reply-To: On Tue, Mar 4, 2026, Patrick Steinhardt wrote: > So I guess it's safe to return ETIMEDOUT directly here? Yep, that matches the POSIX spec. Fixed in v8. > Wouldn't it make sense to extend `err_win_to_posix()` instead? err_win_to_posix() currently maps ERROR_TIMEOUT to EBUSY, not ETIMEDOUT. Changing that mapping could affect other callers, so it seemed safer to handle WAIT_TIMEOUT explicitly in this function.