Subject: Re: [PATCH v7 03/10] compat/win32: add pthread_cond_timedwait

From: Paul Tarjan <[email-masked]>
Date: Wed, 4 Mar 2026 11:17:44 -0700

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.