view doc/posix-functions/basename.texi @ 40139:3bacbf659cc9

ttyname_r: Work around bug on Android 4.3. * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub. * lib/ttyname_r.c (ttyname_r): Implement for Android. * doc/posix-functions/ttyname_r.texi: Mention the Android bug. * doc/posix-functions/ttyname.texi: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sat, 26 Jan 2019 11:56:31 +0100
parents 0f6b0bb3cee9
children
line wrap: on
line source

@node basename
@section @code{basename}
@findex basename

POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/basename.html}

Gnulib module: ---

Portability problems fixed by Gnulib:
@itemize
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
IRIX 6.5, Solaris 2.5.1, mingw, MSVC 14, BeOS.
@item
glibc and Android have two different functions @code{basename}: the POSIX
version and the GNU version.
@item
@code{basename} assumes file names in POSIX syntax; it does not work with file
names in Windows syntax.
@end itemize

The Gnulib module @code{dirname} provides similar API, with function
@code{base_name}, that also works with Windows file names.