Home
last modified time | relevance | path

Searched refs:name_copy (Results 1 – 6 of 6) sorted by relevance

/external/python/cpython3/Modules/_multiprocessing/
Dsemaphore.c438 char *name, *name_copy = NULL; in semlock_new() local
452 name_copy = PyMem_Malloc(strlen(name) + 1); in semlock_new()
453 if (name_copy == NULL) { in semlock_new()
456 strcpy(name_copy, name); in semlock_new()
468 result = newsemlockobject(type, handle, kind, maxvalue, name_copy); in semlock_new()
477 PyMem_Free(name_copy); in semlock_new()
489 char *name, *name_copy = NULL; in semlock_rebuild() local
496 name_copy = PyMem_Malloc(strlen(name) + 1); in semlock_rebuild()
497 if (name_copy == NULL) in semlock_rebuild()
499 strcpy(name_copy, name); in semlock_rebuild()
[all …]
/external/mesa3d/src/compiler/glsl/
Dlower_ubo_reference.cpp134 char *name_copy = NULL; in interface_field_name() local
183 if (name_copy != NULL && in interface_field_name()
186 return name_copy; in interface_field_name()
199 if (name_copy == NULL) { in interface_field_name()
200 name_copy = ralloc_strdup(mem_ctx, base_name); in interface_field_name()
201 base_length = strlen(name_copy); in interface_field_name()
210 char *end = ralloc_strdup(NULL, &name_copy[new_length]); in interface_field_name()
229 ralloc_asprintf_rewrite_tail(&name_copy, &new_length, "[0]%s", in interface_field_name()
232 ralloc_asprintf_rewrite_tail(&name_copy, &new_length, "[%d]%s", in interface_field_name()
Dlink_uniforms.cpp268 char *name_copy = ralloc_strdup(NULL, name); in process() local
273 recursion(type, &name_copy, strlen(name), false, NULL, packing, false, in process()
275 ralloc_free(name_copy); in process()
834 char *name_copy = ralloc_strdup(NULL, name); in set_opaque_indices() local
839 while((str_start = strchr(name_copy, '[')) && in set_opaque_indices()
840 (str_end = strchr(name_copy, ']'))) { in set_opaque_indices()
845 if (record_next_index->get(index, name_copy)) { in set_opaque_indices()
851 record_next_index->put(index, name_copy); in set_opaque_indices()
853 ralloc_free(name_copy); in set_opaque_indices()
874 record_next_index->put(index, name_copy); in set_opaque_indices()
[all …]
/external/mesa3d/src/mesa/main/
Dshader_query.cpp551 char *name_copy; in search_resource_hash() local
555 name_copy = (char *) malloc(base_name_end - name + 1); in search_resource_hash()
556 memcpy(name_copy, name, base_name_end - name); in search_resource_hash()
557 name_copy[base_name_end - name] = '\0'; in search_resource_hash()
559 name_copy = (char*) name; in search_resource_hash()
562 uint32_t key = compute_resource_key(programInterface, name_copy); in search_resource_hash()
566 if (name_copy != name) in search_resource_hash()
567 free(name_copy); in search_resource_hash()
/external/libpcap/
Dpcap-npf.c1782 char *name_copy; in get_if_flags() local
1820 name_copy = strdup(name); in get_if_flags()
1821 adapter = PacketOpenAdapter(name_copy); in get_if_flags()
1822 free(name_copy); in get_if_flags()
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c1957 char *name_copy; in upb_fielddef_setcontainingtypename() local
1966 name_copy = upb_gstrdup(name); in upb_fielddef_setcontainingtypename()
1967 if (!name_copy) { in upb_fielddef_setcontainingtypename()
1973 f->msg.name = name_copy; in upb_fielddef_setcontainingtypename()
2404 char *name_copy; in upb_fielddef_setsubdefname() local
2411 name_copy = upb_gstrdup(name); in upb_fielddef_setsubdefname()
2412 if (!name_copy) { in upb_fielddef_setsubdefname()
2420 f->sub.name = name_copy; in upb_fielddef_setsubdefname()