Lines Matching defs:tmpdir
8522 char tmpdir[PATH_MAX + 1];
8527 (void) strcpy(tmpdir, path);
8528 chop_endslashes(tmpdir);
8530 if ((s = strrchr(tmpdir, '/')) == NULL) {
8533 s = skipslashes(s, tmpdir);
8535 if (s == tmpdir)
8538 (void) strcpy(dir, tmpdir);
9428 char *tmpdir = getenv("TMPDIR");
9433 if (tmpdir == NULL || *tmpdir == '\0' ||
9434 (strlen(tmpdir) + strlen(suffix)) > APATH) {
9437 tmpdir = "/var/tmp";
9441 if (statvfs(tmpdir, &tdsb) == -1 || tdsb.f_flag & ST_RDONLY) {
9442 tmpdir = "/tmp";
9446 tmpfname = e_zalloc(E_EXIT, strlen(tmpdir) + strlen(suffix) + 1);
9448 (void) strcpy(tmpfname, tmpdir);
9452 msg(EXTN, "cannot open tmpfile %s%s", tmpdir, suffix);