pathspec.c: rename newly public functions for clarity