aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2010-04-24 01:03:21 +0000
committerDJ Delorie <dj@redhat.com>2010-04-24 01:03:21 +0000
commit2cd2156f48361fa342ce1ad18cead5cae6ce4af5 (patch)
treeb8420cdb82b96deb0b0dd9c0544c34da6c3d0280 /include/libiberty.h
parent65730243397a2680bfb31b18d32c366f450a78d1 (diff)
downloadgdb-2cd2156f48361fa342ce1ad18cead5cae6ce4af5.zip
gdb-2cd2156f48361fa342ce1ad18cead5cae6ce4af5.tar.gz
gdb-2cd2156f48361fa342ce1ad18cead5cae6ce4af5.tar.bz2
merge from gcc
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libiberty.h b/include/libiberty.h
index a7716e4..b320b18 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 *);