Lines Matching defs:tmpdir
614 static char *tmpdir;
1056 tmpdir = getenv("TMPDIR");
1062 if (tmpdir == NULL || *tmpdir == '\0' ||
1063 (strlen(tmpdir) + strlen(tmp_suffix)) > PATH_MAX) {
1064 tmpdir = "/tmp";
1065 } else if (stat(tmpdir, &sbuf) < 0 ||
1068 tmpdir = "/tmp";
1071 if ((tname = calloc(1, strlen(tmpdir) +
1076 (void) strcpy(tname, tmpdir);
1312 * tmpdir string, plus 6 times the size of the tname
1316 int buflen = strlen(tmpdir) + (6 * strlen(tname)) + 100;
1327 tmpdir, tname, tname, tname, tname, tname, tname);
8364 char tmpdir[PATH_MAX + 1];
8369 (void) strcpy(tmpdir, path);
8370 chop_endslashes(tmpdir);
8372 if ((s = strrchr(tmpdir, '/')) == NULL) {
8375 s = skipslashes(s, tmpdir);
8377 if (s == tmpdir)
8380 (void) strcpy(dir, tmpdir);