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