Home
last modified time | relevance | path

Searched refs:old_len (Results 1 – 25 of 29) sorted by relevance

12

/external/libmicrohttpd/src/examples/
Ddemo.c438 size_t old_len; in do_append() local
441 old_len = 0; in do_append()
443 old_len = strlen (*ret); in do_append()
444 buf = malloc (old_len + size + 1); in do_append()
447 memcpy (buf, *ret, old_len); in do_append()
450 memcpy (&buf[old_len], data, size); in do_append()
451 buf[old_len + size] = '\0'; in do_append()
Ddemo_https.c439 size_t old_len; in do_append() local
442 old_len = 0; in do_append()
444 old_len = strlen (*ret); in do_append()
445 buf = malloc (old_len + size + 1); in do_append()
448 memcpy (buf, *ret, old_len); in do_append()
451 memcpy (&buf[old_len], data, size); in do_append()
452 buf[old_len + size] = '\0'; in do_append()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-generic.c275 SysRes do_mremap( Addr old_addr, SizeT old_len, in do_mremap() argument
289 old_addr,old_len,new_addr,new_len, in do_mremap()
301 old_len = VG_PGROUNDUP(old_len); in do_mremap()
308 if (old_len == 0) in do_mremap()
312 if (old_addr + old_len < old_addr) in do_mremap()
323 if (!ML_(valid_client_addr)(old_addr, old_len, tid, "mremap(old_addr)")) in do_mremap()
329 if (old_addr < old_seg->start || old_addr+old_len-1 > old_seg->end) in do_mremap()
335 vg_assert(old_len > 0); in do_mremap()
337 vg_assert(VG_IS_PAGE_ALIGNED(old_len)); in do_mremap()
371 if (new_len < old_len) in do_mremap()
[all …]
/external/valgrind/coregrind/m_aspacemgr/
Dpriv_aspacemgr.h100 SizeT old_len,
105 Addr old_addr, Addr old_len,
Daspacemgr-common.c211 SizeT old_len, in ML_()
221 old_addr, old_len, new_len, in ML_()
231 Addr old_addr, Addr old_len, in ML_()
242 old_addr, old_len, new_len, in ML_()
Daspacemgr-linux.c3135 Addr old_addr, SizeT old_len, in VG_()
3142 if (old_len == 0 || new_len == 0) in VG_()
3145 if (!VG_IS_PAGE_ALIGNED(old_addr) || !VG_IS_PAGE_ALIGNED(old_len) in VG_()
3149 if (old_addr + old_len < old_addr in VG_()
3153 if (old_addr + old_len - 1 < new_addr in VG_()
3160 iHi = find_nsegment_idx( old_addr + old_len - 1 ); in VG_()
3169 ( old_addr, old_len, new_addr, new_len ); in VG_()
3177 *need_discard = any_Ts_in_range( old_addr, old_len ) in VG_()
3193 seg.end = old_addr + old_len - 1; in VG_()
/external/speex/libspeex/
Dbuffer.c166 int old_len = st->size; in speex_buffer_resize() local
167 if (len > old_len) in speex_buffer_resize()
/external/jemalloc/src/
Dandroid_je_iterate.c176 size_t old_len = sizeof(malloc_disabled_tcache); in je_malloc_disable() local
178 &malloc_disabled_tcache, &old_len, in je_malloc_disable()
/external/libevent/include/event2/
Dbuffer_compat.h70 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/external/dbus/dbus/
Ddbus-marshal-basic.c344 int old_len, new_len; in set_string() local
350 old_len = _dbus_unpack_uint32 (byte_order, in set_string()
356 str, pos + 4, old_len)) in set_string()
362 *old_end_pos = pos + 4 + old_len + 1; in set_string()
390 int old_len, new_len; in set_signature() local
395 old_len = _dbus_string_get_byte (str, pos); in set_signature()
399 str, pos + 1, old_len)) in set_signature()
405 *old_end_pos = pos + 1 + old_len + 1; in set_signature()
Ddbus-sysdeps-unix.c2788 int old_len; in _dbus_generate_pseudorandom_bytes() local
2791 old_len = _dbus_string_get_length (str); in _dbus_generate_pseudorandom_bytes()
2796 p = _dbus_string_get_data_len (str, old_len, n_bytes); in _dbus_generate_pseudorandom_bytes()
2815 int old_len; in _dbus_generate_random_bytes() local
2824 old_len = _dbus_string_get_length (str); in _dbus_generate_random_bytes()
2837 _dbus_string_set_length (str, old_len); in _dbus_generate_random_bytes()
Ddbus-auth.c1414 int old_len; in send_data() local
1420 old_len = _dbus_string_get_length (&auth->outgoing); in send_data()
1434 _dbus_string_set_length (&auth->outgoing, old_len); in send_data()
Ddbus-marshal-recursive.c2558 int old_len; in writer_write_reader_helper() local
2578 old_len = _dbus_unpack_uint32 (reader->byte_order, in writer_write_reader_helper()
2582 if (old_len != fixup.new_len && !append_fixup (fixups, &fixup)) in writer_write_reader_helper()
Ddbus-sysdeps-win.c1973 int old_len; in _dbus_generate_random_bytes() local
1977 old_len = _dbus_string_get_length (str); in _dbus_generate_random_bytes()
1982 p = _dbus_string_get_data_len (str, old_len, n_bytes); in _dbus_generate_random_bytes()
/external/dhcpcd-6.8.2/
Ddhcp6.h192 size_t old_len; member
Dscript.c441 d6_state->old, d6_state->old_len); in make_env()
449 d6_state->old, d6_state->old_len); in make_env()
/external/valgrind/coregrind/
Dpub_core_aspacemgr.h323 Addr old_addr, SizeT old_len,
/external/fio/
Dfilesetup.c907 unsigned long long old_len = -1ULL, extend_len = -1ULL; in setup_files() local
915 old_len = f->real_file_size; in setup_files()
917 old_len; in setup_files()
924 err = __file_invalidate_cache(td, f, old_len, in setup_files()
/external/libnl/lib/route/sch/
Dnetem.c299 int old_len = head->nla_len; in netem_build_msg() local
301 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_build_msg()
/external/libevent/
Dbuffer.c963 size_t remaining, old_len; in evbuffer_drain() local
967 old_len = buf->total_len; in evbuffer_drain()
969 if (old_len == 0) in evbuffer_drain()
977 if (len >= old_len && !HAS_PINNED_R(buf)) { in evbuffer_drain()
978 len = old_len; in evbuffer_drain()
986 if (len >= old_len) in evbuffer_drain()
987 len = old_len; in evbuffer_drain()
Dhttp.c1768 size_t old_len, line_len; in evhttp_append_to_last_header() local
1773 old_len = strlen(header->value); in evhttp_append_to_last_header()
1776 newval = mm_realloc(header->value, old_len + line_len + 1); in evhttp_append_to_last_header()
1780 memcpy(newval + old_len, line, line_len + 1); in evhttp_append_to_last_header()
/external/harfbuzz_ng/src/
Dhb-coretext.cc957 unsigned int old_len = buffer->len; in _hb_coretext_shape() local
983 buffer->reverse_range (old_len, buffer->len); in _hb_coretext_shape()
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h616 #define __sanitizer_syscall_pre_mremap(addr, old_len, new_len, flags, \ argument
618 __sanitizer_syscall_pre_impl_mremap((long)(addr), (long)(old_len), \
621 #define __sanitizer_syscall_post_mremap(res, addr, old_len, new_len, flags, \ argument
623 __sanitizer_syscall_post_impl_mremap(res, (long)(addr), (long)(old_len), \
2347 void __sanitizer_syscall_pre_impl_mremap(long addr, long old_len, long new_len,
2349 void __sanitizer_syscall_post_impl_mremap(long res, long addr, long old_len,
/external/v8/src/debug/
Dliveedit.js131 old_len: old_source.length, property
/external/v8/src/heap/
Dheap.cc3799 int old_len = src->length(); in CopyFixedArrayAndGrow() local
3800 int new_len = old_len + grow_by; in CopyFixedArrayAndGrow()
3801 DCHECK(new_len >= old_len); in CopyFixedArrayAndGrow()
3814 for (int i = 0; i < old_len; i++) result->set(i, src->get(i), mode); in CopyFixedArrayAndGrow()
3815 MemsetPointer(result->data_start() + old_len, undefined_value(), grow_by); in CopyFixedArrayAndGrow()

12