Lines Matching refs:home_dir
4262 static char *home_dir = NULL; in find_home_dir() local
4263 if( home_dir ) return home_dir; in find_home_dir()
4271 home_dir = pwent->pw_dir; in find_home_dir()
4279 home_dir = "/"; in find_home_dir()
4283 if (!home_dir) { in find_home_dir()
4284 home_dir = getenv("USERPROFILE"); in find_home_dir()
4288 if (!home_dir) { in find_home_dir()
4289 home_dir = getenv("HOME"); in find_home_dir()
4293 if (!home_dir) { in find_home_dir()
4300 home_dir = malloc( n ); in find_home_dir()
4301 if( home_dir==0 ) return 0; in find_home_dir()
4302 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()
4303 return home_dir; in find_home_dir()
4305 home_dir = "c:\\"; in find_home_dir()
4311 if( home_dir ){ in find_home_dir()
4312 int n = strlen30(home_dir) + 1; in find_home_dir()
4314 if( z ) memcpy(z, home_dir, n); in find_home_dir()
4315 home_dir = z; in find_home_dir()
4318 return home_dir; in find_home_dir()
4331 char *home_dir = NULL; in process_sqliterc() local
4337 home_dir = find_home_dir(); in process_sqliterc()
4338 if( home_dir==0 ){ in process_sqliterc()
4344 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()