/external/elfutils/config/ |
D | Makefile.am | 39 @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \ 40 date +'* %a %b %e %Y' | tr '[\n]' '[ ]' > $$tmpname; \ 42 awk 'BEGIN {FS=":"} { printf $$5; exit 0}' >> $$tmpname; \ 43 echo -n " <$$(whoami)@gmail.com> " >> $$tmpname; \ 51 | fold -s -w 70 | sed '1!s/^[^-]/ &/' >> $$tmpname; \ 52 sed "/^%changelog/r $$tmpname" $@ > $@.new; \ 53 rm -f $$tmpname; \
|
/external/dtc/ |
D | fstree.c | 40 char *tmpname; in read_fstree() local 46 tmpname = join_path(dirname, de->d_name); in read_fstree() 48 if (lstat(tmpname, &st) < 0) in read_fstree() 49 die("stat(%s): %s\n", tmpname, strerror(errno)); in read_fstree() 55 pfile = fopen(tmpname, "rb"); in read_fstree() 59 tmpname, strerror(errno)); in read_fstree() 70 newchild = read_fstree(tmpname); in read_fstree() 75 free(tmpname); in read_fstree()
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
D | mmapstress07.c | 43 static char *tmpname; variable 50 (void)unlink(tmpname); \ 81 (void)unlink(tmpname); in cleanup() 118 tmpname = argv[1]; 153 if ((rofd = open64(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) { 155 if ((rofd = open(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) { 161 if ((rwfd = open64(tmpname, O_RDWR)) == -1) { 163 if ((rwfd = open(tmpname, O_RDWR)) == -1) { 288 if (unlink(tmpname) == -1) {
|
D | mmapstress02.c | 44 #define CLEANERROR(M) (void)unlink(tmpname); ERROR(M) 51 static char tmpname[] = "fileXXXXXX"; variable 75 (void)unlink(tmpname); in cleanup() 98 if ((fd = mkstemp(tmpname)) == -1) { in main() 166 if (unlink(tmpname) == -1) { in main()
|
D | mmapstress05.c | 71 if (unlink(tmpname)) { \ 89 static char tmpname[] = "fileXXXXXX"; variable 100 (void)unlink(tmpname); in cleanup() 140 if ((fd = mkstemp(tmpname)) == -1) { in main()
|
/external/compiler-rt/test/asan/android_commands/ |
D | android_common.py | 14 tmpname = tempfile.mktemp() 15 out = open(tmpname, 'w') 24 print tmpname 26 out = open(tmpname, 'r') 29 os.unlink(tmpname)
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 73 static char tmpname[40]; variable 109 if ((fd_B = open(tmpname, file_flag, file_mode)) < 0) { in dochild1() 196 parent, tmpname) < 0) { in dofork() 246 if ((fd_C = open(tmpname, file_flag, file_mode)) < 0) { in dochild2() 379 sprintf(tmpname, "fcntl15.%d", parent); in run_test() 384 if ((fd_A = open(tmpname, file_flag, file_mode)) < 0) { in run_test() 397 if ((fd_B = open(tmpname, file_flag, file_mode)) < 0) { in run_test() 451 dup_flag, parent, tmpname) < 0) in run_test() 520 unlink(tmpname); in run_test() 532 &uc_file_mode, &parent, tmpname); in main() [all …]
|
D | fcntl16.c | 272 static char tmpname[40]; variable 419 sprintf(tmpname, "fcntl4.%d", parent); in setup() 454 fd = open(tmpname, file_flag, file_mode); in run_test() 472 unlink(tmpname); in run_test() 486 unlink(tmpname); in run_test() 557 unlink(tmpname); in run_test() 571 unlink(tmpname); in run_test() 644 unlink(tmpname); in run_test()
|
D | fcntl14.c | 538 static char tmpname[40]; variable 569 sprintf(tmpname, "fcntl2.%d", parent); in setup() 783 fd = open(tmpname, file_flag, file_mode); in run_test() 903 unlink(tmpname); in run_test() 1022 fd = open(tmpname, O_CREAT | O_RDWR | O_TRUNC, 0777); in main() 1047 unlink(tmpname); in main() 1060 fd = open(tmpname, O_CREAT | O_RDWR | O_TRUNC, 0777); in main() 1156 unlink(tmpname); in main()
|
/external/openssh/openbsd-compat/ |
D | xmmap.c | 63 char tmpname[sizeof(MM_SWAP_TEMPLATE)] = MM_SWAP_TEMPLATE; in xmmap() local 68 tmpfd = mkstemp(tmpname); in xmmap() 73 unlink(tmpname); in xmmap()
|
/external/libmtp/src/ |
D | playlist-spl.c | 135 char tmpname[] = "/tmp/mtp-spl2pl-XXXXXX"; in spl_to_playlist_t() local 136 int fd = mkstemp(tmpname); in spl_to_playlist_t() 138 …printf("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno)… in spl_to_playlist_t() 142 if(unlink(tmpname) < 0) in spl_to_playlist_t() 143 …printf("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errn… in spl_to_playlist_t() 190 char tmpname[] = "/tmp/mtp-spl2pl-XXXXXX"; // must be a var since mkstemp modifies it in playlist_t_to_spl() local 195 int fd = mkstemp(tmpname); in playlist_t_to_spl() 197 …printf("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno)… in playlist_t_to_spl() 201 if(unlink(tmpname) < 0) in playlist_t_to_spl() 202 …printf("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errn… in playlist_t_to_spl()
|
/external/ltp/testcases/kernel/fs/ftest/ |
D | ftest02.c | 87 static char tmpname[MAXPATHLEN]; variable 127 sprintf(tmpname, "/ftest02.%d", getpid()); in main() 128 strcat(dirname, tmpname); in main() 130 sprintf(tmpname, "/ftest02h.%d", getpid()); in main() 131 strcat(homedir, tmpname); in main()
|
/external/vboot_reference/cgpt/ |
D | cgpt_find.c | 182 char tmpname[BUFSIZE]; in is_wholedev() local 195 sprintf(tmpname, "%s/%s/device", SYS_BLOCK_DIR, basename); in is_wholedev() 197 if (0 != lstat(tmpname, &statbuf)) in is_wholedev()
|
/external/toybox/kconfig/ |
D | confdata.c | 403 char dirname[128], tmpname[128], newname[128]; in conf_write() local 435 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); in conf_write() 436 out = fopen(tmpname, "w"); in conf_write() 438 *tmpname = 0; in conf_write() 558 if (*tmpname) { in conf_write() 562 if (rename(tmpname, newname)) in conf_write()
|
/external/valgrind/coregrind/m_debuginfo/ |
D | readpdb.c | 2483 HChar tmpname[VG_(mkstemp_fullname_bufsz)(sizeof tmpnameroot - 1)]; in ML_() local 2493 VG_(memset)(tmpname, 0, sizeof(tmpname)); in ML_() 2494 fd = VG_(mkstemp)( tmpnameroot, tmpname ); in ML_() 2497 "Find PDB file: Can't create temporary file %s\n", tmpname); in ML_() 2511 + VG_(strlen)(egrep) + VG_(strlen)(tmpname) in ML_() 2515 sh, strings, pename, egrep, tmpname); in ML_() 2530 SysRes sr = VG_(stat)(tmpname, &stat_buf); in ML_() 2532 VG_(umsg)("LOAD_PDB_DEBUGINFO: Find PDB file: can't stat %s\n", tmpname); in ML_() 2538 VG_(umsg)("LOAD_PDB_DEBUGINFO: Find PDB file: %s is empty\n", tmpname); in ML_() 2544 tmpname, szB); in ML_() [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
D | monsoon.py | 61 tmpname = '/tmp/monsoon.%s.%s' % (os.uname()[0], os.path.basename(port)) 62 self._tempfile = open(tmpname, 'w')
|
/external/libpng/contrib/tools/ |
D | pngcp.c | 2225 char *tmpname, tmpbuf[(sizeof dp->namebuf) + 4]; in cp_one_file() local 2237 tmpname = tmpbuf; in cp_one_file() 2241 tmpname = NULL; /* stdout */ in cp_one_file() 2246 write_png(dp, tmpname); in cp_one_file() 2256 if (destname != NULL && rename(tmpname, destname) != 0) in cp_one_file() 2257 display_log(dp, APP_ERROR, "rename %s %s failed (%s)", tmpname, in cp_one_file() 2264 else if (tmpname != NULL && unlink(tmpname) != 0) in cp_one_file() 2265 display_log(dp, APP_WARNING, "unlink %s failed (%s)", tmpname, in cp_one_file()
|
/external/libxml2/ |
D | relaxng.c | 5825 char tmpname[32]; in xmlRelaxNGCheckCombine() local 5827 snprintf(tmpname, 32, "interleave%d", ctxt->nbInterleaves++); in xmlRelaxNGCheckCombine() 5828 if (xmlHashAddEntry(ctxt->interleaves, BAD_CAST tmpname, cur) < in xmlRelaxNGCheckCombine() 5832 (const xmlChar *) tmpname, NULL); in xmlRelaxNGCheckCombine() 5930 char tmpname[32]; in xmlRelaxNGCombineStart() local 5932 snprintf(tmpname, 32, "interleave%d", ctxt->nbInterleaves++); in xmlRelaxNGCombineStart() 5933 if (xmlHashAddEntry(ctxt->interleaves, BAD_CAST tmpname, cur) < in xmlRelaxNGCombineStart() 5937 (const xmlChar *) tmpname, NULL); in xmlRelaxNGCombineStart()
|
D | xmlschemas.c | 18205 const xmlChar *tmpname; in xmlSchemaFixupComplexType() local 18240 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); in xmlSchemaFixupComplexType() 18242 XML_SCHEMA_TYPE_SIMPLE, tmpname, type->targetNamespace, in xmlSchemaFixupComplexType()
|