Lines Matching defs:path
172 #define MODPATH_PROPNAME "module-path"
219 char *kobj_module_path; /* module search path */
454 * Set the module search path.
715 char path[MAXPATHLEN];
719 _kobj_printf(ops, "module path '%s'\n", kobj_module_path);
794 path, path)) != NULL)
1072 * Create the module path.
1077 char *path = kobj_zalloc(MAXPATHLEN, KM_WAIT);
1083 mach_modpath(path, filename);
1084 if (*path != '\0')
1085 (void) strcat(path, " ");
1086 return (strcat(path, MOD_DEFPATH));
1259 * The interpreter path fragment in mp->filename
1672 char *path = NULL, *depstr = NULL;
1691 if (path == NULL)
1692 path = kobj_alloc(MAXPATHLEN, KM_WAIT);
1693 if ((_lib = expand_libmacro(libname, path,
1694 path)) != NULL)
1736 if (path != NULL)
1737 kobj_free(path, MAXPATHLEN);
3436 * path is exactly like the shell PATH variable.
3456 /* use configured default path */
3462 * since path is of the form <directory> : <directory> : ...
3466 * we might have to add at the beginning of path and one for
3467 * the '/' between path and name.)
3477 *p++ = '/'; /* path must start with '/' */
3515 _kobj_printf(ops, " path is %s\n", pathpsave);
4071 * The module path can be set in /etc/system via 'moddir' commands
4339 * Check for $MACRO in tail (string to expand) and expand it in path at pathend
4340 * returns path if successful, else NULL
4341 * Support multiple $MACROs expansion and the first valid path will be returned
4342 * Caller's responsibility to provide enough space in path to expand
4345 expand_libmacro(char *tail, char *path, char *pathend)
4387 if ((file = kobj_open_path(path, 1, 1)) !=
4390 return (path);
4402 return (expand_libmacro(p2, path, pathend));
4416 * then put the part of tail before $MACRO into path
4437 file = kobj_open_path(path, 1, 1);
4442 * else return path which has the whole path
4444 if (!more_macro || (expand_libmacro(endp, path,
4446 return (path);