2fc628fcdf
Added FUTEX_REQUEUE (opcode 2) to the futex syscall implementation. Cross-referenced with Linux 7.1 kernel/futex/requeue.c futex_requeue(). Operation: wake up to waiters on the primary futex, and requeue up to waiters to a secondary futex at addr2. This avoids the thundering herd problem in pthread condition variable broadcast: instead of waking all waiters and having them immediately contend, most are moved to a private futex where they wake one at a time. Previously the futex syscall would return EINVAL for FUTEX_REQUEUE, breaking pthread_cond_broadcast on contended condition variables.