Likely incorrect patch: remove the faulty basename() prototype from libiberty

Ed Schouten ed@nuxi.nl
Fri Jun 3 09:37:00 GMT 2016


Hi Joseph,

2016-06-02 23:27 GMT+02:00 Joseph Myers <joseph@codesourcery.com>:
> Note that there are two different and incompatible basename functions.

... when using glibc.

On systems with other C libraries, there is typically only one variant
of basename(). In some cases it tends to be the BSD one, in others it
tends to be the one from POSIX (which glibc calls __xpg_basename).

On systems that do provide the POSIX variant, consumers of libiberty
already use it, regardless of what they'd want.

-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717



More information about the Gdb-patches mailing list