[RFA] lmemmem.patch

DJ Delorie dj@redhat.com
Mon Mar 24 18:38:00 GMT 2008


> Ah.  I didn't know this was a hard and fast rule.  Is this
> documented somewhere?

It's not a hard-and-fast rule, just a "this is how we've been doing
it".  Either we implement our own code as l*() or provide replacements
for deficient OSs as *() as-needed.

Example: lbasename() exists because basename() in different C
libraries handle a path with a trailing slash differently.  Ours is
consistent across platforms.

Even worse for memmem(), as, according to the man page, some versions
passed arguments in a different order!

> How old is this?

Fedora 8, up-to-date as of last week.  glibc 2.7

FYI: we can copy things from gnulib as needed providing we keep the
license the same (GPL, LGPL, exceptions, etc), but if you do, please
also agree to keep it in sync with gnulib.



More information about the Gcc-patches mailing list