From nobody Thu Dec 18 08:11:52 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 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=1574261476; cv=none; d=zoho.com; s=zohoarc; b=fuZu532GUq1jxX94+jqbjpqbP/5wIELA35+iMf5fNY5AMnb7qMY0xQ0tfl5LR8jwVahgnPyo/Th88eQZf0IKnahgOU81DxUgn7RIyjp7hCPh6xlBrClj5SXqkiiv7tyn4KankbxPSSFZhg79pm0H0bSxd29IRcPcDVho9RICNoo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1574261476; 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=4VB4r8XIhR7uNwf5mjoWFhnxWbIt+qypIKz3sK/dCw4=; b=FGidt6R6ZffqVW4VlOBiohiGXge1L6wMcqBrH1qSxi8EaqnBN5TPq9fxVasn6J2Hly6m7kIqm1FzpXZRNmEotPuHZaaL1+KuAlEP4AdBlO+2Rn858GfP+NTS11Wiucjy7H7dpHfCLWt9Qo4PiB8ayY8kn9bWo7jILTENoMML1s0= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 15742614762721001.7352357183058; Wed, 20 Nov 2019 06:51:16 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-5-dsiESJI4NQaQ0ESoTTIRQw-1; Wed, 20 Nov 2019 09:49:06 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7D81D9126A; Wed, 20 Nov 2019 14:48:59 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5638667154; Wed, 20 Nov 2019 14:48:59 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 0AE851803C40; Wed, 20 Nov 2019 14:48:59 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xAKEmjcH004897 for ; Wed, 20 Nov 2019 09:48:45 -0500 Received: by smtp.corp.redhat.com (Postfix) id D9F5E1054FC0; Wed, 20 Nov 2019 14:48:45 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.43.2.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 650591054FBF for ; Wed, 20 Nov 2019 14:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574261474; 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=4VB4r8XIhR7uNwf5mjoWFhnxWbIt+qypIKz3sK/dCw4=; b=NCTiy28I2vE9XDdH6oJ+BEIQfk9VIOa7valGT7ZLDIje6BTlDw+wsEoyH3N17qOnvINaGp +qkCtysCqm7Z1ksXjE9uG4mvmlDQ1Ln5R9q7NOMrdHGYgrNa41SepVMjFUbfwQIK7GtjtR +Vn1xbuojJRoK19/Fjg79P+HB9+RRBs= From: Pavel Hrdina To: libvir-list@redhat.com Date: Wed, 20 Nov 2019 15:48:26 +0100 Message-Id: <065a4cbcb73fa8ea28f4d9a9ed589182087fd8c9.1574261216.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 13/14] syntax-check: update c-type checks to refer to Glib X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-MC-Unique: dsiESJI4NQaQ0ESoTTIRQw-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- build-aux/syntax-check.mk | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/build-aux/syntax-check.mk b/build-aux/syntax-check.mk index f1e976ec76..fd8c2c6be5 100644 --- a/build-aux/syntax-check.mk +++ b/build-aux/syntax-check.mk @@ -532,7 +532,7 @@ sc_prohibit_select: # Prohibit the inclusion of . sc_prohibit_ctype_h: @prohibit=3D'^# *include *' \ - halt=3D'use c-ctype.h instead of ctype.h' \ + halt=3D'use Glib g_ascii_* function instead of ctype.h' \ $(_sc_search_regexp) =20 # We have our own wrapper for mocking purposes @@ -583,7 +583,7 @@ ctype_re =3D isalnum|isalpha|isascii|isblank|iscntrl|is= digit|isgraph|islower\ sc_avoid_ctype_macros: @prohibit=3D'\b($(ctype_re)) *\(' \ in_vc_files=3D'\.[ch]$$' \ - halt=3D'use c-ctype.h instead of ctype macros' \ + halt=3D'use Glib g_ascii_ macros instead of ctype macros' \ $(_sc_search_regexp) =20 sc_avoid_strcase: @@ -1552,13 +1552,6 @@ sc_prohibit_openat_without_use: re=3D'\<(openat_(permissive|needs_fchdir|(save|restore)_fail)|l?(stat|ch(= own|mod))at|(euid)?accessat|(FCHMOD|FCHOWN|STAT)AT_INLINE)\>' \ $(_sc_header_without_use) =20 -# Prohibit the inclusion of c-ctype.h without an actual use. -ctype_re =3D isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islow= er\ -|isprint|ispunct|isspace|isupper|isxdigit|tolower|toupper -sc_prohibit_c_ctype_without_use: - @h=3D'c-ctype.h' re=3D'\