Re: on project management

Arsen Arsenović <[email protected]> Mon, 03 Aug 2026 23:09:40 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <[email protected]>
--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

enh <[email protected]> writes:

> the crazy part is that it was an _empty_ file until i made it just
> #include <string.h>:
> https://android-review.googlesource.com/c/platform/bionic/+/52171
>
> i can't explain that (it was originally checked in as an empty file,
> so the history is no help).
>
> i _can_ explain why i made it match glibc rather than just deleting it
> though: i didn't want to break existing code that was [harmlessly]
> including an empty file, and i wanted to increase the amount of the
> code from other libcs that would "just work". (and note that ios/macos
> have a <memory.h> that's just a #include <string.h> too.)

I think this partially confirms my suspicion earlier, that the only
reason anyone ever included <memory.h> is because on some system stuff
they wanted was not in <string.h> (but was only in the latter on some).
So the former tends to be included only when the latter is also, to
cover both cases.

I'd confirm definitely by getting the list of files from Debian
codesearch that include one and the other and comparing it, but I wasn't
able to figure out how to do that.
=2D-=20
Arsen Arsenovi=C4=87

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQECBAEWCgCqFiEE/uKz0RP8AKMWLWBhUsKUMB6ixJMFAmpxA5QbFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25z
Lm9wZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGRUUyQjNEMTEzRkMwMEEzMTYyRDYw
NjE1MkMyOTQzMDFFQTJDNDkzEBxhcnNlbkBhYXJzZW4ubWUACgkQUsKUMB6ixJON
YgD7BWB/Fwwb8cXyHLnK6ez2+BvM5SLUjmqpjuSlsrVLeyMA/iHgvCDBJs2+3nGb
L5WlNVMbgsnfCO6DR/Xqkozbej0A
=UJhF
-----END PGP SIGNATURE-----
--=-=-=--