/external/grpc-grpc/test/core/iomgr/ |
D | load_file_test.cc | 41 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/modules/audio_coding/test/ |
D | PCMFile.cc | 59 char tmp_name[MAX_FILE_NAME_LENGTH_BYTE]; in ChooseFile() local 61 EXPECT_TRUE(fgets(tmp_name, MAX_FILE_NAME_LENGTH_BYTE, stdin) != NULL); in ChooseFile() 62 tmp_name[MAX_FILE_NAME_LENGTH_BYTE - 1] = '\0'; in ChooseFile() 66 while ((isspace(static_cast<unsigned char>(tmp_name[n])) || in ChooseFile() 67 iscntrl(static_cast<unsigned char>(tmp_name[n]))) && in ChooseFile() 68 (static_cast<unsigned char>(tmp_name[n]) != 0) && in ChooseFile() 73 memmove(tmp_name, &tmp_name[n], MAX_FILE_NAME_LENGTH_BYTE - n); in ChooseFile() 77 n = (int16_t)(strlen(tmp_name) - 1); in ChooseFile() 79 while ((isspace(static_cast<unsigned char>(tmp_name[n])) || in ChooseFile() 80 iscntrl(static_cast<unsigned char>(tmp_name[n]))) && in ChooseFile() [all …]
|
/external/pcre/src/sljit/ |
D | sljitProtExecAllocator.c | 108 char tmp_name[256]; in create_tempfile() local 129 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) { in create_tempfile() 131 strcpy(tmp_name, dir); in create_tempfile() 138 if (tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)) in create_tempfile() 139 strcpy(tmp_name, P_tmpdir); in create_tempfile() 143 strcpy(tmp_name, "/tmp"); in create_tempfile() 147 SLJIT_ASSERT(tmp_name_len > 0 && tmp_name_len < sizeof(tmp_name)); in create_tempfile() 149 if (tmp_name[tmp_name_len - 1] == '/') in create_tempfile() 150 tmp_name[--tmp_name_len] = '\0'; in create_tempfile() 157 fd = open(tmp_name_len ? tmp_name : "/", in create_tempfile() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | op_def_builder.cc | 156 StringPiece tmp_name; in FinalizeAttr() local 157 VERIFY(ConsumeAttrName(&spec, &tmp_name), "Trouble parsing '<name>:'"); in FinalizeAttr() 158 attr->set_name(tmp_name.data(), tmp_name.size()); in FinalizeAttr() 350 StringPiece tmp_name; in FinalizeInputOrOutput() local 351 VERIFY(ConsumeInOutName(&spec, &tmp_name), "Trouble parsing 'name:'"); in FinalizeInputOrOutput() 352 arg->set_name(tmp_name.data(), tmp_name.size()); in FinalizeInputOrOutput() 436 StringPiece tmp_name; in FinalizeControlOutput() local 437 if (!ConsumeControlOutName(&orig, &tmp_name)) { in FinalizeControlOutput() 442 *op_def->add_control_output() = string(tmp_name.data(), tmp_name.size()); in FinalizeControlOutput()
|
/external/selinux/libsepol/src/ |
D | boolean_record.c | 100 char *tmp_name = strdup(name); in sepol_bool_set_name() local 101 if (!tmp_name) { in sepol_bool_set_name() 106 boolean->name = tmp_name; in sepol_bool_set_name()
|
D | iface_record.c | 128 char *tmp_name = strdup(name); in sepol_iface_set_name() local 129 if (!tmp_name) { in sepol_iface_set_name() 134 iface->name = tmp_name; in sepol_iface_set_name()
|
D | user_record.c | 107 char *tmp_name = strdup(name); in sepol_user_set_name() local 108 if (!tmp_name) { in sepol_user_set_name() 113 user->name = tmp_name; in sepol_user_set_name()
|
/external/selinux/libsemanage/src/ |
D | user_extra_record.c | 91 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()
|
D | seuser_record.c | 121 char *tmp_name = strdup(name); in semanage_seuser_set_name() local 122 if (!tmp_name) { in semanage_seuser_set_name() 127 seuser->name = tmp_name; in semanage_seuser_set_name()
|
D | user_record.c | 100 char *tmp_name = strdup(name); in semanage_user_set_name() local 101 if (!tmp_name) in semanage_user_set_name() 111 user->name = tmp_name; in semanage_user_set_name() 119 free(tmp_name); in semanage_user_set_name()
|
/external/e2fsprogs/resize/ |
D | main.c | 177 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/ |
D | e2undo.c | 229 char *dev_name, *tmp_name; in e2undo_setup_tdb() local 259 tmp_name = strdup(name); in e2undo_setup_tdb() 260 if (!tmp_name) in e2undo_setup_tdb() 262 dev_name = basename(tmp_name); in e2undo_setup_tdb() 265 free(tmp_name); in e2undo_setup_tdb() 269 free(tmp_name); in e2undo_setup_tdb()
|
/external/leveldb/db/ |
D | fault_injection_test.cc | 66 std::string tmp_name = GetDirName(filename) + "/truncate.tmp"; in Truncate() local 68 s = env->NewWritableFile(tmp_name, &tmp_file); in Truncate() 73 s = env->RenameFile(tmp_name, filename); in Truncate() 75 env->RemoveFile(tmp_name); in Truncate()
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | config_file.c | 1632 char *tmp_name; in wpa_config_write() local 1640 tmp_name = os_malloc(tmp_len); in wpa_config_write() 1641 if (tmp_name) { in wpa_config_write() 1642 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write() 1643 name = tmp_name; in wpa_config_write() 1651 os_free(tmp_name); in wpa_config_write() 1692 if (tmp_name) { in wpa_config_write() 1696 chmod_ret = chmod(tmp_name, in wpa_config_write() 1699 if (chmod_ret != 0 || rename(tmp_name, orig_name) != 0) in wpa_config_write() 1702 os_free(tmp_name); in wpa_config_write()
|
/external/cronet/third_party/libevent/ |
D | evdns.c | 828 char tmp_name[256], cmp_name[256]; /* used by the macros */ in reply_parse() local 861 do { tmp_name[0] = '\0'; \ in reply_parse() 862 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0)\ in reply_parse() 866 do { tmp_name[0] = '\0'; \ in reply_parse() 869 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0)\ in reply_parse() 873 if (memcmp(tmp_name, cmp_name, strlen (tmp_name)) != 0) \ in reply_parse() 972 char tmp_name[256]; /* used by the macros */ in request_parse() local 1007 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0) in request_parse() 1011 namelen = strlen(tmp_name); in request_parse() 1017 memcpy(q->name, tmp_name, namelen+1); in request_parse()
|
/external/python/cpython3/Lib/test/support/ |
D | os_helper.py | 206 tmp_fp, tmp_name = tempfile.mkstemp(dir=tmp_dir) 213 os.setxattr(tmp_name, b"trusted.foo", b"42") 223 unlink(tmp_name)
|
/external/libdrm/ |
D | xf86drm.c | 4234 char path[PATH_MAX + 1], *name, *tmp_name; in drmParseOFBusInfo() local 4239 tmp_name = name; in drmParseOFBusInfo() 4247 tmp_name = strrchr(name, ':'); in drmParseOFBusInfo() 4248 if (!tmp_name) { in drmParseOFBusInfo() 4252 tmp_name++; in drmParseOFBusInfo() 4255 strncpy(fullname, tmp_name, DRM_PLATFORM_DEVICE_NAME_LEN); in drmParseOFBusInfo() 4269 char path[PATH_MAX + 1], *value, *tmp_name; in drmParseOFDeviceInfo() local 4290 tmp_name = value; in drmParseOFDeviceInfo() 4300 tmp_name = strrchr(value, ':'); in drmParseOFDeviceInfo() 4301 if (!tmp_name) { in drmParseOFDeviceInfo() [all …]
|
/external/libevent/ |
D | evdns.c | 1038 char tmp_name[256], cmp_name[256]; /* used by the macros */ in reply_parse() local 1075 do { tmp_name[0] = '\0'; \ in reply_parse() 1076 if (name_parse(packet, length, &j, tmp_name, \ in reply_parse() 1077 sizeof(tmp_name))<0) \ in reply_parse() 1088 tmp_name[0] = '\0'; in reply_parse() 1091 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name)) < 0) in reply_parse() 1097 if (strcmp(tmp_name, cmp_name) == 0) in reply_parse() 1100 if (evutil_ascii_strcasecmp(tmp_name, cmp_name) == 0) in reply_parse() 1237 char tmp_name[256]; /* used by the macros */ in request_parse() local 1277 if (name_parse(packet, length, &j, tmp_name, sizeof(tmp_name))<0) in request_parse() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | unix.c | 1310 char *dev_name, *tmp_name; in e2fsck_setup_tdb() local 1348 tmp_name = strdup(ctx->filesystem_name); in e2fsck_setup_tdb() 1349 if (!tmp_name) in e2fsck_setup_tdb() 1351 dev_name = basename(tmp_name); in e2fsck_setup_tdb() 1354 free(tmp_name); in e2fsck_setup_tdb() 1358 free(tmp_name); in e2fsck_setup_tdb()
|
/external/toybox/toys/pending/ |
D | diff.c | 340 char *tmp_name; in diff() local 342 tmpfd = xtempfile("fifo", &tmp_name); in diff() 344 unlink(tmp_name); in diff() 345 free(tmp_name); in diff()
|
/external/tpm2-tss/src/tss2-fapi/ |
D | ifapi_policy_execute.c | 564 TPM2B_NAME *tmp_name = NULL; in execute_policy_authorize() local 596 r = Esys_TR_GetName(esys_ctx, current_policy->object_handle, &tmp_name); in execute_policy_authorize() 598 policy->keyName = *tmp_name; in execute_policy_authorize() 599 SAFE_FREE(tmp_name); in execute_policy_authorize()
|
/external/icing/icing/legacy/index/ |
D | icing-filesystem.cc | 466 std::string tmp_name = absl_ports::StrCat(one, ".tmp"); in SwapFiles() local 467 const char *tmp_cstr = tmp_name.c_str(); in SwapFiles()
|
/external/python/cpython3/Lib/test/ |
D | test_tempfile.py | 1543 tmp_name = out.decode().strip() 1544 self.assertFalse(os.path.exists(tmp_name), 1545 "TemporaryDirectory %s exists after cleanup" % tmp_name) 1604 tmp_name = out.decode().strip() 1605 self.assertFalse(os.path.exists(tmp_name), 1606 "TemporaryDirectory %s exists after cleanup" % tmp_name)
|
/external/icing/icing/file/ |
D | filesystem.cc | 614 std::string tmp_name = absl_ports::StrCat(one, ".tmp"); in SwapFiles() local 615 const char* tmp_cstr = tmp_name.c_str(); in SwapFiles()
|
/external/e2fsprogs/debugfs/ |
D | debugfs.c | 72 char *dev_name, *tmp_name; in debugfs_setup_tdb() local 102 tmp_name = strdup(device_name); in debugfs_setup_tdb() 103 if (!tmp_name) in debugfs_setup_tdb() 105 dev_name = basename(tmp_name); in debugfs_setup_tdb() 108 free(tmp_name); in debugfs_setup_tdb() 112 free(tmp_name); in debugfs_setup_tdb()
|