From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.devel Subject: Re: mmap for guile Date: Tue, 05 Jul 2022 08:49:48 -0400 Message-ID: References: <56ee7537-1666-3d04-7093-732a75624e9b@gmail.com> <0cf4e4ee80169487694b844996e04f3293eab92f.camel@telenet.be> <87k08tfau0.fsf@gnu.org> <87fsjg8x2a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11213"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) Cc: guile-devel@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jul 05 14:50:41 2022 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8i0l-0002iA-Mw for guile-devel@m.gmane-mx.org; Tue, 05 Jul 2022 14:50:39 +0200 Original-Received: from localhost ([::1]:48660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8i0k-0005GA-2T for guile-devel@m.gmane-mx.org; Tue, 05 Jul 2022 08:50:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8i02-0005CZ-N9 for guile-devel@gnu.org; Tue, 05 Jul 2022 08:49:54 -0400 Original-Received: from s1.lexort.com ([71.19.148.97]:50607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8hzz-0004FX-MN; Tue, 05 Jul 2022 08:49:53 -0400 Original-Received: by s1.lexort.com (Postfix, from userid 10853) id 81859410726; Tue, 5 Jul 2022 08:49:48 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lexort.com; s=mail; t=1657025388; bh=vqzNM9xm29PbeU+N+o22k0wOc9z4FFmOLyVadzX5zdE=; h=From:To:Cc:Subject:References:Date; b=G0tIFDwznWAY62dGFr91HjJ9vW2o2dXgVcrXH06n7asPRai2vzYunKHJ+KcBAhX5Q KDjWD72iZHER5/fFhCIPaFFkeuUYhjWTTzRFeW9zQAes0RYDLpfGpdBCIr/vruTPLE +sMFXAMhVokR3qmzN22mc6XgIc8ybQTX1EMNJ6xg= OpenPGP: id=098ED60E Received-SPF: pass client-ip=71.19.148.97; envelope-from=gdt@lexort.com; helo=s1.lexort.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:21254 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Greg Troxel skribis: > >> I have been meaning to try to build this under NetBSD, to check >> portability. I think the mmap code should by default rely only on what >> POSIX guarantees: >> https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html > > Agreed. Great to hear that. There are a bunch of guile fans in BSD-land and we try to keep up :-) After I wrote, I actually did get to testing on netbsd-9 amd64, which was easier than I thought it might be. With the patch Matt sent, guile 3.0.8 built (and packaged under pkgsrc), and I was able to see the mmap functions docs in the repl. I tried to run the tests but got an undefined symbol, not apparently related. My machine is in the process of rebuilding most packages and I will revist when that's done, starting with tests on unmodified 3.0.8. >> As for referring to glibc, that reference only resolves on GNU/Linux >> systems, whereas any POSIX system ought to have an mmap man page, so it >> would be nice not to drop the man page ref, esp. as it grounds the >> implementation as being about the POSIX interface. > > The manual can mention the man page too, sure, but note that the manual > already refers to glibc=E2=80=99s for all things libc. I see -- I guess there is a fine line between glibc the implementation of what C99/POSIX defines as "what must be in libc" the spec, but that's a big can of worms and if this documentation ends up like the existing one, then it is not reasonable for me to worry about it :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQS7wyAjWilQwVHG9Vsf2nroCY7WDgUCYsQzbAAKCRAf2nroCY7W DhHrAJ9qpWhUdvQZmO+2u36JOTm2mp8/twCffNe3GKoNiXtP7tHoE0x5fxGAz0Y= =/9TY -----END PGP SIGNATURE----- --=-=-=--