From nobody Sat Feb 7 08:02:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1667831983; cv=none; d=zohomail.com; s=zohoarc; b=hfbZy/peMzWkH6ULlahaco6kkIV5W6bQbM4UdZwdvGvj0iyOMlopIjQM1GjSmTDgxG+z3hFSL6qFIetnIGOqS1rTuVmC3O321fIJpbPXhD7ipxwpyeRYBP5P2WJTmMscFoc1jdC8AL+NJKRLVlaNHwjTWTjozX1lvgFQg24WvCg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1667831983; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=eqxhYyeojQe2Ib53kjbVyPX79LdO/gqtoV91n+Zc3z4=; b=i6P5atRT4wDkN11iqexFIqxfZJiRXvnA+SCyE3vSqP/XXbRCU2w1v/TQCj0NBa3QiEzt7nyA9cfKdQC4QIOmO+P42soQdiZzXhbG2YnDPmVjCTWkk4Sj0TYPDKpB/j+8GKeX0P1x5jnaNkbHfnB1pSYMhpGGGOOYTW3xcmEAiyQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1667831983389269.712745264858; Mon, 7 Nov 2022 06:39:43 -0800 (PST) Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-413-ugZYicufOp2fFLiJoEcMLA-1; Mon, 07 Nov 2022 09:39:35 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D1162932494; Mon, 7 Nov 2022 14:39:32 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 733622166B31; Mon, 7 Nov 2022 14:39:31 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 04C6219465B3; Mon, 7 Nov 2022 14:39:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 1CBD019465B1 for ; Mon, 7 Nov 2022 14:39:22 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 02CDD4B3FCD; Mon, 7 Nov 2022 14:39:22 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.33.36.58]) by smtp.corp.redhat.com (Postfix) with ESMTP id DECD74B3FC6; Mon, 7 Nov 2022 14:39:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667831982; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=eqxhYyeojQe2Ib53kjbVyPX79LdO/gqtoV91n+Zc3z4=; b=DwKQJmtJatSWWt9Hci/pQU0b7h/BzfcNu0cMiK85LyBuMMdaiSnZiqRG4q4bUeJvHJ9hk5 uz4w0yT83R6LQwppqz+2ShIITOLmyDek5lF2gJ33hJOKOjSAko4ceLj1QHKFF7fpXmKrIc HQe6LlpwHQSuywHXvvjXzR50EXKH0cY= X-MC-Unique: ugZYicufOp2fFLiJoEcMLA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Subject: [libvirt PATCH v4 1/4] build-aux: only forbid gethostname in C files Date: Mon, 7 Nov 2022 14:39:07 +0000 Message-Id: <20221107143910.972928-2-berrange@redhat.com> In-Reply-To: <20221107143910.972928-1-berrange@redhat.com> References: <20221107143910.972928-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?J=C3=A1n=20Tomko?= Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1667831983762100001 This function is fine to use in other languages Reviewed-by: J=C3=A1n Tomko Signed-off-by: Daniel P. Berrang=C3=A9 --- build-aux/syntax-check.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index 68cd9dff5f..e1d80bd536 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -203,6 +203,7 @@ sc_prohibit_readlink: =20 sc_prohibit_gethostname: @prohibit=3D'gethostname *\(' \ + in_vc_files=3D'\.[ch]$$' \ halt=3D'use virGetHostname, not gethostname' \ $(_sc_search_regexp) =20 --=20 2.37.3