Home
last modified time | relevance | path

Searched refs:tmp_name (Results 1 – 25 of 26) sorted by relevance

12

/external/grpc-grpc/test/core/iomgr/
Dload_file_test.cc41 char* tmp_name; in test_load_empty_file() local
45 tmp = gpr_tmpfile(prefix, &tmp_name); in test_load_empty_file()
46 GPR_ASSERT(tmp_name != nullptr); in test_load_empty_file()
50 error = grpc_load_file(tmp_name, 0, &slice); in test_load_empty_file()
54 error = grpc_load_file(tmp_name, 1, &slice_with_null_term); in test_load_empty_file()
59 remove(tmp_name); in test_load_empty_file()
60 gpr_free(tmp_name); in test_load_empty_file()
69 char* tmp_name; in test_load_failure() local
73 tmp = gpr_tmpfile(prefix, &tmp_name); in test_load_failure()
74 GPR_ASSERT(tmp_name != nullptr); in test_load_failure()
[all …]
/external/webrtc/webrtc/modules/audio_coding/test/
DPCMFile.cc51 char tmp_name[MAX_FILE_NAME_LENGTH_BYTE]; in ChooseFile() local
53 EXPECT_TRUE(fgets(tmp_name, MAX_FILE_NAME_LENGTH_BYTE, stdin) != NULL); in ChooseFile()
54 tmp_name[MAX_FILE_NAME_LENGTH_BYTE - 1] = '\0'; in ChooseFile()
58 while ((isspace(tmp_name[n]) || iscntrl(tmp_name[n])) && (tmp_name[n] != 0) in ChooseFile()
63 memmove(tmp_name, &tmp_name[n], MAX_FILE_NAME_LENGTH_BYTE - n); in ChooseFile()
67 n = (int16_t)(strlen(tmp_name) - 1); in ChooseFile()
69 while ((isspace(tmp_name[n]) || iscntrl(tmp_name[n])) && (n >= 0)) { in ChooseFile()
74 tmp_name[n + 1] = '\0'; in ChooseFile()
77 int16_t len = (int16_t) strlen(tmp_name); in ChooseFile()
82 std::string tmp_string(tmp_name, len + 1); in ChooseFile()
[all …]
/external/pcre/dist2/src/sljit/
DsljitProtExecAllocator.c106 char tmp_name[256]; in create_tempfile() local
114 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile()
115 strcpy(tmp_name, P_tmpdir); in create_tempfile()
119 strcpy(tmp_name, "/tmp"); in create_tempfile()
123 strcpy(tmp_name, "/tmp"); in create_tempfile()
130 if (len > 0 && len < sizeof(tmp_name)) { in create_tempfile()
131 strcpy(tmp_name, dir); in create_tempfile()
136 SLJIT_ASSERT(tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)); in create_tempfile()
138 while (tmp_name_len > 0 && tmp_name[tmp_name_len - 1] == '/') { in create_tempfile()
140 tmp_name[tmp_name_len] = '\0'; in create_tempfile()
[all …]
/external/v8/tools/
Ddisasm.py60 tmp_name = None
66 tmp_name = tmp_file.name
70 filename, tmp_name, size, offset,
72 tmp_name)
90 if tmp_name:
91 os.unlink(tmp_name)
/external/tensorflow/tensorflow/core/framework/
Dop_def_builder.cc152 StringPiece tmp_name; in FinalizeAttr() local
153 VERIFY(ConsumeAttrName(&spec, &tmp_name), "Trouble parsing '<name>:'"); in FinalizeAttr()
154 attr->set_name(tmp_name.data(), tmp_name.size()); in FinalizeAttr()
344 StringPiece tmp_name; in FinalizeInputOrOutput() local
345 VERIFY(ConsumeInOutName(&spec, &tmp_name), "Trouble parsing 'name:'"); in FinalizeInputOrOutput()
346 arg->set_name(tmp_name.data(), tmp_name.size()); in FinalizeInputOrOutput()
430 StringPiece tmp_name; in FinalizeControlOutput() local
431 if (!ConsumeControlOutName(&orig, &tmp_name)) { in FinalizeControlOutput()
436 *op_def->add_control_output() = string(tmp_name.data(), tmp_name.size()); in FinalizeControlOutput()
/external/selinux/libsemanage/src/
Duser_extra_record.c91 char *tmp_name = strdup(name); in semanage_user_extra_set_name() local
92 if (!tmp_name) { in semanage_user_extra_set_name()
98 user_extra->name = tmp_name; in semanage_user_extra_set_name()
Dseuser_record.c127 char *tmp_name = strdup(name); in hidden_def() local
128 if (!tmp_name) { in hidden_def()
133 seuser->name = tmp_name; in hidden_def()
Duser_record.c106 char *tmp_name = strdup(name); in hidden_def() local
107 if (!tmp_name) in hidden_def()
117 user->name = tmp_name; in hidden_def()
125 free(tmp_name); in hidden_def()
/external/selinux/libsepol/src/
Dboolean_record.c103 char *tmp_name = strdup(name); in hidden_def() local
104 if (!tmp_name) { in hidden_def()
109 boolean->name = tmp_name; in hidden_def()
Diface_record.c132 char *tmp_name = strdup(name); in hidden_def() local
133 if (!tmp_name) { in hidden_def()
138 iface->name = tmp_name; in hidden_def()
Duser_record.c108 char *tmp_name = strdup(name); in sepol_user_set_name() local
109 if (!tmp_name) { in sepol_user_set_name()
114 user->name = tmp_name; in sepol_user_set_name()
/external/e2fsprogs/resize/
Dmain.c177 char *dev_name, *tmp_name; in resize2fs_setup_tdb() local
207 tmp_name = strdup(device); in resize2fs_setup_tdb()
208 if (!tmp_name) in resize2fs_setup_tdb()
210 dev_name = basename(tmp_name); in resize2fs_setup_tdb()
213 free(tmp_name); in resize2fs_setup_tdb()
217 free(tmp_name); in resize2fs_setup_tdb()
/external/e2fsprogs/misc/
De2undo.c225 char *dev_name, *tmp_name; in e2undo_setup_tdb() local
255 tmp_name = strdup(name); in e2undo_setup_tdb()
256 if (!tmp_name) in e2undo_setup_tdb()
258 dev_name = basename(tmp_name); in e2undo_setup_tdb()
261 free(tmp_name); in e2undo_setup_tdb()
265 free(tmp_name); in e2undo_setup_tdb()
Dmke2fs.c2601 char *dev_name, *tmp_name; in mke2fs_setup_tdb() local
2638 tmp_name = strdup(name); in mke2fs_setup_tdb()
2639 if (!tmp_name) in mke2fs_setup_tdb()
2641 dev_name = basename(tmp_name); in mke2fs_setup_tdb()
2644 free(tmp_name); in mke2fs_setup_tdb()
2648 free(tmp_name); in mke2fs_setup_tdb()
Dtune2fs.c2754 char *dev_name, *tmp_name; in tune2fs_setup_tdb() local
2784 tmp_name = strdup(name); in tune2fs_setup_tdb()
2785 if (!tmp_name) in tune2fs_setup_tdb()
2787 dev_name = basename(tmp_name); in tune2fs_setup_tdb()
2790 free(tmp_name); in tune2fs_setup_tdb()
2794 free(tmp_name); in tune2fs_setup_tdb()
/external/toolchain-utils/
Dverify_compiler.py97 tmp_name = os.path.basename(filename) + '.dwarf'
98 dwarf_file = os.path.join(tmp_dir, tmp_name)
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig_file.c1568 char *tmp_name = os_malloc(tmp_len); in wpa_config_write() local
1570 if (tmp_name) { in wpa_config_write()
1571 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write()
1572 name = tmp_name; in wpa_config_write()
1580 os_free(tmp_name); in wpa_config_write()
1617 if (tmp_name) { in wpa_config_write()
1621 chmod_ret = chmod(tmp_name, in wpa_config_write()
1624 if (chmod_ret != 0 || rename(tmp_name, orig_name) != 0) in wpa_config_write()
1627 os_free(tmp_name); in wpa_config_write()
/external/libevent/
Devdns.c1021 char tmp_name[256], cmp_name[256]; /* used by the macros */ in reply_parse() local
1058 do { tmp_name[0] = '\0'; \ in reply_parse()
1059 if (name_parse(packet, length, &j, tmp_name, \ in reply_parse()
1060 sizeof(tmp_name))<0) \ in reply_parse()
1071 tmp_name[0] = '\0'; in reply_parse()
1074 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name)) < 0) in reply_parse()
1080 if (strcmp(tmp_name, cmp_name) == 0) in reply_parse()
1083 if (evutil_ascii_strcasecmp(tmp_name, cmp_name) == 0) in reply_parse()
1220 char tmp_name[256]; /* used by the macros */ in request_parse() local
1260 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0) in request_parse()
[all …]
/external/python/cpython3/Lib/test/
Dtest_tempfile.py1396 tmp_name = out.decode().strip()
1397 self.assertFalse(os.path.exists(tmp_name),
1398 "TemporaryDirectory %s exists after cleanup" % tmp_name)
1420 tmp_name = out.decode().strip()
1421 self.assertFalse(os.path.exists(tmp_name),
1422 "TemporaryDirectory %s exists after cleanup" % tmp_name)
/external/e2fsprogs/e2fsck/
Dunix.c1283 char *dev_name, *tmp_name; in e2fsck_setup_tdb() local
1321 tmp_name = strdup(ctx->filesystem_name); in e2fsck_setup_tdb()
1322 if (!tmp_name) in e2fsck_setup_tdb()
1324 dev_name = basename(tmp_name); in e2fsck_setup_tdb()
1327 free(tmp_name); in e2fsck_setup_tdb()
1331 free(tmp_name); in e2fsck_setup_tdb()
/external/e2fsprogs/debugfs/
Ddebugfs.c66 char *dev_name, *tmp_name; in debugfs_setup_tdb() local
96 tmp_name = strdup(device_name); in debugfs_setup_tdb()
97 if (!tmp_name) in debugfs_setup_tdb()
99 dev_name = basename(tmp_name); in debugfs_setup_tdb()
102 free(tmp_name); in debugfs_setup_tdb()
106 free(tmp_name); in debugfs_setup_tdb()
/external/toybox/toys/pending/
Ddiff.c183 char tmp_name[] = "/tmp/diffXXXXXX"; in read_stdin() local
184 int rd, wr, tmpfd = mkstemp(tmp_name); in read_stdin()
187 unlink(tmp_name); in read_stdin()
/external/mesa3d/src/compiler/glsl/
Dir.cpp1659 const char ir_variable::tmp_name[] = "compiler_temp"; member in ir_variable
1678 assert(name != ir_variable::tmp_name in ir_variable()
1681 && (name == NULL || name == ir_variable::tmp_name)) { in ir_variable()
1682 this->name = ir_variable::tmp_name; in ir_variable()
Dir.h613 return this->name != ir_variable::tmp_name && in is_name_ralloced()
1025 static const char tmp_name[]; variable
/external/python/cpython3/Lib/test/support/
D__init__.py2425 tmp_fp, tmp_name = tempfile.mkstemp(dir=tmp_dir)
2432 os.setxattr(tmp_name, b"trusted.foo", b"42")
2442 unlink(tmp_name)

12