/src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/scripts/ |
collect_data_flow.py | 29 tmpdir = "" variable 57 tmpdir = tempfile.mkdtemp(prefix="libfuzzer-tmp-") 58 atexit.register(cleanup, tmpdir) 59 print "tmpdir: ", tmpdir 64 tmpfile = os.path.join(tmpdir, str(r[0]) + "-" + str(r[1]))
|
/src/tests/kernel/ |
t_mqueue.c | 111 char *tmpdir; local in function:ATF_TC_BODY 116 tmpdir = mkdtemp(template); 117 ATF_REQUIRE_MSG(tmpdir != NULL, "mkdtemp failed: %d", errno); 118 snprintf(mq_name, sizeof(mq_name), "%s/mq", tmpdir);
|
t_sysv.c | 143 char *tmpdir; local in function:get_ftok 147 tmpdir = mkdtemp(token_key); 148 ATF_REQUIRE_MSG(tmpdir != NULL, "mkdtemp() failed: %d", errno); 150 strlcpy(token_dir, tmpdir, sizeof(token_dir)); 151 strlcpy(token_key, tmpdir, sizeof(token_key)); 158 rmdir(tmpdir);
|
/src/usr.bin/mktemp/ |
mktemp.c | 62 char *tmpdir; local in function:main 69 tmpdir = NULL; 80 tmpdir = optarg; 107 if (tmpdir == NULL) 108 tmpdir = getenv("TMPDIR"); 109 if (tmpdir == NULL) 113 (void)asprintf(&name, "%s/%s.XXXXXXXX", tmpdir, prefix); 128 if (tmpdir) 130 tmpdir, argv[0]) [all...] |
/src/sbin/restore/ |
main.c | 81 const char *tmpdir; variable in typeref:typename:const char * 104 if ((tmpdir = getenv("TMPDIR")) == NULL) 105 tmpdir = _PATH_TMP;
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_platform_linux.cc | 152 const char *tmpdir = GetEnv("TMPDIR"); local in function:__tsan::MapRodata 153 if (tmpdir == 0) 154 tmpdir = GetEnv("TEST_TMPDIR"); 156 if (tmpdir == 0) 157 tmpdir = P_tmpdir; 159 if (tmpdir == 0) 163 tmpdir, (int)internal_getpid());
|
/src/usr.bin/mail/ |
glob.h | 64 EXTERN char *tmpdir; /* Path name of temp directory */ variable in typeref:typename:EXTERN char *
|
/src/usr.bin/sort/ |
sort.c | 110 const char *tmpdir; /* where temporary files should be put */ variable in typeref:typename:const char * 153 if (!(tmpdir = getenv("TMPDIR"))) 154 tmpdir = _PATH_TMP; 242 /* -T tmpdir */ 243 tmpdir = optarg;
|
/src/bin/pax/ |
pax.c | 243 const char *tmpdir; local in function:main 285 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') 286 tmpdir = _PATH_TMP; 287 tdlen = strlen(tmpdir); 288 while(tdlen > 0 && tmpdir[tdlen - 1] == '/') 296 memcpy(tempfile, tmpdir, tdlen);
|
/src/usr.bin/mkdep/ |
mkdep.c | 99 const char *tmpdir; local in function:run_cc 121 if ((tmpdir = getenv("TMPDIR")) == NULL) 122 tmpdir = _PATH_TMP; 123 (void)snprintf(tmpfilename, sizeof (tmpfilename), "%s/%s", tmpdir,
|
/src/usr.bin/sdiff/ |
sdiff.c | 70 const char *tmpdir; /* TMPDIR or /tmp */ variable in typeref:typename:const char * 123 if (asprintf(&target_file, "%s/sdiff.XXXXXXXXXX", tmpdir) == -1) 251 if ((tmpdir = getenv("TMPDIR")) == NULL) 252 tmpdir = _PATH_TMP;
|
/src/usr.bin/error/ |
touch.c | 577 const char *tmpdir; local in function:edit 584 if ((tmpdir = getenv("TMPDIR")) == NULL) 585 tmpdir = _PATH_TMP; 586 (void)snprintf(n_name, sizeof (n_name), "%s/%s", tmpdir, TMPFILE);
|
/src/bin/csh/ |
dir.c | 628 Char tmpdir[MAXPATHLEN]; local in function:dcanon 635 (void)Strcpy(tmpdir, p1); 636 (void)Strcat(tmpdir, STRslash); 637 (void)Strcat(tmpdir, cp); 639 cp = p = Strsave(tmpdir);
|
/src/usr.bin/xlint/xlint/ |
xlint.c | 91 static const char *tmpdir; variable in typeref:typename:const char * 181 tmpdir = (tmp = getenv("TMPDIR")) != NULL && (len = strlen(tmp)) != 0 441 ofn = xasprintf("%slint1.XXXXXX", tmpdir); 562 cpp.outfile = concat2(tmpdir, "lint0.XXXXXX");
|
/src/usr.sbin/makefs/ |
ffs.c | 576 struct direct tmpdir; local in function:ffs_size_dir 590 tmpdir.d_namlen = strlen((e)); \ 591 this = UFS_DIRSIZ(0, &tmpdir, 0); \ 594 e, tmpdir.d_namlen, this, curdirsize); \ 600 e, tmpdir.d_namlen, this, curdirsize); \
|
/src/usr.bin/man/ |
man.c | 757 const char *tmpdir; local in function:build_page 808 if ((tmpdir = getenv("TMPDIR")) == NULL) 809 tmpdir = _PATH_TMP; 810 tmpdirlen = strlen(tmpdir); 811 (void)snprintf(tpath, sizeof (tpath), "%s%s%s", tmpdir, 812 (tmpdirlen > 0 && tmpdir[tmpdirlen-1] == '/') ? "" : "/", TMPFILE);
|
/src/bin/ksh/ |
table.h | 178 EXTERN char *tmpdir; /* TMPDIR value */ variable in typeref:typename:EXTERN char *
|
/src/usr.bin/patch/ |
patch.c | 158 const char *tmpdir; local in function:main 171 if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0') 172 tmpdir = _PATH_TMP; 173 for (i = strlen(tmpdir) - 1; i > 0 && tmpdir[i] == '/'; i--) 176 if (asprintf(&TMPOUTNAME, "%.*s/patchoXXXXXXXXXX", i, tmpdir) == -1) 182 if (asprintf(&TMPINNAME, "%.*s/patchiXXXXXXXXXX", i, tmpdir) == -1) 188 if (asprintf(&TMPREJNAME, "%.*s/patchrXXXXXXXXXX", i, tmpdir) == -1 [all...] |
/src/usr.bin/ftp/ |
ftp_var.h | 260 GLOBAL const char *tmpdir; /* temporary directory */ variable in typeref:typename:GLOBAL const char *
|
/src/usr.bin/make/ |
meta.c | 622 "/dev /etc /proc /tmp /var/run /var/tmp ${TMPDIR}"); 1062 static char *tmpdir = NULL; local in function:meta_oodate 1135 if (tmpdir == NULL) { 1136 tmpdir = getTmpdir(); 1137 tmplen = strlen(tmpdir); 1372 /* tmpdir might be within */ 1373 if (tmplen > 0 && strncmp(p, tmpdir, tmplen) == 0)
|
main.c | 2162 static char *tmpdir = NULL; local in function:getTmpdir 2165 if (tmpdir != NULL) 2166 return tmpdir; 2168 /* Honor $TMPDIR if it is valid, strip a trailing '/'. */ 2169 tmpdir = Var_Subst("${TMPDIR:tA:U" _PATH_TMP ":S,/$,,W}/", 2173 if (stat(tmpdir, &st) < 0 || !S_ISDIR(st.st_mode)) { 2174 free(tmpdir); 2175 tmpdir = bmake_strdup(_PATH_TMP); 2177 return tmpdir; 2188 static char *tmpdir = NULL; local in function:mkTempFile [all...] |
/src/usr.bin/config/ |
main.c | 439 const char *tmpdir; local in function:main 447 tmpdir = getenv("TMPDIR"); 448 if (tmpdir == NULL) 449 tmpdir = _PATH_TMP; 450 snprintf(cname, sizeof(cname), "%s/config.tmp.XXXXXX", tmpdir); 1634 const char *tmpdir; local in function:logconfig_start 1642 tmpdir = getenv("TMPDIR"); 1643 if (tmpdir == NULL [all...] |
/src/sbin/disklabel/ |
main.c | 1516 const char *tmpdir; local in function:edit 1522 if ((tmpdir = getenv("TMPDIR")) == NULL) 1523 tmpdir = _PATH_TMP; 1524 (void)snprintf(tmpfil, sizeof(tmpfil), "%s/%s", tmpdir, TMPFILE);
|
/src/usr.bin/make/unit-tests/ |
Makefile | 36 # for many tests we need a TMPDIR that will not collide 40 TMPDIR:= ${.OBJDIR}/tmp 41 .elif defined(TMPDIR) 42 TMPDIR:= ${TMPDIR}/uid${.MAKE.UID} 44 TMPDIR:= /tmp/uid${.MAKE.UID} 47 .if !exist(${TMPDIR}) 48 _!= mkdir -p ${TMPDIR} 52 .END: rm-tmpdir 53 rm-tmpdir: .NOMET [all...] |
/src/usr.sbin/acpitools/acpidump/ |
acpi.c | 4666 const char *tmpdir; local in function:aml_disassemble 4677 tmpdir = getenv("TMPDIR"); 4678 if (tmpdir == NULL) 4679 tmpdir = _PATH_TMP; 4680 if (realpath(tmpdir, buf) == NULL) { 4686 fprintf(stderr, "$TMPDIR too long\n");
|