Bug 18443

Summary: basename namespace
Product: glibc Reporter: Joseph Myers <jsm28>
Component: libcAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: drepper.fsp
Priority: P2 Flags: fweimer: security-
Version: 2.21   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

Description Joseph Myers 2015-05-21 15:41:29 UTC
The function basename is the GNU version, and __xpg_basename (with redirects in libgen.h) is the XPG version.  But under POSIX, functions not involving types defined in a header can be declared and used directly.  So (with appropriate symbol versions to support existing binaries) plain basename should get the XPG function and __gnu_basename should be the GNU version.