From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 6FA8F3858D1E for ; Wed, 21 Dec 2022 16:54:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6FA8F3858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org Received: from tarox.wildebeest.org (83-87-18-245.cable.dynamic.v4.ziggo.nl [83.87.18.245]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id DBFDB300071A; Wed, 21 Dec 2022 17:54:40 +0100 (CET) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id BA0F4413CD0E; Wed, 21 Dec 2022 17:54:39 +0100 (CET) Message-ID: Subject: Re: [PATCH 08/25] Use configure to detect HAVE_DECL_MMAP and use it for system doesn't provide sys/mman.h From: Mark Wielaard To: luoyonggang@gmail.com Cc: elfutils-devel@sourceware.org Date: Wed, 21 Dec 2022 17:54:39 +0100 In-Reply-To: References: <20221020182603.815-1-luoyonggang@gmail.com> <20221020182603.815-9-luoyonggang@gmail.com> <58555b250db8b3f75abab545b3aa24226d0e23a9.camel@klomp.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-3031.1 required=5.0 tests=BAYES_00,BODY_8BITS,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, On Wed, 2022-12-21 at 00:30 +0800, =E7=BD=97=E5=8B=87=E5=88=9A(Yonggang Luo= ) via Elfutils-devel=20 wrote: > On Tue, Dec 20, 2022 at 10:04 PM Mark Wielaard > wrot > > I have to think what it means for a system that doesn't have mmap > > since > > the mmap extensions are part of the public interface. And various > > parts > > of the libraries depend on knowledge that they can read/write > > directly > > from mmapped parts. Does it really make sense to try to support a > > platform without mmap? >=20 > Windows have mmap, just didn't have the direct posix mman API So how does the API look like? Is there a posix mmap emulation available? Thanks, Mark