You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
-#ifndef PATHSTUFF_H
-#define PATHSTUFF_H
+#ifndef COMMON_PATHSTUFF_H
+#define COMMON_PATHSTUFF_H
#include "common/byte-vector.h"
extern gdb::unique_xmalloc_ptr<char> gdb_abspath (const char *path);
+/* If the path in CHILD is a child of the path in PARENT, return a
+ pointer to the first component in the CHILD's pathname below the
+ PARENT. Otherwise, return NULL. */
+
+extern const char *child_path (const char *parent, const char *child);
+
/* Return whether PATH contains a directory separator character. */
extern bool contains_dir_separator (const char *path);
extern gdb::char_vector make_temp_filename (const std::string &f);
-#endif /* PATHSTUFF_H */
+#endif /* COMMON_PATHSTUFF_H */