From nobody Sun Feb 8 10:50:34 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1666174660; cv=none; d=zohomail.com; s=zohoarc; b=jB3qdD7b2FfClZsbJc1zTaM+41i4UOLGmjAq6TT+nNP8Wb5/l6qQnJa8gHUf7uwTDGQPgZZw1/nb0u3j8iQOhpinOLwRRNPtd8NMJGz+tah3JMQm0DraN7fM8C6/vRm0OURoUrV2oc7BLpLNPNm1xUAfjbGkNCxf/ApcNcQlnOc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1666174660; h=Content-Type:Content-Transfer-Encoding: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=h87/olR+8OQLzRkyjsDhEppSVBJZxcL5DNkbq8m/LbQ=; b=n96hhaqHP2+HHf0m2BH8I5GQ50V4AadQVVYhJg5YlkmR4bJ24axb9BG6I9LULwueuhE5n6LNe37CpAQp2Ie9P5lXNiYnr+HjxOesxDWIbwO4Mi0UYv0/LQdGODgIgNlnPCXrgvHnltJo4i5g+UN0j1lYiszYHMTbAHx6skpPtnQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1666174660013339.42900329060956; Wed, 19 Oct 2022 03:17:40 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-662-SQHM9n6rM6mpPW7KZSi6CA-1; Wed, 19 Oct 2022 06:17:31 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C1F3984ACC8; Wed, 19 Oct 2022 10:17:24 +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 27E5C414A819; Wed, 19 Oct 2022 10:17:24 +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 5812719465B8; Wed, 19 Oct 2022 10:17:20 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 7E94C19465B7 for ; Wed, 19 Oct 2022 10:17:19 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id B37A8146852E; Wed, 19 Oct 2022 10:17:18 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.33.36.69]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4448A146852A; Wed, 19 Oct 2022 10:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666174658; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=h87/olR+8OQLzRkyjsDhEppSVBJZxcL5DNkbq8m/LbQ=; b=aidLssy1veDzbgzoMhioAPMbMwDvg9lBSnnj+Nk5hh2T8YNBUuQCVZ2zvx6LjHwl4ZhxyZ drgD3RPgkGRFp1m7uV/bo/SrsoSAPx9MiB6E3KsBs09b9K5NGNivFaiuierE78+hR8UWCG p+Cnc4SxB91RM3mHVehVuX/N+5FL4kQ= X-MC-Unique: SQHM9n6rM6mpPW7KZSi6CA-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 v2 01/12] build-aux: only forbid gethostname in C files Date: Wed, 19 Oct 2022 11:17:01 +0100 Message-Id: <20221019101712.2231862-2-berrange@redhat.com> In-Reply-To: <20221019101712.2231862-1-berrange@redhat.com> References: <20221019101712.2231862-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 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: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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: 1666174662041100007 This function is fine to use in other languages 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 e35c2be734..8dc7495c45 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