From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa35.google.com (mail-vk1-xa35.google.com [IPv6:2607:f8b0:4864:20::a35]) by sourceware.org (Postfix) with ESMTPS id 93BA63858D1E for ; Thu, 22 Dec 2022 03:50:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 93BA63858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-xa35.google.com with SMTP id j5so427059vkp.10 for ; Wed, 21 Dec 2022 19:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WY3p/G6imXQajzbvpNa71/SIFxVpYCWGOezaHR40LLQ=; b=eoYasYfc9MXicSP3jWLHC59BLMHpa6Mi3oDqAqnrSEmILyw4Gev8XA71mzNC+e+iYZ 0IAnDNx/qrUAXF0NBnCMvhH/2pkM5NCC/bwf7j5nOG8BloeG4GDaQ/8cWQUL3PvCqHdj 7pixZBgzoMtfZ8U77JjgAvnhDI4BRXO+ARDoMyb1kGaWbQ8C3iBdZQ1V4c4+lqWKpOJP jSDL1dJYuiRg5kYK6JOOqco3V7LYQrWsCx6usc8a79UNfwGoxCwZjfymhpFzZLhtvkKQ rfOqbHkFxWRL3Y2QsrYp5WwptNL32i0NMUaYuStWy2bBz+e4z3fbqLvaqANgtF9B/PXt +2aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WY3p/G6imXQajzbvpNa71/SIFxVpYCWGOezaHR40LLQ=; b=5px23rQr/vWei888TV4vCLxQLHcf23bgzHo6e65aEpMmYCuC5WX/hVb2cogPh1JQMg +SefzlHF7rXxfoFHBLco01ZuxzS8iMGkBdS0qtA4COiLKOePKK5kzgg9hS6ey3dZVFWU LrtM2VVn9pjYrtmXf2XzSuRoxoUCz0WswokYfmDMaUZdf9NfN/USpFSc2w6yqxoj2wr6 yVpE9O1bBEGahizVLYQe+3+8I7JpZtL2dJ+5SymWvbTFt/WvXswIR0RcuWEGQloKAC7G vmO6qBP2F0y7c9o6cNvTwPYqa/nW1zfxnmnW4pkvJlO2B2CEl+8ql/ZenJwLMaesjPhb 784w== X-Gm-Message-State: AFqh2koOKhzZI/CL4BL3VRF/aCSDwtd2c0PSKylE4zI+JynzNZwrlxUH qZwPlCGFrCwXkgnUMJRwZX8EPC96OVCuN0GNrXLdEHz2k50= X-Google-Smtp-Source: AMrXdXtnRjCwQ/kTwSyX/z0xIqgRx6wqy3JMSGrLPghSgRETrirXweaHnnVwsqftNoCFvQi+qwFSTS7KVqrFfWCuqWg= X-Received: by 2002:a1f:1fc2:0:b0:3d1:df04:322c with SMTP id f185-20020a1f1fc2000000b003d1df04322cmr460281vkf.8.1671681024758; Wed, 21 Dec 2022 19:50:24 -0800 (PST) MIME-Version: 1.0 References: <20221020182603.815-1-luoyonggang@gmail.com> <20221020182603.815-9-luoyonggang@gmail.com> <58555b250db8b3f75abab545b3aa24226d0e23a9.camel@klomp.org> In-Reply-To: Reply-To: luoyonggang@gmail.com From: =?UTF-8?B?572X5YuH5YiaKFlvbmdnYW5nIEx1byk=?= Date: Thu, 22 Dec 2022 11:50:12 +0800 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 To: Mark Wielaard Cc: elfutils-devel@sourceware.org Content-Type: multipart/alternative; boundary="000000000000a89b1605f0629101" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000a89b1605f0629101 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 22, 2022 at 12:54 AM Mark Wielaard wrote: > > Hi, > > On Wed, 2022-12-21 at 00:30 +0800, =E7=BD=97=E5=8B=87=E5=88=9A(Yonggang L= uo) via Elfutils-devel > 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? > > > > 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? Cygwin did that, other than cygwin, for mingw/msvc, there is https://github.com/klauspost/mman-win32/blob/master/mman.h > > Thanks, > > Mark -- =E6=AD=A4=E8=87=B4 =E7=A4=BC =E7=BD=97=E5=8B=87=E5=88=9A Yours sincerely, Yonggang Luo --000000000000a89b1605f0629101--