Lines Matching refs:dir
60 static int __init check_tmpfs(const char *dir) in check_tmpfs() argument
64 os_info("Checking if %s is on tmpfs...", dir); in check_tmpfs()
65 if (statfs(dir, &st) < 0) { in check_tmpfs()
98 const char *dir; in choose_tempdir() local
102 dir = getenv(vars[i]); in choose_tempdir()
103 if ((dir != NULL) && (*dir != '\0')) { in choose_tempdir()
104 os_info("%s\n", dir); in choose_tempdir()
105 if (check_tmpfs(dir) >= 0) in choose_tempdir()
114 dir = tmpfs_dirs[i]; in choose_tempdir()
115 if (check_tmpfs(dir) >= 0) in choose_tempdir()
119 dir = fallback_dir; in choose_tempdir()
121 os_warn("Warning: tempdir %s is not on tmpfs\n", dir); in choose_tempdir()
124 return strdup(dir); in choose_tempdir()