Lines Matching full:tmpdir
59 char *tmpdir = "/tmp";
61 if (dir_exists(tmpdir))
64 /* fallback to $TMPDIR */
65 tmpdir = getenv("TMPDIR");
66 if (!tmpdir)
67 tst_brk(TBROK | TERRNO, "Failed to get $TMPDIR");
69 if (tmpdir[0] != '/')
70 tst_brk(TBROK, "$TMPDIR must be an absolute path");
72 if (!dir_exists(tmpdir))
73 tst_brk(TBROK | TERRNO, "TMPDIR '%s' doesn't exist", tmpdir);
76 return tmpdir;
107 const char *tmpdir = get_tmpdir_path();
109 SAFE_CHDIR(tmpdir);
111 if (!realpath(tmpdir, exp_buf))