Lines Matching refs:home_dir
4284 static char *home_dir = NULL; in find_home_dir() local
4285 if( home_dir ) return home_dir; in find_home_dir()
4293 home_dir = pwent->pw_dir; in find_home_dir()
4301 home_dir = "/"; in find_home_dir()
4305 if (!home_dir) { in find_home_dir()
4306 home_dir = getenv("USERPROFILE"); in find_home_dir()
4310 if (!home_dir) { in find_home_dir()
4311 home_dir = getenv("HOME"); in find_home_dir()
4315 if (!home_dir) { in find_home_dir()
4322 home_dir = malloc( n ); in find_home_dir()
4323 if( home_dir==0 ) return 0; in find_home_dir()
4324 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()
4325 return home_dir; in find_home_dir()
4327 home_dir = "c:\\"; in find_home_dir()
4333 if( home_dir ){ in find_home_dir()
4334 int n = strlen30(home_dir) + 1; in find_home_dir()
4336 if( z ) memcpy(z, home_dir, n); in find_home_dir()
4337 home_dir = z; in find_home_dir()
4340 return home_dir; in find_home_dir()
4353 char *home_dir = NULL; in process_sqliterc() local
4359 home_dir = find_home_dir(); in process_sqliterc()
4360 if( home_dir==0 ){ in process_sqliterc()
4366 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()