Home
last modified time | relevance | path

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

/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/v8/tools/
Ddisasm.py58 tmp_name = None
64 tmp_name = tmp_file.name
68 filename, tmp_name, size, offset,
70 tmp_name)
88 if tmp_name:
89 os.unlink(tmp_name)
/external/selinux/policycoreutils/sepolicy/
Dsearch.c382 const char *tmp_name; in get_te_results() local
420 if (!(tmp_name = apol_rule_type_to_str(rule_type))) { in get_te_results()
426 if (py_insert_string(dict, "type", tmp_name)) in get_te_results()
431 if (qpol_type_get_name(q, type, &tmp_name)) in get_te_results()
433 if (py_insert_string(dict, "source", tmp_name)) in get_te_results()
438 if (qpol_type_get_name(q, type, &tmp_name)) in get_te_results()
440 if (py_insert_string(dict, "target", tmp_name)) in get_te_results()
445 if (qpol_class_get_name(q, obj_class, &tmp_name)) in get_te_results()
447 if (py_insert_string(dict, "class", tmp_name)) in get_te_results()
452 if (qpol_type_get_name(q, type, &tmp_name)) in get_te_results()
[all …]
/external/selinux/libsepol/src/
Dboolean_record.c95 char *tmp_name = strdup(name); in hidden_def() local
96 if (!tmp_name) { in hidden_def()
101 boolean->name = tmp_name; in hidden_def()
Diface_record.c124 char *tmp_name = strdup(name); in hidden_def() local
125 if (!tmp_name) { in hidden_def()
130 iface->name = tmp_name; in hidden_def()
Duser_record.c100 char *tmp_name = strdup(name); in sepol_user_set_name() local
101 if (!tmp_name) { in sepol_user_set_name()
106 user->name = tmp_name; in sepol_user_set_name()
/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.c122 char *tmp_name = strdup(name); in hidden_def() local
123 if (!tmp_name) { in hidden_def()
128 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/ltrace/sysdeps/linux-gnu/
Dtrace.c1273 char *tmp_name = alloca(sizeof NAME + 2 + 16); in linux_elf_find_irelative_name() local
1274 sprintf(tmp_name, NAME "%#" PRIx64, (uint64_t) addr); in linux_elf_find_irelative_name()
1275 name = tmp_name; in linux_elf_find_irelative_name()
1330 char *tmp_name = malloc(strlen(name) + sizeof S); in linux_append_IFUNC_to_name() local
1331 if (tmp_name == NULL) in linux_append_IFUNC_to_name()
1333 sprintf(tmp_name, "%s%s", name, S); in linux_append_IFUNC_to_name()
1335 return tmp_name; in linux_append_IFUNC_to_name()
1353 char *tmp_name = linux_append_IFUNC_to_name(name); in os_elf_add_func_entry() local
1355 if (tmp_name == NULL || tmp == NULL) { in os_elf_add_func_entry()
1357 free(tmp_name); in os_elf_add_func_entry()
[all …]
/external/wpa_supplicant_8/wpa_supplicant/
Dconfig_file.c1355 char *tmp_name = os_malloc(tmp_len); in wpa_config_write() local
1357 if (tmp_name) { in wpa_config_write()
1358 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write()
1359 name = tmp_name; in wpa_config_write()
1367 os_free(tmp_name); in wpa_config_write()
1404 if (tmp_name) { in wpa_config_write()
1408 chmod_ret = chmod(tmp_name, in wpa_config_write()
1411 if (chmod_ret != 0 || rename(tmp_name, orig_name) != 0) in wpa_config_write()
1414 os_free(tmp_name); in wpa_config_write()
/external/opencv3/modules/videoio/test/
Dtest_video_io.cpp259 string tmp_name = cv::tempfile((cvtest::fourccToString(fmt.fourcc) + "." + fmt.ext).c_str()); in VideoTest() local
261 …ts->printf(ts->LOG, "reading video : %s and converting it to %s\n", src_file.c_str(), tmp_name.c_s… in VideoTest()
285 writer = cvCreateVideoWriter(tmp_name.c_str(), fmt.fourcc, 24, cvGetSize(img)); in VideoTest()
302 CvCapture *saved = cvCaptureFromFile(tmp_name.c_str()); in VideoTest()
/external/ltrace/sysdeps/linux-gnu/ppc/
Dplt.c648 char *tmp_name = linux_append_IFUNC_to_name(name); in arch_elf_add_func_entry() local
655 if (tmp_name == NULL || libsym == NULL in arch_elf_add_func_entry()
657 tmp_name, 1, in arch_elf_add_func_entry()
660 free(tmp_name); in arch_elf_add_func_entry()
/external/libevent/
Devdns.c1005 char tmp_name[256], cmp_name[256]; /* used by the macros */ in reply_parse() local
1042 do { tmp_name[0] = '\0'; \ in reply_parse()
1043 if (name_parse(packet, length, &j, tmp_name, \ in reply_parse()
1044 sizeof(tmp_name))<0) \ in reply_parse()
1048 do { tmp_name[0] = '\0'; \ in reply_parse()
1051 if (name_parse(packet, length, &j, tmp_name, \ in reply_parse()
1052 sizeof(tmp_name))<0) \ in reply_parse()
1058 if (strcmp(tmp_name, cmp_name) == 0) \ in reply_parse()
1061 if (evutil_ascii_strcasecmp(tmp_name, cmp_name) == 0) \ in reply_parse()
1206 char tmp_name[256]; /* used by the macros */ in request_parse() local
[all …]
/external/e2fsprogs/misc/
Dtune2fs.c1825 char *dev_name, *tmp_name; in tune2fs_setup_tdb() local
1836 tmp_name = strdup(name); in tune2fs_setup_tdb()
1837 if (!tmp_name) { in tune2fs_setup_tdb()
1843 dev_name = basename(tmp_name); in tune2fs_setup_tdb()
1876 free(tmp_name); in tune2fs_setup_tdb()
Dmke2fs.c2210 char *dev_name, *tmp_name; in mke2fs_setup_tdb() local
2232 tmp_name = strdup(name); in mke2fs_setup_tdb()
2233 if (!tmp_name) in mke2fs_setup_tdb()
2235 dev_name = basename(tmp_name); in mke2fs_setup_tdb()
2238 free(tmp_name); in mke2fs_setup_tdb()
2242 free(tmp_name); in mke2fs_setup_tdb()
/external/toybox/toys/pending/
Ddiff.c180 char tmp_name[] = "/tmp/diffXXXXXX"; in read_stdin() local
181 int rd, wr, tmpfd = mkstemp(tmp_name); in read_stdin()
184 unlink(tmp_name); in read_stdin()