xref: /netbsd-src/external/gpl3/gdb.old/lib/libgdb/common-agent.c (revision 47c37bc27558091724f1a0d4eef4c8f80c94c00a)
1 #include "common/agent.c"
2 
3 /* XXX
4  * Gdb wants to use its internal fnmatch that does wide characters overriding
5  * the one from libiberty. This is madness, let's use ours!
6  */
7 extern "C" int
gnu_fnmatch(const char * pattern,const char * string,int flags)8 gnu_fnmatch(const char *pattern, const char *string, int flags)
9 {
10 	return fnmatch(pattern, string, flags);
11 }
12 
13 /*
14  * According to the manual page canonicalize_file_name() is equivalent
15  * realpath(3) so use that.
16  */
17 extern "C" char *
canonicalize_file_name(const char * fn)18 canonicalize_file_name(const char *fn)
19 {
20 	return realpath(fn, NULL);
21 }
22