Lines Matching refs:filename
477 mach_modpath(char *path, const char *filename)
480 * Construct the directory path from the filename.
492 if ((p = strrchr(filename, '/')) == NULL)
495 while (p > filename && *(p - 1) == '/')
497 if (p == filename)
504 len = p - filename;
506 strncmp(&filename[len - isalen], isastr, isalen) == 0)
512 len += (p - filename) + 1 + strlen(MOD_DEFPATH) + 1;
513 (void) strncpy(path, filename, p - filename);