Lines Matching refs:home_dir
6940 static char *home_dir = NULL; in find_home_dir() local
6942 free(home_dir); in find_home_dir()
6943 home_dir = 0; in find_home_dir()
6946 if( home_dir ) return home_dir; in find_home_dir()
6954 home_dir = pwent->pw_dir; in find_home_dir()
6962 home_dir = "/"; in find_home_dir()
6966 if (!home_dir) { in find_home_dir()
6967 home_dir = getenv("USERPROFILE"); in find_home_dir()
6971 if (!home_dir) { in find_home_dir()
6972 home_dir = getenv("HOME"); in find_home_dir()
6976 if (!home_dir) { in find_home_dir()
6983 home_dir = malloc( n ); in find_home_dir()
6984 if( home_dir==0 ) return 0; in find_home_dir()
6985 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()
6986 return home_dir; in find_home_dir()
6988 home_dir = "c:\\"; in find_home_dir()
6994 if( home_dir ){ in find_home_dir()
6995 int n = strlen30(home_dir) + 1; in find_home_dir()
6997 if( z ) memcpy(z, home_dir, n); in find_home_dir()
6998 home_dir = z; in find_home_dir()
7001 return home_dir; in find_home_dir()
7014 char *home_dir = NULL; in process_sqliterc() local
7020 home_dir = find_home_dir(0); in process_sqliterc()
7021 if( home_dir==0 ){ in process_sqliterc()
7027 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()