| /freebsd-9-stable/usr.bin/mail/ |
| D | temp.c | 47 char *tmpdir; variable 54 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') in tinit() 55 tmpdir = _PATH_TMP; in tinit() 56 if ((tmpdir = strdup(tmpdir)) == NULL) in tinit() 59 cp = tmpdir + strlen(tmpdir) - 1; in tinit() 60 while (cp > tmpdir && *cp == '/') { in tinit()
|
| /freebsd-9-stable/lib/libc/stdio/ |
| D | tmpfile.c | 58 const char *tmpdir; in tmpfile() local 60 tmpdir = NULL; in tmpfile() 62 tmpdir = getenv("TMPDIR"); in tmpfile() 63 if (tmpdir == NULL) in tmpfile() 64 tmpdir = _PATH_TMP; in tmpfile() 66 (void)asprintf(&buf, "%s%s%s", tmpdir, in tmpfile() 67 (tmpdir[strlen(tmpdir) - 1] == '/') ? "" : "/", TRAILER); in tmpfile()
|
| /freebsd-9-stable/contrib/binutils/libiberty/ |
| D | make-temp-file.c | 100 char *tmpdir; in choose_tmpdir() local 126 tmpdir = XNEWVEC (char, len + 2); in choose_tmpdir() 127 strcpy (tmpdir, base); in choose_tmpdir() 128 tmpdir[len] = DIR_SEPARATOR; in choose_tmpdir() 129 tmpdir[len+1] = '\0'; in choose_tmpdir() 131 memoized_tmpdir = tmpdir; in choose_tmpdir() 132 return tmpdir; in choose_tmpdir()
|
| /freebsd-9-stable/contrib/gcclibs/libiberty/ |
| D | make-temp-file.c | 100 char *tmpdir; in choose_tmpdir() local 126 tmpdir = XNEWVEC (char, len + 2); in choose_tmpdir() 127 strcpy (tmpdir, base); in choose_tmpdir() 128 tmpdir[len] = DIR_SEPARATOR; in choose_tmpdir() 129 tmpdir[len+1] = '\0'; in choose_tmpdir() 131 memoized_tmpdir = tmpdir; in choose_tmpdir() 132 return tmpdir; in choose_tmpdir()
|
| /freebsd-9-stable/bin/pax/ |
| D | pax.c | 230 const char *tmpdir; in main() local 247 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') in main() 248 tmpdir = _PATH_TMP; in main() 249 tdlen = strlen(tmpdir); in main() 250 while(tdlen > 0 && tmpdir[tdlen - 1] == '/') in main() 258 memcpy(tempfile, tmpdir, tdlen); in main()
|
| /freebsd-9-stable/usr.bin/yacc/ |
| D | main.c | 238 const char *tmpdir; in create_file_names() local 240 if (!(tmpdir = getenv("TMPDIR"))) in create_file_names() 241 tmpdir = _PATH_TMP; in create_file_names() 243 len = strlen(tmpdir); in create_file_names() 245 if (len && tmpdir[len-1] != '/') in create_file_names() 255 strcpy(action_file_name, tmpdir); in create_file_names() 256 strcpy(text_file_name, tmpdir); in create_file_names() 257 strcpy(union_file_name, tmpdir); in create_file_names() 259 if (len && tmpdir[len - 1] != '/') in create_file_names()
|
| /freebsd-9-stable/contrib/ntp/sntp/libopts/ |
| D | pgusage.c | 44 char const * tmpdir = getenv(TMPDIR); in open_tmp_usage() local 45 if (tmpdir == NULL) in open_tmp_usage() 46 tmpdir = tmp_dir; in open_tmp_usage() 47 bfsz = TMP_FILE_FMT_LEN + strlen(tmpdir) + 10; in open_tmp_usage() 49 snprintf(bf, bfsz, TMP_FILE_FMT, tmpdir, my_pid); in open_tmp_usage()
|
| /freebsd-9-stable/crypto/heimdal/ |
| D | install-sh | 335 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 339 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 346 ls_ld_tmpdir=`ls -ld "$tmpdir"` 352 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 353 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 359 rmdir "$tmpdir/d" "$tmpdir"
|
| /freebsd-9-stable/contrib/cvs/ |
| D | install-sh | 335 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 339 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 346 ls_ld_tmpdir=`ls -ld "$tmpdir"` 352 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 353 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 359 rmdir "$tmpdir/d" "$tmpdir"
|
| /freebsd-9-stable/contrib/tcsh/ |
| D | install-sh | 341 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 345 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 352 ls_ld_tmpdir=`ls -ld "$tmpdir"` 358 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 359 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 365 rmdir "$tmpdir/d" "$tmpdir"
|
| /freebsd-9-stable/contrib/ntp/sntp/libevent/build-aux/ |
| D | install-sh | 341 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 345 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 352 ls_ld_tmpdir=`ls -ld "$tmpdir"` 358 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 359 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 365 rmdir "$tmpdir/d" "$tmpdir"
|
| /freebsd-9-stable/contrib/openpam/ |
| D | install-sh | 348 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 359 ls_ld_tmpdir=`ls -ld "$tmpdir"` 365 $mkdirprog -m$different_mode -p -- "$tmpdir" && { 366 ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 372 rmdir "$tmpdir/d" "$tmpdir"
|
| /freebsd-9-stable/sbin/restore/ |
| D | dirs.c | 138 const char *tmpdir; in extractdirs() local 141 if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') in extractdirs() 142 tmpdir = _PATH_TMP; in extractdirs() 143 (void) sprintf(dirfile, "%s/rstdir%jd", tmpdir, (intmax_t)dumpdate); in extractdirs() 156 (void) sprintf(modefile, "%s/rstmode%jd", tmpdir, in extractdirs() 563 const char *tmpdir; in setdirmodes() local 568 if ((tmpdir = getenv("TMPDIR")) == NULL || tmpdir[0] == '\0') in setdirmodes() 569 tmpdir = _PATH_TMP; in setdirmodes() 571 (void) sprintf(modefile, "%s/rstmode%jd", tmpdir, in setdirmodes() 804 const char *tmpdir; in fail_dirtmp() local [all …]
|
| /freebsd-9-stable/usr.bin/mktemp/ |
| D | mktemp.c | 55 char *tmpdir; in main() local 96 tmpdir = getenv("TMPDIR"); in main() 97 if (tmpdir == NULL) in main() 100 asprintf(&name, "%s/%s.XXXXXXXX", tmpdir, prefix); in main()
|
| /freebsd-9-stable/usr.sbin/kgzip/ |
| D | kgzip.c | 69 char *tmpdir; in main() local 72 tmpdir = getenv("TMPDIR"); in main() 74 tmpdir == NULL ? _PATH_TMP : tmpdir) == -1) in main()
|
| /freebsd-9-stable/contrib/groff/src/roff/groff/ |
| D | pipeline.c | 373 char *tmpdir; in run_pipeline() local 374 if ((tmpdir = getenv("GROFF_TMPDIR")) == NULL in run_pipeline() 375 && (tmpdir = getenv("TMPDIR")) == NULL) in run_pipeline() 376 tmpdir = getenv("TEMP"); in run_pipeline() 381 tmpfiles[0] = tempnam(tmpdir, NULL); in run_pipeline() 382 tmpfiles[1] = tempnam(tmpdir, NULL); in run_pipeline()
|
| /freebsd-9-stable/gnu/usr.bin/patch/ |
| D | patch.c | 170 char *tmpdir; local 173 tmpdir = getenv ("TMPDIR"); 174 if (tmpdir == NULL) { 175 tmpdir = _PATH_TMP; 177 tmpname_len = strlen (tmpdir) + 20; 180 strcpy (TMPOUTNAME, tmpdir); 185 strcpy (TMPINNAME, tmpdir); 190 strcpy (TMPREJNAME, tmpdir); 195 strcpy (TMPPATNAME, tmpdir);
|
| /freebsd-9-stable/contrib/binutils/ld/ |
| D | genscripts.sh | 207 test -d tmpdir || mkdir tmpdir 208 rm -f tmpdir/libpath.exp 209 echo "set libpath \"${LIB_PATH}\"" | sed -e 's/:/ /g' > tmpdir/libpath.exp
|
| /freebsd-9-stable/contrib/libarchive/cpio/test/ |
| D | main.c | 1676 test_run(int i, const char *tmpdir) in test_run() argument 1694 if (!assertChdir(tmpdir)) { in test_run() 1696 "ERROR: Can't chdir to top work dir %s\n", tmpdir); in test_run() 1708 tmpdir, tests[i].name); in test_run() 1727 if (!assertChdir(tmpdir)) { in test_run() 1729 tmpdir); in test_run() 1740 if (!keep_temp_files && assertChdir(tmpdir)) { in test_run() 1884 char tmpdir[256]; in main() local 2024 sprintf(tmpdir, "%s/%s.%s-%03d", tmp, progname, in main() 2026 if (assertMakeDir(tmpdir,0755)) in main() [all …]
|
| /freebsd-9-stable/contrib/libarchive/libarchive/test/ |
| D | main.c | 1666 test_run(int i, const char *tmpdir) in test_run() argument 1684 if (!assertChdir(tmpdir)) { in test_run() 1686 "ERROR: Can't chdir to top work dir %s\n", tmpdir); in test_run() 1698 tmpdir, tests[i].name); in test_run() 1717 if (!assertChdir(tmpdir)) { in test_run() 1719 tmpdir); in test_run() 1730 if (!keep_temp_files && assertChdir(tmpdir)) { in test_run() 1874 char tmpdir[256]; in main() local 2014 sprintf(tmpdir, "%s/%s.%s-%03d", tmp, progname, in main() 2016 if (assertMakeDir(tmpdir,0755)) in main() [all …]
|
| /freebsd-9-stable/usr.bin/xlint/xlint/ |
| D | xlint.c | 63 static const char *tmpdir; variable 312 tmpdir = _PATH_TMP; in main() 316 tmpdir = s; in main() 319 cppout = xmalloc(strlen(tmpdir) + sizeof ("lint0.XXXXXX")); in main() 320 (void)sprintf(cppout, "%slint0.XXXXXX", tmpdir); in main() 628 ofn = xmalloc(strlen(tmpdir) + sizeof ("lint1.XXXXXX")); in fname() 629 (void)sprintf(ofn, "%slint1.XXXXXX", tmpdir); in fname()
|
| /freebsd-9-stable/contrib/libreadline/support/ |
| D | config.guess | 300 rm -f $dummy.s $dummy && rmdir $tmpdir 453 && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 454 rm -f $dummy.c $dummy && rmdir $tmpdir 538 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 539 rm -f $dummy.c $dummy && rmdir $tmpdir 639 rm -f $dummy.c $dummy && rmdir $tmpdir 675 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0 676 rm -f $dummy.c $dummy && rmdir $tmpdir 773 rm -f $dummy.c && rmdir $tmpdir 838 rm -f $dummy.c && rmdir $tmpdir [all …]
|
| /freebsd-9-stable/contrib/libarchive/tar/test/ |
| D | main.c | 1772 test_run(int i, const char *tmpdir) in test_run() argument 1790 if (!assertChdir(tmpdir)) { in test_run() 1792 "ERROR: Can't chdir to top work dir %s\n", tmpdir); in test_run() 1804 tmpdir, tests[i].name); in test_run() 1823 if (!assertChdir(tmpdir)) { in test_run() 1825 tmpdir); in test_run() 1836 if (!keep_temp_files && assertChdir(tmpdir)) { in test_run() 1980 char tmpdir[256]; in main() local 2126 sprintf(tmpdir, "%s/%s.%s-%03d", tmp, progname, in main() 2128 if (assertMakeDir(tmpdir,0755)) in main() [all …]
|
| /freebsd-9-stable/contrib/bmake/ |
| D | main.c | 1899 static char *tmpdir = NULL; in getTmpdir() local 1901 if (!tmpdir) { in getTmpdir() 1908 tmpdir = Var_Subst(NULL, "${TMPDIR:tA:U" _PATH_TMP "}/", VAR_GLOBAL, 0); in getTmpdir() 1909 if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) { in getTmpdir() 1910 free(tmpdir); in getTmpdir() 1911 tmpdir = bmake_strdup(_PATH_TMP); in getTmpdir() 1914 return tmpdir; in getTmpdir() 1925 static char *tmpdir = NULL; in mkTempFile() local 1931 if (!tmpdir) in mkTempFile() 1932 tmpdir = getTmpdir(); in mkTempFile() [all …]
|
| /freebsd-9-stable/tools/regression/usr.bin/sed/ |
| D | multitest.t | 375 rm -rf tmpdir 376 mkdir tmpdir 378 cat tmpdir/* 379 rm -rf tmpdir
|