Lines Matching full:home
54 /* return the home directory of the current user as an allocated string */
57 * The original logic found a home dir to use (by checking a range of
65 * directory will it be returned as a "home directory".
69 * 3. use HOME if set
77 char *home; in homedir() local
79 home = GetEnv("CURL_HOME"); in homedir()
80 if(home) in homedir()
81 return home; in homedir()
84 home = GetEnv("XDG_CONFIG_HOME"); in homedir()
85 if(home) { in homedir()
86 char *c = curl_maprintf("%s" DIR_CHAR "%s", home, fname); in homedir()
92 return home; in homedir()
95 free(home); in homedir()
99 home = GetEnv("HOME"); in homedir()
100 if(home) in homedir()
101 return home; in homedir()
108 home = pw->pw_dir; in homedir()
109 if(home && home[0]) in homedir()
110 home = strdup(home); in homedir()
112 home = NULL; in homedir()
117 home = GetEnv("APPDATA"); in homedir()
118 if(!home) { in homedir()
123 home = strdup(path); in homedir()
130 return home; in homedir()