Home
last modified time | relevance | path

Searched refs:modpath (Results 1 – 4 of 4) sorted by relevance

/freebsd-13.1/contrib/openpam/lib/libpam/
H A Dopenpam_dynamic.c122 try_module(const char *modpath) in try_module() argument
129 (module->path = strdup(modpath)) == NULL || in try_module()
130 (module->dlh = try_dlopen(modpath)) == NULL) in try_module()
167 openpam_log(PAM_LOG_ERROR, "%s: %m", modpath); in try_module()
182 char modpath[PATH_MAX]; in openpam_dynamic() local
232 len = snprintf(modpath, sizeof modpath, "%s/%s%n", in openpam_dynamic()
235 len = snprintf(modpath, sizeof modpath, "%s/%s%n.%d", in openpam_dynamic()
238 len = snprintf(modpath, sizeof modpath, "%s/%s%s%n.%d", in openpam_dynamic()
246 if ((module = try_module(modpath)) != NULL) in openpam_dynamic()
250 modpath[dot] = '\0'; in openpam_dynamic()
[all …]
/freebsd-13.1/sbin/kldconfig/
H A Dkldconfig.c61 static char *modpath; variable
102 if (modpath != NULL) { in getpath()
103 free(modpath); in getpath()
104 modpath = NULL; in getpath()
118 modpath = path; in getpath()
136 if (modpath != NULL) in setpath()
137 free(modpath); in setpath()
138 modpath = newpath; in setpath()
387 if ((origpath = strdup(modpath)) == NULL) { in main()
400 parsepath(&pathq, modpath, uniqflag); in main()
[all …]
/freebsd-13.1/lib/libefivar/
H A Defivar-dp-xlate.c687 char *modpath = NULL, *cp; in efivar_unix_path_to_device_path() local
710 modpath = strdup(path); in efivar_unix_path_to_device_path()
711 if (modpath == NULL) in efivar_unix_path_to_device_path()
713 for (cp = modpath; *cp; cp++) in efivar_unix_path_to_device_path()
717 if (modpath[0] == '/' && modpath[1] == '/') /* Handle //foo/bar/baz */ in efivar_unix_path_to_device_path()
718 rv = efipart_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
719 else if (strchr(modpath, ':')) /* Handle dev:/bar/baz */ in efivar_unix_path_to_device_path()
720 rv = dev_path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
722 rv = path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
726 free(modpath); in efivar_unix_path_to_device_path()
/freebsd-13.1/sbin/devmatch/
H A Ddevmatch.c98 char *modpath, *p, *q; in read_linker_hints() local
104 modpath = malloc(buflen); in read_linker_hints()
105 if (modpath == NULL) in read_linker_hints()
107 if (sysctlbyname("kern.module_path", modpath, &buflen, NULL, 0) < 0) in read_linker_hints()
109 p = modpath; in read_linker_hints()