<span style='font-family:Verdana'><span style='font-size:12px'>Hello,<div> </div><div>There are two main implementations of basename() in the GNU system, one is libgen.h and one from string.h (being accessible here as _GNU_SOURCE). Currently we do not support systems other than with GNU Lib C (except possible compatibility layers), because we assume the basename() is shipped with string.h.</div><div> </div><div>There is a fundamental question before adding a header of libgen.h: the POSIX standard explicitly allows to modify the input -- is it acceptable?</div><div> </div><div>Should be there a rewriten a xbasename() version of this function to make sure it's portable across systems?</div><div> </div><div>Regards,</div></span></span>