2 @subsection @code{basename}
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/functions/basename.html}
7 LSB specification:@* @url{https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/baselib-basename-3.html}
11 Portability problems fixed by Gnulib:
15 Portability problems not fixed by Gnulib:
18 This function is missing on some platforms:
21 glibc and Android have two different functions @code{basename}: the POSIX
22 version and the GNU version.
24 @code{basename} assumes file names in POSIX syntax; it does not work with file
25 names in Windows syntax.
28 The Gnulib module @code{basename-lgpl} provides similar API, with a function
29 @code{last_component}, that also works with Windows file names.