Lines Matching full:home
55 /* return the home directory of the current user as an allocated string */
58 * The original logic found a home dir to use (by checking a range of
66 * directory will it be returned as a "home directory".
70 * 3. use HOME if set
78 char *home; in homedir() local
80 home = GetEnv("CURL_HOME"); in homedir()
81 if(home) in homedir()
82 return home; in homedir()
85 home = GetEnv("XDG_CONFIG_HOME"); in homedir()
86 if(home) { in homedir()
87 char *c = curl_maprintf("%s" DIR_CHAR "%s", home, fname); in homedir()
93 return home; in homedir()
96 free(home); in homedir()
100 home = GetEnv("HOME"); in homedir()
101 if(home) in homedir()
102 return home; in homedir()
109 home = pw->pw_dir; in homedir()
110 if(home && home[0]) in homedir()
111 home = strdup(home); in homedir()
113 home = NULL; in homedir()
118 home = GetEnv("APPDATA"); in homedir()
119 if(!home) { in homedir()
124 home = strdup(path); in homedir()
131 return home; in homedir()