Lines Matching refs:base
74 try_dir (const char *dir, const char *base) in try_dir() argument
76 if (base != 0) in try_dir()
77 return base; in try_dir()
111 const char *base = 0; in choose_tmpdir() local
117 base = try_dir ("/sys$scratch", base); in choose_tmpdir()
119 base = try_dir (getenv ("TMPDIR"), base); in choose_tmpdir()
120 base = try_dir (getenv ("TMP"), base); in choose_tmpdir()
121 base = try_dir (getenv ("TEMP"), base); in choose_tmpdir()
128 base = try_dir ("\\.", base); in choose_tmpdir()
130 base = try_dir (P_tmpdir, base); in choose_tmpdir()
134 base = try_dir (vartmp, base); in choose_tmpdir()
135 base = try_dir (usrtmp, base); in choose_tmpdir()
136 base = try_dir (tmp, base); in choose_tmpdir()
139 if (base == 0) in choose_tmpdir()
140 base = "."; in choose_tmpdir()
143 len = strlen (base); in choose_tmpdir()
145 strcpy (tmpdir, base); in choose_tmpdir()
187 const char *base = choose_tmpdir (); in make_temp_file() local
195 base_len = strlen (base); in make_temp_file()
201 strcpy (temp_filename, base); in make_temp_file()
210 base, strerror (errno)); in make_temp_file()