Home
last modified time | relevance | path

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

12

/NextBSD/contrib/libarchive/tar/
HDsubst.c169 size_t old_len; in realloc_strncat() local
172 old_len = 0; in realloc_strncat()
174 old_len = strlen(*str); in realloc_strncat()
176 new_str = malloc(old_len + len + 1); in realloc_strncat()
180 memcpy(new_str, *str, old_len); in realloc_strncat()
181 memcpy(new_str + old_len, append, len); in realloc_strncat()
182 new_str[old_len + len] = '\0'; in realloc_strncat()
191 size_t old_len; in realloc_strcat() local
194 old_len = 0; in realloc_strcat()
196 old_len = strlen(*str); in realloc_strcat()
[all …]
HDutil.c309 size_t old_len = strlen(old_pending); local
310 bsdtar->pending_chdir = malloc(old_len + strlen(newdir) + 2);
311 if (old_pending[old_len - 1] == '/')
312 old_pending[old_len - 1] = '\0';
/NextBSD/contrib/gperf/src/
HDinput.cc589 size_t old_len = (struct_decl ? strlen (struct_decl) : 0); in read_input() local
591 size_t new_len = old_len + line_len + 1; in read_input()
593 if (old_len > 0) in read_input()
594 memcpy (new_struct_decl, struct_decl, old_len); in read_input()
595 memcpy (new_struct_decl + old_len, line, line_len); in read_input()
596 new_struct_decl[old_len + line_len] = '\0'; in read_input()
706 size_t old_len = strlen (struct_decl); in read_input() local
707 if (struct_decl[old_len - 1] != ';') in read_input()
709 char *new_struct_decl = new char[old_len + 2]; in read_input()
710 memcpy (new_struct_decl, struct_decl, old_len); in read_input()
[all …]
/NextBSD/contrib/groff/src/libs/libgroff/
HDsearchpath.cpp78 unsigned old_len = strlen(old); in command_line_dir() local
80 dirs = new char[old_len + 1 + slen + 1]; in command_line_dir()
81 memcpy(dirs, old, old_len - init_len); in command_line_dir()
83 p += old_len - init_len; in command_line_dir()
90 memcpy(p, old + old_len - init_len, init_len); in command_line_dir()
/NextBSD/usr.bin/gcore/
HDelfcore.c178 ssize_t n, old_len; in elf_coredump() local
209 sbuf_start_section(sb, &old_len); in elf_coredump()
211 sbuf_end_section(sb, old_len, hdrsize, 0); in elf_coredump()
328 size_t threads, old_len; in elf_putnotes() local
344 sbuf_start_section(sb, &old_len); in elf_putnotes()
372 size = sbuf_end_section(sb, old_len, 1, 0); in elf_putnotes()
387 ssize_t old_len; in elf_putnote() local
396 sbuf_start_section(sb, &old_len); in elf_putnote()
398 sbuf_end_section(sb, old_len, sizeof(Elf32_Size), 0); in elf_putnote()
401 sbuf_start_section(sb, &old_len); in elf_putnote()
[all …]
/NextBSD/contrib/tcp_wrappers/
HDenviron.c136 static char *cmalloc(new_len, old, old_len) in cmalloc() argument
138 int old_len;
143 memcpy(new, old, old_len);
/NextBSD/crypto/openssl/crypto/
HDmem.c398 void *CRYPTO_realloc_clean(void *str, int old_len, int num, const char *file, in CRYPTO_realloc_clean() argument
413 if (num < old_len) in CRYPTO_realloc_clean()
420 memcpy(ret, str, old_len); in CRYPTO_realloc_clean()
421 OPENSSL_cleanse(str, old_len); in CRYPTO_realloc_clean()
/NextBSD/contrib/ntp/sntp/libevent/include/event2/
HDbuffer_compat.h73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/NextBSD/contrib/tcsh/
HDed.xmap.c512 size_t old_len; in Enumerate() local
521 old_len = buf->len; in Enumerate()
534 buf->len = old_len; in Enumerate()
/NextBSD/contrib/subversion/subversion/libsvn_subr/
HDstring.c540 apr_size_t old_len = str->len; in svn_stringbuf_appendbyte() local
546 if (str->blocksize > old_len + 1) in svn_stringbuf_appendbyte()
554 str->len = old_len+1; in svn_stringbuf_appendbyte()
572 dest[old_len] = byte; in svn_stringbuf_appendbyte()
573 dest[old_len+1] = '\0'; in svn_stringbuf_appendbyte()
/NextBSD/sys/kern/
HDsubr_sbuf.c852 sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c) in sbuf_end_section() argument
867 if (old_len == -1) { in sbuf_end_section()
871 s->s_sect_len += old_len; in sbuf_end_section()
HDimgact_elf.c1733 ssize_t old_len, sect_len; in __elfN() local
1746 sbuf_start_section(sb, &old_len); in __elfN()
1748 sbuf_end_section(sb, old_len, ELF_NOTE_ROUNDSIZE, 0); in __elfN()
1751 sbuf_start_section(sb, &old_len); in __elfN()
1753 sect_len = sbuf_end_section(sb, old_len, ELF_NOTE_ROUNDSIZE, 0); in __elfN()
/NextBSD/contrib/gcc/
HDtree-cfg.c2785 unsigned old_len = VEC_length (basic_block, label_to_block_map); in set_bb_for_stmt() local
2787 if (old_len <= (unsigned) uid) in set_bb_for_stmt()
2795 memset (&addr[old_len], in set_bb_for_stmt()
2796 0, sizeof (basic_block) * (new_len - old_len)); in set_bb_for_stmt()
4690 unsigned old_len, new_len; in move_block_to_fn() local
4714 old_len = VEC_length (basic_block, cfg->x_basic_block_info); in move_block_to_fn()
4715 if ((unsigned) cfg->x_last_basic_block >= old_len) in move_block_to_fn()
4720 memset (&addr[old_len], 0, sizeof (basic_block) * (new_len - old_len)); in move_block_to_fn()
4752 old_len = VEC_length (basic_block, cfg->x_label_to_block_map); in move_block_to_fn()
4753 if (old_len <= (unsigned) uid) in move_block_to_fn()
[all …]
/NextBSD/sys/dev/sfxge/
HDsfxge_tx.c603 unsigned old_len; in sfxge_tx_qdpl_put_unlocked() local
617 old_len = mp->m_pkthdr.csum_data; in sfxge_tx_qdpl_put_unlocked()
619 old_len = 0; in sfxge_tx_qdpl_put_unlocked()
620 if (old_len >= stdp->std_put_max) { in sfxge_tx_qdpl_put_unlocked()
624 mbuf->m_pkthdr.csum_data = old_len + 1; in sfxge_tx_qdpl_put_unlocked()
/NextBSD/sys/compat/linux/
HDlinux_misc.c594 (unsigned long)args->old_len, in linux_mremap()
614 args->old_len = round_page(args->old_len); in linux_mremap()
616 if (args->new_len > args->old_len) { in linux_mremap()
621 if (args->new_len < args->old_len) { in linux_mremap()
624 bsd_args.len = args->old_len - args->new_len; in linux_mremap()
/NextBSD/sys/ufs/ufs/
HDufs_extattr.c849 size_t len, old_len; in ufs_extattr_get() local
952 old_len = uio->uio_resid; in ufs_extattr_get()
960 uio->uio_resid = old_len - (len - uio->uio_resid); in ufs_extattr_get()
/NextBSD/sys/netinet/
HDsctp_output.c11551 uint16_t len, old_len, i; in sctp_add_stream_reset_out() local
11558 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_out()
11612 ch->chunk_length = htons(len + old_len); in sctp_add_stream_reset_out()
11613 chk->book_size = len + old_len; in sctp_add_stream_reset_out()
11625 uint16_t len, old_len, i; in sctp_add_stream_reset_in() local
11630 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_in()
11653 ch->chunk_length = htons(len + old_len); in sctp_add_stream_reset_in()
11654 chk->book_size = len + old_len; in sctp_add_stream_reset_in()
11665 uint16_t len, old_len; in sctp_add_stream_reset_tsn() local
11670 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_tsn()
[all …]
/NextBSD/contrib/ntp/sntp/libevent/
HDbuffer.c1094 size_t remaining, old_len; in evbuffer_drain() local
1098 old_len = buf->total_len; in evbuffer_drain()
1100 if (old_len == 0) in evbuffer_drain()
1108 if (len >= old_len && !HAS_PINNED_R(buf)) { in evbuffer_drain()
1109 len = old_len; in evbuffer_drain()
1117 if (len >= old_len) in evbuffer_drain()
1118 len = old_len; in evbuffer_drain()
HDhttp.c1930 size_t old_len, line_len; in evhttp_append_to_last_header() local
1935 old_len = strlen(header->value); in evhttp_append_to_last_header()
1944 newval = mm_realloc(header->value, old_len + line_len + 2); in evhttp_append_to_last_header()
1948 newval[old_len] = ' '; in evhttp_append_to_last_header()
1949 memcpy(newval + old_len + 1, line, line_len + 1); in evhttp_append_to_last_header()
/NextBSD/contrib/ntp/sntp/libevent/test/
HDregress_buffer.c1492 size_t old_len = cbinfo->orig_size; in log_change_callback() local
1493 size_t new_len = old_len + cbinfo->n_added - cbinfo->n_deleted; in log_change_callback()
1495 evbuffer_add_printf(out, "%lu->%lu; ", (unsigned long)old_len, in log_change_callback()
1499 self_draining_callback(struct evbuffer *evbuffer, size_t old_len, in self_draining_callback() argument
1502 if (new_len > old_len) in self_draining_callback()
/NextBSD/contrib/gdb/gdb/
HDstabsread.c221 unsigned old_len; in dbx_lookup_type() local
256 old_len = type_vector_length; in dbx_lookup_type()
257 if (old_len == 0) in dbx_lookup_type()
270 memset (&type_vector[old_len], 0, in dbx_lookup_type()
271 (type_vector_length - old_len) * sizeof (struct type *)); in dbx_lookup_type()
HDhpread.c2984 unsigned old_len; in hpread_lookup_type() local
3022 old_len = DNTT_TYPE_VECTOR_LENGTH (objfile); in hpread_lookup_type()
3025 if (old_len == 0) in hpread_lookup_type()
3030 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, in hpread_lookup_type()
3031 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * in hpread_lookup_type()
3051 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, in hpread_lookup_type()
3052 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * in hpread_lookup_type()
/NextBSD/contrib/compiler-rt/include/sanitizer/
HDlinux_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,
/NextBSD/sys/dev/ixl/
HDi40e_prototype.h255 u16 old_len, u16 new_len, u16 offset,
/NextBSD/crypto/heimdal/lib/hx509/ref/
HDpkcs11.h756 unsigned long old_len, unsigned char *new_pin,

12