From patchwork Tue Jun 22 05:11:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siddhesh Poyarekar X-Patchwork-Id: 1495446 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=aMD7h788; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4G8Dzs66H2z9sj5 for ; Tue, 22 Jun 2021 15:12:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E21C3393D012 for ; Tue, 22 Jun 2021 05:12:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E21C3393D012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624338758; bh=i2GOtgZDHVuTxOmwV2LcZxvXngFR069PsYkvXxrFYAo=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aMD7h788L58ZFkdwBe/4vtD295ZKdo3ImGuGZ3wgYbQS/+Vk0EsgjIu4At201PFh1 n819+iBmzoYtYpi5PhqXDL4UmmY5h+sgiES0yPNtRvVQen3iuxMO+vbXrgxVGvV/Je L0bqFEcjHgH+qgAgKs5ld17dHJLj0B5xzPxvbFwY= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from olivedrab.birch.relay.mailchannels.net (olivedrab.birch.relay.mailchannels.net [23.83.209.135]) by sourceware.org (Postfix) with ESMTPS id 1F8DF385501B for ; Tue, 22 Jun 2021 05:12:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1F8DF385501B X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id F1FFA922D87 for ; Tue, 22 Jun 2021 05:12:22 +0000 (UTC) Received: from pdx1-sub0-mail-a46.g.dreamhost.com (100-96-133-115.trex.outbound.svc.cluster.local [100.96.133.115]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 6C01C92285E for ; Tue, 22 Jun 2021 05:12:22 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|siddhesh@gotplt.org Received: from pdx1-sub0-mail-a46.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.133.115 (trex/6.3.3); Tue, 22 Jun 2021 05:12:22 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|siddhesh@gotplt.org X-MailChannels-Auth-Id: dreamhost X-Coil-Towering: 64be44a826de70dc_1624338742655_1457498220 X-MC-Loop-Signature: 1624338742655:3347807728 X-MC-Ingress-Time: 1624338742654 Received: from pdx1-sub0-mail-a46.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a46.g.dreamhost.com (Postfix) with ESMTP id 30BDB880B4 for ; Mon, 21 Jun 2021 22:12:22 -0700 (PDT) Received: from rhbox.intra.reserved-bit.com (unknown [1.186.101.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: siddhesh@gotplt.org) by pdx1-sub0-mail-a46.g.dreamhost.com (Postfix) with ESMTPSA id DFF2A7F50D for ; Mon, 21 Jun 2021 22:12:20 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a46 To: libc-alpha@sourceware.org Subject: [PATCH v2 0/6] gconv configuration parsing cleanups Date: Tue, 22 Jun 2021 10:41:56 +0530 Message-Id: <20210622051202.4155709-1-siddhesh@sourceware.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3487.1 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_NONE, KAM_DMARC_STATUS, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Siddhesh Poyarekar via Libc-alpha From: Siddhesh Poyarekar Reply-To: Siddhesh Poyarekar Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" This patchset consolidates the file parsing in gconv_conf and iconvconfig into a single file gconv_parseconfdir. Also, add a NEWS item to mention gconv-modules.d since it is a user visible change. Changes from v1: - Updated 4/6 to fix dirlen increment and add unused attribute. Siddhesh Poyarekar (6): iconv: Remove alloca use in gconv-modules configuration parsing gconv_conf: Remove unused variables gconv_conf: Split out configuration file processing iconvconfig: Use common gconv module parsing function Handle DT_UNKNOWN in gconv-modules.d Add NEWS item for gconv-modules.d change NEWS | 8 ++ iconv/gconv_conf.c | 142 ++----------------------------- iconv/gconv_parseconfdir.h | 168 +++++++++++++++++++++++++++++++++++++ iconv/iconvconfig.c | 123 +++------------------------ 4 files changed, 197 insertions(+), 244 deletions(-) create mode 100644 iconv/gconv_parseconfdir.h