From nobody Tue Feb 10 11:32:50 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530459; cv=none; d=zohomail.com; s=zohoarc; b=PFqf99MKUJdQhdg3ZMxlDZ7NfRu8xGZFIKaxYZqhksAcHZ7mBpxWxjJUo0RYtD3iPLVnpowMGtY0dVshFx5z/r3FTw2P8nPsZX0TK81Abxi63AB0Vl6N/7MT1MHlkvx00WcH421hFrvDg26uIrKEprFdm3DGkiVAkalDiHlTtls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530459; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OZJgORl8cEThdrHDzYfVgvq5hw8RqcPt05THMARuhgM=; b=BYCQ96moYQRouc8i9j5sMVKYvrpzmx1HRGVtebs8dNyMkIBySOxVh7gEGTQGEoAz7kBzQx2yVPnipGOZwz1eYUJBhg4bES4Guh6kuRf/yLmXzlf7lsZ6sZkGIQn0XrLBcv/wZNWMIJAPdMBhZb076qo6VwoeNEZ2BSkUQ5uW+eM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770530459594974.7280239665707; Sat, 7 Feb 2026 22:00:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxpa-0000Ok-97; Sun, 08 Feb 2026 00:59:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpP-0000MC-GJ; Sun, 08 Feb 2026 00:59:27 -0500 Received: from mail-4317.protonmail.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpO-0007TY-0N; Sun, 08 Feb 2026 00:59:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530362; x=1770789562; bh=OZJgORl8cEThdrHDzYfVgvq5hw8RqcPt05THMARuhgM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=o7Bhyt1qStxZwM6tVVFffVMp4K8tsRTzkDBaXWA4b02leCT9iVo2a4TkslUfbhwDU fxd8MH5HHEgjhNm6P60UHHWCdBfDkIJsSf6JmO5sstHLPjOEAKdFUoS4DJwpfYfTM8 Al98j3cwkT3uZBmDCRIHqzynmaonBPy1vjW/lDHFm3CXiEfJFEoC5hN5eNTYMmMqGk kbh3MHsYj7YQ8QqQRbZ/9PzFaSs/ScsTcmeHJFoSHkNf/7582UswbFjLz19ih3bTq6 Vpz/zmXinqV6OmX/pM7x/u/WYRZvEf4ucmq166yORU6eWkbixtRs0EHprnaMHfgSRh wWcAHqxkxR8mw== Date: Sun, 08 Feb 2026 05:59:19 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 1/5 qemu] Include new arbitrary limits if not already defined Message-ID: <20260208055858.2166524-2-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: 69418220e619fe54236ab210324a8c3fcd403440 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com; helo=mail-4317.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @zamaudio.com) X-ZM-MESSAGEID: 1770530461230154100 Content-Type: text/plain; charset="utf-8" From: Manolo de Medici Although GNU/Hurd supports unlimited path lengths only bounded by available memory, for now we can use an arbitrary limit on PATH_MAX that matches what POSIX requires. We don't have bandwidth to fix this properly right now. Author: Manolo de Medici Signed-off-by: Damien Zammit --- include/qemu/osdep.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index b384b5b506..2e67d75042 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -385,6 +385,17 @@ void QEMU_ERROR("code path is reachable") #define TIME_MAX TYPE_MAXIMUM(time_t) #endif =20 +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + +/* + * Use the same value as Linux for now. + */ +#ifndef IOV_MAX +#define IOV_MAX 1024 +#endif + /* Mac OSX has a bug that incorrectly defines SIZE_MAX with * the wrong type. Our replacement isn't usable in preprocessor * expressions, but it is sufficient for our needs. */ @@ -661,10 +672,6 @@ struct iovec { void *iov_base; size_t iov_len; }; -/* - * Use the same value as Linux for now. - */ -#define IOV_MAX 1024 =20 ssize_t readv(int fd, const struct iovec *iov, int iov_cnt); ssize_t writev(int fd, const struct iovec *iov, int iov_cnt); --=20 2.51.0