public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
From: Guillem Jover <guillem@hadrons.org>
To: Alejandro Colomar <alx.manpages@gmail.com>
Cc: Andrew Clayton <andrew@digital-domain.net>,
	linux-man@vger.kernel.org,
	Michael Kerrisk <mtk.manpages@gmail.com>,
	Alejandro Colomar <alx@kernel.org>
Subject: Re: [PATCH] memmem.3: Added list of known systems where this is available
Date: Wed, 23 Nov 2022 00:11:52 +0100	[thread overview]
Message-ID: <Y31XOPOsB932l0cd@thunder.hadrons.org> (raw)
In-Reply-To: <853fa349-8e78-8ce8-f76f-79b4b9353913@gmail.com>

Hi!

On Thu, 2022-11-10 at 12:36:47 +0100, Alejandro Colomar wrote:
> On 11/10/22 01:13, Andrew Clayton wrote:
> > While looking at which systems provide memmem(3) I have been able to
> > discern the following:
> > 
> >    musl libc since v0.9.7
> >    bionic since Android 9
> > 
> >    FreeBSD since 6.0
> >    OpenBSD since 5.4
> >    NetBSD
> >    macOS
> >    Illumos
 
> > For macOS and Illumos I checked the memmem(3) man page on those systems.
> > For the rest there are links below to on-line man pages or commit logs.

> > +FreeBSD 6.0, OpenBSD 5.4, NetBSD, macOS & Illumos.
 
> For the commit message, it's interesting to note macOS and Bionic, for
> speleology purposes.  However, I'm opposed to adding them to the page itself
> because of the following:
> 
> -  macOS is not free software.  I refuse to reference nonfree software on
> this project.

I understand where you are coming from, and from a full system PoV,
it's very true that macOS is non-free. But the lower layers of its
stack are free software (at least according to the FSF and OSI), such
as its kernel (Darwin), or its libc (where memmem() is implemented):

  https://opensource.apple.com/source/Libc/Libc-1439.40.11/

among others.

Similar with Solaris and Illumos (but with the CDDL, MIT, BSD), AFAIUI.

> -  Android is not a real Unix system, in that you can't even program in C in
> there, unless you're Google or have hacked your system.  It's not friendly
> to us programmers, so we don't need to be friendly to it.  I don't want to
> be cluttering the pages with information that is irrelevant to normal users.

I'm assuming bionic is being used in some of the Android free
alternatives too, but then I'm not sure how usable for programming those
are either. And, well musl libc is not a real Unix system you can program
against either. :)

In any case I also find it useful to have this kind of portability
information when deciding what to use in code. But can understand the
reluctance to include such references, at least if thought out as the
entire system. Perhaps thinking about these merely at their kernel or
libc level would make including information about some of them more
palatable, given that standalone they are free software? So perhaps
an option is to instead refer to their specific components, say
"bionic libc X.Y", "Apple Libc M.N.O" or similar.

Thanks,
Guillem

  parent reply	other threads:[~2022-11-22 23:29 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10  0:13 [PATCH] memmem.3: Added list of known systems where this is available Andrew Clayton
2022-11-10 11:36 ` Alejandro Colomar
2022-11-10 12:58   ` Andrew Clayton
2022-11-10 14:16     ` Alejandro Colomar
2022-11-22 23:11   ` Guillem Jover [this message]
2022-11-23 12:52     ` Stefan Puiu
2022-11-23 13:16       ` Alejandro Colomar
2022-11-23 14:55         ` [musl] " Jeffrey Walton
2022-11-23 15:11           ` Alejandro Colomar
2022-11-24 18:57         ` Stefan Puiu
2022-12-11 16:30           ` Alejandro Colomar
2022-11-10 23:31 ` [PATCH v2] memmem.3: Add " Andrew Clayton
2022-11-10 23:59   ` Alejandro Colomar
2022-11-11  0:04     ` Andrew Clayton
2022-11-11  0:05       ` Alejandro Colomar
2022-11-11  0:20         ` Andrew Clayton
2022-11-11  0:21           ` Alejandro Colomar
2022-11-11  1:27 ` [PATCH v3] " Andrew Clayton
2022-11-11  1:35   ` Alejandro Colomar
2022-11-11 18:09   ` Brian Inglis
  -- strict thread matches above, loose matches on Subject: below --
2022-11-24 19:13 [PATCH] memmem.3: Added " Brian Inglis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y31XOPOsB932l0cd@thunder.hadrons.org \
    --to=guillem@hadrons.org \
    --cc=alx.manpages@gmail.com \
    --cc=alx@kernel.org \
    --cc=andrew@digital-domain.net \
    --cc=linux-man@vger.kernel.org \
    --cc=mtk.manpages@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox