From patchwork Fri Aug 14 18:36:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Almeida?= X-Patchwork-Id: 60630 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3719E4BA9011 for ; Fri, 14 Aug 2026 18:37:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3719E4BA9011 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=qaW/s/Qa X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by sourceware.org (Postfix) with ESMTPS id 9966C4BA5434 for ; Fri, 14 Aug 2026 18:36:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9966C4BA5434 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=igalia.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=igalia.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9966C4BA5434 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=213.97.179.56 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786732612; cv=none; b=OJJBHKxdIrZDI5b8QkfnMzQA3nOiXvr20tsFdcXkogYG9VHCSCuI0c7+7i8Ol7cmO8hc8H0cuf31S9P424x6qfgCmnGMD/IYeHkB8DQC7+2y8NqOBRTOK0lyU+jlcn+ZrMCDNvhExGAhx+Nf41FlfBW0wHhejqVjziBQZZWEBc4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1786732612; c=relaxed/simple; bh=IGj+CaZEodashnR8omhACLstlsoIw/b3jsj3ufJfI58=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=nRtIO4o+ZTS2TOABReQXpSiIcPKWHeAMQ3qJWZ1HhY6XWyXuSyP10nkGdj1lKx2nkc7bUzzU08dmk4BUjlUof9dv5BZIpTDmjTOVSGOHWliIL3zAPfizO+wEkyl/+Zo7HpAx3H/gXUCCECHXKfPRVExYfnMp2V1XwPBRCBhg4Rs= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=igalia.com header.i=@igalia.com header.a=rsa-sha256 header.s=20170329 header.b=qaW/s/Qa DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9966C4BA5434 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:Subject:Cc:To:From:From:Reply-To; bh=54xtLpIwKpAFV1yT7UXISRi0QCyt+vefRBJ2IkhXYy4=; b=qaW/s/QaFe+N2cHzP85Jv2pidX vBzmmJ7Bw04q+EpnUneiq2Kj2wGYsBTQtypooLC4cuIn1wNFHPrwgWeoKdhTpkVx+zOwbOxJjd1md QaaLTZ/PfkSLFlUlljFk0eSDK5hAdvsz57rYu6oV3zo3p9OtI/xoFIaouHGZOBDv3DsNPG54jYGFf uZ2O6Q1omr5bTekxCSP9paVxtsq5vbwBdcsrs7Q0NnqDKZUcKACgH0LwvX/ZemJY8Ao1ksScJ/IW3 43Fofad+jv5aNAGMiKlKsF3t28d9nAeRmSfkXC5D7Ukmgbur9o7cn2SjSFoJm/wdYrAlCbJLijGs2 zBovxrgg==; Received: from [177.139.22.20] (helo=computador) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wuwls-001xOF-GD; Fri, 14 Aug 2026 20:36:48 +0200 From: =?utf-8?q?Andr=C3=A9_Almeida?= To: libc-alpha@sourceware.org, carlos@redhat.com, adhemerval.zanella@linaro.org Cc: =?utf-8?q?Andr=C3=A9_Almeida?= Subject: [RFC PATCH 0/2] Linux: Add futex_waitv syscall wrapper Date: Fri, 14 Aug 2026 15:36:10 -0300 Message-ID: <20260814183612.1780736-1-andrealmeid@igalia.com> X-Mailer: git-send-email 2.55.0 MIME-Version: 1.0 X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org Hi folks, Based on a talk on last LPC by Carlos O'Donell[1], I'm sending this patch as a starting point to add the futex_waitv() syscall wrapper. I tried to base myself on the work done for others wrappers, but I see that there are missing details in my implementation, so I'm seeking guidance on how to approach this. Thanks! André [1] https://lpc.events/event/19/contributions/2220/ André Almeida (2): Linux: Add futex_waitv misc: tst-futex: Create futex test include/sys/futex.h | 4 ++ sysdeps/unix/sysv/linux/Makefile | 3 + sysdeps/unix/sysv/linux/futex_waitv.c | 32 +++++++++ sysdeps/unix/sysv/linux/sys/futex.h | 24 +++++++ sysdeps/unix/sysv/linux/tst-futex.c | 93 +++++++++++++++++++++++++++ 5 files changed, 156 insertions(+) create mode 100644 include/sys/futex.h create mode 100644 sysdeps/unix/sysv/linux/futex_waitv.c create mode 100644 sysdeps/unix/sysv/linux/sys/futex.h create mode 100644 sysdeps/unix/sysv/linux/tst-futex.c