| /NextBSD/contrib/libarchive/tar/ |
| HD | subst.c | 169 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 …]
|
| HD | util.c | 309 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/ |
| HD | input.cc | 589 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/ |
| HD | searchpath.cpp | 78 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/ |
| HD | elfcore.c | 178 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/ |
| HD | environ.c | 136 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/ |
| HD | mem.c | 398 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/ |
| HD | buffer_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
| /NextBSD/contrib/tcsh/ |
| HD | ed.xmap.c | 512 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/ |
| HD | string.c | 540 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/ |
| HD | subr_sbuf.c | 852 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()
|
| HD | imgact_elf.c | 1733 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/ |
| HD | tree-cfg.c | 2785 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/ |
| HD | sfxge_tx.c | 603 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/ |
| HD | linux_misc.c | 594 (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/ |
| HD | ufs_extattr.c | 849 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/ |
| HD | sctp_output.c | 11551 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/ |
| HD | buffer.c | 1094 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()
|
| HD | http.c | 1930 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/ |
| HD | regress_buffer.c | 1492 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/ |
| HD | stabsread.c | 221 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()
|
| HD | hpread.c | 2984 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/ |
| HD | linux_syscall_hooks.h | 616 #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/ |
| HD | i40e_prototype.h | 255 u16 old_len, u16 new_len, u16 offset,
|
| /NextBSD/crypto/heimdal/lib/hx509/ref/ |
| HD | pkcs11.h | 756 unsigned long old_len, unsigned char *new_pin,
|