From a39be4e22d2dd34eb403557e0be08dc640fd52e7 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Sat, 24 Apr 2010 01:03:15 +0000 Subject: merge from gcc --- include/libiberty.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/libiberty.h') diff --git a/include/libiberty.h b/include/libiberty.h index a7716e4a4..b320b18e9 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -116,6 +116,17 @@ extern char *basename (const char *); extern const char *lbasename (const char *); +/* Same, but assumes DOS semantics (drive name, backslash is also a + dir separator) regardless of host. */ + +extern const char *dos_lbasename (const char *); + +/* Same, but assumes Unix semantics (absolute paths always start with + a slash, only forward slash is accepted as dir separator) + regardless of host. */ + +extern const char *unix_lbasename (const char *); + /* A well-defined realpath () that is always compiled in. */ extern char *lrealpath (const char *); -- cgit v1.2.3