diff options
author | DJ Delorie <dj@redhat.com> | 2007-03-29 21:03:48 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2007-03-29 21:03:48 +0000 |
commit | 9c577e8950071038688208bdf50283836d251c28 (patch) | |
tree | df3a21dba86315b5ebde37eb98c202585533b4f9 /libiberty/functions.texi | |
parent | 483367eebc8c51366968b17df2fc9ce93b95895f (diff) | |
download | gdb-9c577e8950071038688208bdf50283836d251c28.zip gdb-9c577e8950071038688208bdf50283836d251c28.tar.gz gdb-9c577e8950071038688208bdf50283836d251c28.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/functions.texi')
-rw-r--r-- | libiberty/functions.texi | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libiberty/functions.texi b/libiberty/functions.texi index 9f49ff4..fd3e8e7 100644 --- a/libiberty/functions.texi +++ b/libiberty/functions.texi @@ -268,6 +268,22 @@ value 1). If @var{valu} is zero, zero is returned. @end deftypefn +@c filename_cmp.c:28 +@deftypefn Extension int filename_cmp (const char *@var{s1}, const char *@var{s2}) + +Return zero if the two paths @var{s1} and @var{s2} are equivalent. +If not equivalent, the returned value is similar to what strcmp would +return. In other words, it returns a negative value if @var{s1} is less +than @var{s2}, or a positive value if @var{s2} is greater than @var{s2}. + +This function does not normalize path names. As a result, this function +will treat filenames that are spelled differently as different even in +the case when the two filenames point to the same underlying file. +However, it does handle the fact that on DOS-like file systems, forward +and backward slashes are equal. + +@end deftypefn + @c fnmatch.txh:1 @deftypefn Replacement int fnmatch (const char *@var{pattern}, const char *@var{string}, int @var{flags}) |