Lines Matching refs:glob
23 #include <glob.h>
25 /* RAII-style class wrapping "glob". */
30 /* Construct a "gdb_glob" object by calling "glob" with the provided
31 parameters. This function can throw if "glob" fails. */
35 int ret = glob (pattern, flags, errfunc, &m_glob);
42 error (_("glob could not process pattern '%s'."),
66 /* The actual glob object we're dealing with. */
78 /* This function uses glob in order to expand the ~. However, this function
80 Given "~/does/not/exist", glob will fail.
82 In order to avoid such limitation, we only use glob to expand "~" and keep
86 glob and leave "/might/not/exist" unchanged. */
97 const gdb_glob glob (to_expand.c_str (), GLOB_TILDE_CHECK, nullptr);
99 gdb_assert (glob.pathc () == 1);
100 return std::string (glob.pathv ()[0]) + remainder;