/external/dtc/ |
H A D | fstree.c | 40 char *tmpname; local 46 tmpname = join_path(dirname, de->d_name); 48 if (lstat(tmpname, &st) < 0) 49 die("stat(%s): %s\n", tmpname, strerror(errno)); 55 pfile = fopen(tmpname, "rb"); 59 tmpname, strerror(errno)); 70 newchild = read_fstree(tmpname); 75 free(tmpname);
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
H A D | mmapstress02.c | 44 #define CLEANERROR(M) (void)unlink(tmpname); ERROR(M) 51 static char tmpname[] = "fileXXXXXX"; variable 75 (void)unlink(tmpname); 98 if ((fd = mkstemp(tmpname)) == -1) { 166 if (unlink(tmpname) == -1) {
|
H A D | mmapstress05.c | 71 if (unlink(tmpname)) { \ 88 //static char *tmpname; 12/31/02 89 static char tmpname[] = "fileXXXXXX"; variable 100 (void)unlink(tmpname); 140 if ((fd = mkstemp(tmpname)) == -1) {
|
H A D | mmapstress07.c | 43 static char *tmpname; variable 50 (void)unlink(tmpname); \ 81 (void)unlink(tmpname); 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) {
|
/external/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest02.c | 87 static char tmpname[MAXPATHLEN]; variable 127 sprintf(tmpname, "/ftest02.%d", getpid()); 128 strcat(dirname, tmpname); 130 sprintf(tmpname, "/ftest02h.%d", getpid()); 131 strcat(homedir, tmpname);
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
H A D | fcntl14.c | 538 static char tmpname[40]; variable 569 sprintf(tmpname, "fcntl2.%d", parent); 781 fd = open(tmpname, file_flag, file_mode); 901 unlink(tmpname); 1020 fd = open(tmpname, O_CREAT | O_RDWR | O_TRUNC, 0777); 1045 unlink(tmpname); 1058 fd = open(tmpname, O_CREAT | O_RDWR | O_TRUNC, 0777); 1154 unlink(tmpname);
|
H A D | fcntl15.c | 73 static char tmpname[40]; variable 109 if ((fd_B = open(tmpname, file_flag, file_mode)) < 0) { 196 parent, tmpname) < 0) { 246 if ((fd_C = open(tmpname, file_flag, file_mode)) < 0) { 379 sprintf(tmpname, "fcntl15.%d", parent); 384 if ((fd_A = open(tmpname, file_flag, file_mode)) < 0) { 397 if ((fd_B = open(tmpname, file_flag, file_mode)) < 0) { 451 dup_flag, parent, tmpname) < 0) 520 unlink(tmpname); 532 &uc_file_mode, &parent, tmpname); [all...] |
H A D | fcntl16.c | 272 static char tmpname[40]; variable 419 sprintf(tmpname, "fcntl4.%d", parent); 454 fd = open(tmpname, file_flag, file_mode); 472 unlink(tmpname); 486 unlink(tmpname); 557 unlink(tmpname); 571 unlink(tmpname); 644 unlink(tmpname);
|
/external/toybox/kconfig/ |
H A D | confdata.c | 403 char dirname[128], tmpname[128], newname[128]; local 435 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); 436 out = fopen(tmpname, "w"); 438 *tmpname = 0; 558 if (*tmpname) { 562 if (rename(tmpname, newname))
|
/external/vboot_reference/cgpt/ |
H A D | cgpt_find.c | 182 char tmpname[BUFSIZE]; local 195 sprintf(tmpname, "%s/%s/device", SYS_BLOCK_DIR, basename); 197 if (0 != lstat(tmpname, &statbuf))
|
/external/libmtp/src/ |
H A D | playlist-spl.c | 136 char tmpname[] = "/tmp/mtp-spl2pl-XXXXXX"; local 137 int fd = mkstemp(tmpname); 139 LIBMTP_ERROR("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno)); 143 if(unlink(tmpname) < 0) 144 LIBMTP_ERROR("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno)); 191 char tmpname[] = "/tmp/mtp-spl2pl-XXXXXX"; // must be a var since mkstemp modifies it local 196 int fd = mkstemp(tmpname); 198 LIBMTP_ERROR("failed to make temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerror(errno)); 202 if(unlink(tmpname) < 0) 203 LIBMTP_ERROR("failed to delete temp file for %s.spl -> %s, errno=%s\n", pl->name, tmpname, strerro [all...] |
/external/libpcap/ |
H A D | pcap-new.c | 749 char tmpname[PCAP_BUF_SIZE]; local 755 tmpname[0] = 0; 781 ntoken = sscanf(ptr, "[%[1234567890:.]]:%[^/]/%s", tmphost, tmpport, tmpname); 784 ntoken = sscanf(ptr, "[%[1234567890:.]]/%s", tmphost, tmpname); 790 ntoken = sscanf(ptr, "%[^/:]:%[^/]/%s", tmphost, tmpport, tmpname); 803 sscanf(ptr, "%[^/]/%s", tmphost, tmpname); 810 strlcpy(tmpname, ptr, PCAP_BUF_SIZE); 837 if (tmpname[0]) 839 strlcpy(name, tmpname, PCAP_BUF_SIZE);
|
/external/python/cpython2/Python/ |
H A D | symtable.c | 1482 char tmpname[256]; local 1485 PyOS_snprintf(tmpname, sizeof(tmpname), "_[%d]", 1487 tmp = PyString_InternFromString(tmpname);
|
/external/libpng/contrib/tools/ |
H A D | pngcp.c | 2225 char *tmpname, tmpbuf[(sizeof dp->namebuf) + 4]; local 2237 tmpname = tmpbuf; 2241 tmpname = NULL; /* stdout */ 2246 write_png(dp, tmpname); 2256 if (destname != NULL && rename(tmpname, destname) != 0) 2257 display_log(dp, APP_ERROR, "rename %s %s failed (%s)", tmpname, 2264 else if (tmpname != NULL && unlink(tmpname) != 0) 2265 display_log(dp, APP_WARNING, "unlink %s failed (%s)", tmpname,
|
/external/mesa3d/src/egl/drivers/dri2/ |
H A D | platform_wayland.c | 1331 create_tmpfile_cloexec(char *tmpname) argument 1336 fd = mkostemp(tmpname, O_CLOEXEC); 1338 unlink(tmpname); 1340 fd = mkstemp(tmpname); 1343 unlink(tmpname);
|
/external/python/cpython2/Lib/test/ |
H A D | test_tarfile.py | 34 tmpname = os.path.join(TEMPDIR, "tmp.tar") variable 243 with tarfile.open(tmpname, self.mode.replace("r", "w")): 246 tar = tarfile.open(tmpname, self.mode) 259 with open(tmpname, "wb"): 261 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode) 262 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname) 286 with _open(tmpname, "wb") as fobj: 293 tar = tarfile.open(tmpname, mode="r", ignore_zeros=True) 302 with tarfile.open(tmpname, "w:") as tar: 307 with open(tmpname, " [all...] |
/external/libxml2/ |
H A D | relaxng.c | 5825 char tmpname[32]; local 5827 snprintf(tmpname, 32, "interleave%d", ctxt->nbInterleaves++); 5828 if (xmlHashAddEntry(ctxt->interleaves, BAD_CAST tmpname, cur) < 5832 (const xmlChar *) tmpname, NULL); 5930 char tmpname[32]; local 5932 snprintf(tmpname, 32, "interleave%d", ctxt->nbInterleaves++); 5933 if (xmlHashAddEntry(ctxt->interleaves, BAD_CAST tmpname, cur) < 5937 (const xmlChar *) tmpname, NULL);
|
H A D | xmlschemas.c | 18205 const xmlChar *tmpname; local 18240 tmpname = xmlDictLookup(pctxt->dict, BAD_CAST buf, -1); 18242 XML_SCHEMA_TYPE_SIMPLE, tmpname, type->targetNamespace,
|
/external/valgrind/coregrind/m_debuginfo/ |
H A D | readpdb.c | 2489 HChar tmpname[VG_(mkstemp_fullname_bufsz)(sizeof tmpnameroot - 1)]; local 2499 VG_(memset)(tmpname, 0, sizeof(tmpname)); 2500 fd = VG_(mkstemp)( tmpnameroot, tmpname ); 2503 "Find PDB file: Can't create temporary file %s\n", tmpname); 2509 sh -c "strings (pename) | egrep '\.pdb$|\.PDB$' > (tmpname)" 2515 /* (sh) -c "(strings) (pename) | (egrep) 'pdb' > (tmpname) */ 2517 + VG_(strlen)(egrep) + VG_(strlen)(tmpname) 2521 sh, strings, pename, egrep, tmpname); 2536 SysRes sr = VG_(stat)(tmpname, [all...] |