From patchwork Tue Jun 29 10:11:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 44040 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 77DFC3973051 for ; Tue, 29 Jun 2021 10:11:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77DFC3973051 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624961488; bh=lLQHhVqQjzSDVFT/pXZZ36rZCXuh4Mt3ebjFpAdAcgE=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=aQfsh6RFuiVME+bROCW13T93bKnJA+z4I+AKyrFKHsS9ywPmPPDg7I53nZVVGbgVu UDPimwNOsk2cPkviJKU4C2oLvPamyQN2cdEtvJJCOWHbS1E+z/i3n1xGbEEA56VXIQ yvU/yn6mbRRCelHEtjxkjTiy8CvNf29agVRka7wo= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 2E068386FC36 for ; Tue, 29 Jun 2021 10:11:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2E068386FC36 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-304-uCT2rhmUOCauEDuuRPURQw-1; Tue, 29 Jun 2021 06:11:04 -0400 X-MC-Unique: uCT2rhmUOCauEDuuRPURQw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B84F6100C618 for ; Tue, 29 Jun 2021 10:11:03 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-112-228.ams2.redhat.com [10.36.112.228]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1A57D19C79 for ; Tue, 29 Jun 2021 10:11:02 +0000 (UTC) To: libc-alpha@sourceware.org Subject: [PATCH v2 0/7] nss_files move X-From-Line: a11b3386cbab6622b6a19fda20090c8ab5fd3a7b Mon Sep 17 00:00:00 2001 Message-Id: Date: Tue, 29 Jun 2021 12:11:01 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham 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: Florian Weimer via Libc-alpha From: Florian Weimer Reply-To: Florian Weimer Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" This is a repost of the previous series, minus the first patch (Andreas had reviewd it, and I pushed it). This resolves a conflict around the gconv refactor and the getdelim cleanup in this series. Tested on i686-linux-gnu, x86_64-linux-gnu. Built with build-many-glibcs.py. Thanks, Florian Florian Weimer (7): inet: Add hidden prototype for __inet_network libio: Add hidden prototype for ungetc libio: Replace internal _IO_getdelim symbol with __getdelim nss_files: Allocate nscd file registration data on the heap nss_files: Add generic code for set*ent, end*ent and file open nss_files: Move into libc nss: Access nss_files through direct references iconv/gconv_parseconfdir.h | 2 +- include/arpa/inet.h | 2 + include/libc-symbols.h | 23 ---- include/netdb.h | 2 +- include/nss_files.h | 80 +++++++++++- include/stdio.h | 2 + inet/inet_net.c | 4 +- libio/iogetdelim.c | 7 +- libio/ioungetc.c | 6 +- libio/libioP.h | 1 - nss/Makefile | 14 +-- nss/Versions | 17 ++- nss/nss_files/files-XXX.c | 73 +++-------- nss/nss_files/files-alias.c | 86 ++++--------- nss/nss_files/files-ethers.c | 2 - nss/nss_files/files-grp.c | 2 - nss/nss_files/files-hosts.c | 17 +-- nss/nss_files/files-init.c | 58 ++++----- nss/nss_files/files-initgroups.c | 3 +- nss/nss_files/files-netgrp.c | 11 +- nss/nss_files/files-network.c | 4 +- nss/nss_files/files-parse.c | 8 +- nss/nss_files/files-proto.c | 2 - nss/nss_files/files-pwd.c | 2 - nss/nss_files/files-rpc.c | 2 - nss/nss_files/files-service.c | 2 - nss/nss_files/files-sgrp.c | 2 - nss/nss_files/files-spwd.c | 2 - nss/nss_files_data.c | 159 ++++++++++++++++++++++++ nss/nss_files_functions.c | 43 +++++++ nss/nss_module.c | 38 +++++- nss/nss_module.h | 4 + nss/nss_readline.c | 4 +- stdio-common/getline.c | 2 +- sysdeps/unix/sysv/linux/readonly-area.c | 2 +- 35 files changed, 440 insertions(+), 248 deletions(-) create mode 100644 nss/nss_files_data.c create mode 100644 nss/nss_files_functions.c