Lines Matching refs:home
102 char *home, *hmagicpath;
111 if ((home = getenv("HOME")) == NULL)
114 if (asprintf(&hmagicpath, "%s/.magic.mgc", home) < 0)
118 if (asprintf(&hmagicpath, "%s/.magic", home) < 0)
124 if (asprintf(&hmagicpath, "%s/%s", home, hmagic) < 0)
167 if ((home = getenv("LOCALAPPDATA")) == NULL) {
168 if ((home = getenv("USERPROFILE")) != NULL)
170 "%s/Local Settings/Application Data%s", home,
174 if (asprintf(&tmppath, "%s%s", home, hmagic) < 0)
181 if ((home = getenv("COMMONPROGRAMFILES")) != NULL) {
182 if (asprintf(&tmppath, "%s%s", home, hmagic) >= 0)