Lines Matching refs:home_dir
4301 static char *home_dir = NULL; in find_home_dir() local
4302 if( home_dir ) return home_dir; in find_home_dir()
4310 home_dir = pwent->pw_dir; in find_home_dir()
4318 home_dir = "/"; in find_home_dir()
4322 if (!home_dir) { in find_home_dir()
4323 home_dir = getenv("USERPROFILE"); in find_home_dir()
4327 if (!home_dir) { in find_home_dir()
4328 home_dir = getenv("HOME"); in find_home_dir()
4332 if (!home_dir) { in find_home_dir()
4339 home_dir = malloc( n ); in find_home_dir()
4340 if( home_dir==0 ) return 0; in find_home_dir()
4341 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()
4342 return home_dir; in find_home_dir()
4344 home_dir = "c:\\"; in find_home_dir()
4350 if( home_dir ){ in find_home_dir()
4351 int n = strlen30(home_dir) + 1; in find_home_dir()
4353 if( z ) memcpy(z, home_dir, n); in find_home_dir()
4354 home_dir = z; in find_home_dir()
4357 return home_dir; in find_home_dir()
4370 char *home_dir = NULL; in process_sqliterc() local
4376 home_dir = find_home_dir(); in process_sqliterc()
4377 if( home_dir==0 ){ in process_sqliterc()
4383 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()