/third_party/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 …]
|
/third_party/pcre2/pcre2/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 …]
|
/third_party/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 | 106 char *tmp_name = strdup(name); in sepol_user_set_name() local 107 if (!tmp_name) { in sepol_user_set_name() 112 user->name = tmp_name; in sepol_user_set_name()
|
/third_party/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()
|
/third_party/ntfs-3g/src/ |
D | ntfs-3g_common.c | 703 char *tmp_name = NULL; local 711 actx->attr->name_length, &tmp_name, 0); 723 if ((strlen(tmp_name) > sizeof(xattr_ntfs_3g)) 724 && !strncmp(tmp_name,xattr_ntfs_3g, 738 strncpy(to, tmp_name, tmp_name_len); 743 free(tmp_name); 748 free(tmp_name);
|
D | ntfs-3g.c | 3236 char *tmp_name = NULL; in ntfs_fuse_getxattr_windows() local 3243 actx->attr->name_length, &tmp_name, 0); in ntfs_fuse_getxattr_windows() 3258 strncpy(to, tmp_name, tmp_name_len); in ntfs_fuse_getxattr_windows() 3261 free(tmp_name); in ntfs_fuse_getxattr_windows() 3266 free(tmp_name); in ntfs_fuse_getxattr_windows()
|
/third_party/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()
|
D | mke2fs.c | 2746 char *dev_name, *tmp_name; in mke2fs_setup_tdb() local 2783 tmp_name = strdup(name); in mke2fs_setup_tdb() 2784 if (!tmp_name) in mke2fs_setup_tdb() 2786 dev_name = basename(tmp_name); in mke2fs_setup_tdb() 2789 free(tmp_name); in mke2fs_setup_tdb() 2793 free(tmp_name); in mke2fs_setup_tdb()
|
D | tune2fs.c | 2792 char *dev_name, *tmp_name; in tune2fs_setup_tdb() local 2822 tmp_name = strdup(name); in tune2fs_setup_tdb() 2823 if (!tmp_name) in tune2fs_setup_tdb() 2825 dev_name = basename(tmp_name); in tune2fs_setup_tdb() 2828 free(tmp_name); in tune2fs_setup_tdb() 2832 free(tmp_name); in tune2fs_setup_tdb()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
D | config_file.c | 1578 char *tmp_name; in wpa_config_write() local 1586 tmp_name = os_malloc(tmp_len); in wpa_config_write() 1587 if (tmp_name) { in wpa_config_write() 1588 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write() 1589 name = tmp_name; in wpa_config_write() 1597 os_free(tmp_name); in wpa_config_write() 1637 if (tmp_name) { in wpa_config_write() 1641 chmod_ret = chmod(tmp_name, in wpa_config_write() 1644 if (chmod_ret != 0 || rename(tmp_name, orig_name) != 0) in wpa_config_write() 1647 os_free(tmp_name); in wpa_config_write()
|
/third_party/python/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)
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
D | config_file.c | 1567 char *tmp_name = os_malloc(tmp_len); in wpa_config_write() local 1569 if (tmp_name) { in wpa_config_write() 1570 os_snprintf(tmp_name, tmp_len, "%s.tmp", name); in wpa_config_write() 1571 name = tmp_name; in wpa_config_write() 1579 os_free(tmp_name); in wpa_config_write() 1616 if (tmp_name) { in wpa_config_write() 1620 chmod_ret = chmod(tmp_name, in wpa_config_write() 1623 if (chmod_ret != 0 || rename(tmp_name, orig_name) != 0) in wpa_config_write() 1626 os_free(tmp_name); in wpa_config_write()
|
/third_party/alsa-lib/src/pcm/ |
D | pcm_softvol.c | 764 char tmp_name[32]; in softvol_load_control() local 780 sprintf(tmp_name, "hw:%d", ctl_card); in softvol_load_control() 781 err = snd_ctl_open(&svol->ctl, tmp_name, 0); in softvol_load_control() 783 SNDERR("Cannot open CTL %s", tmp_name); in softvol_load_control() 802 SNDERR("Cannot get info for CTL %s", tmp_name); in softvol_load_control() 826 SNDERR("Control %s mismatch", tmp_name); in softvol_load_control()
|
/third_party/libdrm/ |
D | xf86drm.c | 3772 char path[PATH_MAX + 1], *name, *tmp_name; in drmParseOFBusInfo() local 3777 tmp_name = name; in drmParseOFBusInfo() 3785 tmp_name = strrchr(name, ':'); in drmParseOFBusInfo() 3786 if (!tmp_name) { in drmParseOFBusInfo() 3790 tmp_name++; in drmParseOFBusInfo() 3793 strncpy(fullname, tmp_name, DRM_PLATFORM_DEVICE_NAME_LEN); in drmParseOFBusInfo() 3807 char path[PATH_MAX + 1], *value, *tmp_name; in drmParseOFDeviceInfo() local 3828 tmp_name = value; in drmParseOFDeviceInfo() 3838 tmp_name = strrchr(value, ':'); in drmParseOFDeviceInfo() 3839 if (!tmp_name) { in drmParseOFDeviceInfo() [all …]
|
/third_party/toybox/toys/pending/ |
D | diff.c | 185 char *tmp_name; in read_stdin() local 186 int tmpfd = xtempfile("stdin", &tmp_name); in read_stdin() 188 unlink(tmp_name); in read_stdin() 189 free(tmp_name); in read_stdin()
|
/third_party/e2fsprogs/e2fsck/ |
D | unix.c | 1302 char *dev_name, *tmp_name; in e2fsck_setup_tdb() local 1340 tmp_name = strdup(ctx->filesystem_name); in e2fsck_setup_tdb() 1341 if (!tmp_name) in e2fsck_setup_tdb() 1343 dev_name = basename(tmp_name); in e2fsck_setup_tdb() 1346 free(tmp_name); in e2fsck_setup_tdb() 1350 free(tmp_name); in e2fsck_setup_tdb()
|
/third_party/python/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)
|
/third_party/glib/gio/ |
D | gsocketclient.c | 185 char *tmp_name = NULL; in clarify_connect_error() local 189 …name = tmp_name = g_inet_address_to_string (g_inet_socket_address_get_address (G_INET_SOCKET_ADDRE… in clarify_connect_error() 200 …name = tmp_name = g_inet_address_to_string (g_inet_socket_address_get_address (G_INET_SOCKET_ADDRE… in clarify_connect_error() 210 g_free (tmp_name); in clarify_connect_error()
|
/third_party/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()
|
/third_party/mesa3d/src/compiler/glsl/ |
D | ir.cpp | 1988 const char ir_variable::tmp_name[] = "compiler_temp"; member in ir_variable 2007 assert(name != ir_variable::tmp_name in ir_variable() 2010 && (name == NULL || name == ir_variable::tmp_name)) { in ir_variable() 2011 this->name = ir_variable::tmp_name; in ir_variable()
|
D | ir.h | 615 return this->name != ir_variable::tmp_name && in is_name_ralloced() 1053 static const char tmp_name[]; variable
|