Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/openpam/lib/libpam/
H A Dopenpam_dynamic.c120 try_module(const char *modpath) in try_module() argument
127 (module->path = strdup(modpath)) == NULL || in try_module()
128 (module->dlh = try_dlopen(modpath)) == NULL) in try_module()
165 openpam_log(PAM_LOG_ERROR, "%s: %m", modpath); in try_module()
180 char modpath[PATH_MAX]; in openpam_dynamic() local
230 len = snprintf(modpath, sizeof modpath, "%s/%s%n", in openpam_dynamic()
233 len = snprintf(modpath, sizeof modpath, "%s/%s%n.%d", in openpam_dynamic()
236 len = snprintf(modpath, sizeof modpath, "%s/%s%s%n.%d", in openpam_dynamic()
244 if ((module = try_module(modpath)) != NULL) in openpam_dynamic()
248 modpath[dot] = '\0'; in openpam_dynamic()
[all …]
/freebsd-14.2/sbin/kldconfig/
H A Dkldconfig.c59 static char *modpath; variable
100 if (modpath != NULL) { in getpath()
101 free(modpath); in getpath()
102 modpath = NULL; in getpath()
116 modpath = path; in getpath()
134 if (modpath != NULL) in setpath()
135 free(modpath); in setpath()
136 modpath = newpath; in setpath()
385 if ((origpath = strdup(modpath)) == NULL) { in main()
398 parsepath(&pathq, modpath, uniqflag); in main()
[all …]
/freebsd-14.2/lib/libefivar/
H A Defivar-dp-xlate.c737 char *modpath = NULL, *cp; in efivar_unix_path_to_device_path() local
760 modpath = strdup(path); in efivar_unix_path_to_device_path()
761 if (modpath == NULL) in efivar_unix_path_to_device_path()
763 for (cp = modpath; *cp; cp++) in efivar_unix_path_to_device_path()
767 if (modpath[0] == '/' && modpath[1] == '/') /* Handle //foo/bar/baz */ in efivar_unix_path_to_device_path()
768 rv = efipart_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
769 else if (strchr(modpath, ':')) /* Handle dev:/bar/baz */ in efivar_unix_path_to_device_path()
770 rv = dev_path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
772 rv = path_to_dp(&mesh, modpath, dp); in efivar_unix_path_to_device_path()
776 free(modpath); in efivar_unix_path_to_device_path()
/freebsd-14.2/sbin/devmatch/
H A Ddevmatch.c99 char *modpath, *p, *q; in read_linker_hints() local
105 modpath = malloc(buflen); in read_linker_hints()
106 if (modpath == NULL) in read_linker_hints()
108 if (sysctlbyname("kern.module_path", modpath, &buflen, NULL, 0) < 0) in read_linker_hints()
110 p = modpath; in read_linker_hints()