/freebsd-11-stable/contrib/libarchive/tar/ |
H A D | subst.c | 170 size_t old_len; local 173 old_len = 0; 175 old_len = strlen(*str); 177 new_str = malloc(old_len + len + 1); 181 memcpy(new_str, *str, old_len); 182 memcpy(new_str + old_len, append, len); 183 new_str[old_len + len] = '\0'; 192 size_t old_len; local 195 old_len = 0; 197 old_len [all...] |
H A D | util.c | 311 size_t old_len = strlen(old_pending); local 312 bsdtar->pending_chdir = malloc(old_len + strlen(newdir) + 2); 313 if (old_pending[old_len - 1] == '/') 314 old_pending[old_len - 1] = '\0';
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/include/event2/ |
H A D | buffer_compat.h | 69 @param old_len the previous length of the buffer 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
/freebsd-11-stable/contrib/netbsd-tests/rump/modautoload/ |
H A D | t_modautoload.c | 37 size_t old_len, new_len; local 49 old_len = sizeof(old_autoload); 52 &old_autoload, &old_len,
|
/freebsd-11-stable/lib/libc/tests/sys/ |
H A D | mlock_helper.c | 47 size_t old_len; local 53 ATF_REQUIRE_MSG(sysctlbyname(VM_MAX_WIRED, NULL, &old_len, 58 ATF_REQUIRE_MSG(sysctlbyname(VM_MAX_WIRED, old_value, &old_len,
|
/freebsd-11-stable/contrib/groff/src/libs/libgroff/ |
H A D | searchpath.cpp | 78 unsigned old_len = strlen(old); local 80 dirs = new char[old_len + 1 + slen + 1]; 81 memcpy(dirs, old, old_len - init_len); 83 p += old_len - init_len; 90 memcpy(p, old + old_len - init_len, init_len);
|
/freebsd-11-stable/contrib/gperf/src/ |
H A D | input.cc | 589 size_t old_len = (struct_decl ? strlen (struct_decl) : 0); local 591 size_t new_len = old_len + line_len + 1; 593 if (old_len > 0) 594 memcpy (new_struct_decl, struct_decl, old_len); 595 memcpy (new_struct_decl + old_len, line, line_len); 596 new_struct_decl[old_len + line_len] = '\0'; 706 size_t old_len = strlen (struct_decl); local 707 if (struct_decl[old_len - 1] != ';') 709 char *new_struct_decl = new char[old_len + 2]; 710 memcpy (new_struct_decl, struct_decl, old_len); [all...] |
/freebsd-11-stable/contrib/tcp_wrappers/ |
H A D | environ.c | 136 static char *cmalloc(new_len, old, old_len) 138 int old_len; 143 memcpy(new, old, old_len);
|
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | mem.c | 390 void *CRYPTO_realloc_clean(void *str, int old_len, int num, const char *file, argument 403 * |old_len| bytes to the new buffer, below. 405 if (num < old_len) 412 memcpy(ret, str, old_len); 413 OPENSSL_cleanse(str, old_len);
|
/freebsd-11-stable/usr.bin/gcore/ |
H A D | elfcore.c | 200 ssize_t n, old_len; local 231 sbuf_start_section(sb, &old_len); 233 sbuf_end_section(sb, old_len, hdrsize, 0); 350 size_t threads, old_len; local 366 sbuf_start_section(sb, &old_len); 398 size = sbuf_end_section(sb, old_len, 1, 0); 413 ssize_t old_len; local 422 sbuf_start_section(sb, &old_len); 424 sbuf_end_section(sb, old_len, sizeof(Elf32_Size), 0); 427 sbuf_start_section(sb, &old_len); [all...] |
/freebsd-11-stable/contrib/tcsh/ |
H A D | ed.xmap.c | 508 size_t old_len; local 517 old_len = buf->len; 530 buf->len = old_len;
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | string.c | 563 apr_size_t old_len = str->len; 569 if (str->blocksize > old_len + 1) 573 * The value of old_len+1 is no longer needed; on most processors, 574 * dest[old_len+1] will be calculated implicitly as part of 577 str->len = old_len+1; 587 * "byte" into the register (e.g. the one freed from old_len+1), 595 dest[old_len] = byte; 596 dest[old_len+1] = '\0'; 559 apr_size_t old_len = str->len; local
|
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_pipe.c | 91 size_t old_len, len; local 101 old_len = sizeof(struct netmap_pipe_adapter *)*na->na_max_pipes; 103 npa = nm_os_realloc(na->na_pipes, len, old_len);
|
H A D | netmap_monitor.c | 208 size_t old_len, len; local 215 old_len = sizeof(struct netmap_kring *)*kring->max_monitors; 217 nm = nm_os_realloc(kring->monitors, len, old_len);
|
/freebsd-11-stable/sys/kern/ |
H A D | subr_sbuf.c | 857 sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c) argument 872 if (old_len == -1) { 876 s->s_sect_len += old_len;
|
H A D | imgact_elf.c | 1818 ssize_t old_len, sect_len; local 1831 sbuf_start_section(sb, &old_len); 1833 sbuf_end_section(sb, old_len, ELF_NOTE_ROUNDSIZE, 0); 1836 sbuf_start_section(sb, &old_len); 1838 sect_len = sbuf_end_section(sb, old_len, ELF_NOTE_ROUNDSIZE, 0);
|
/freebsd-11-stable/contrib/gcc/ |
H A D | tree-cfg.c | 2785 unsigned old_len = VEC_length (basic_block, label_to_block_map); local 2787 if (old_len <= (unsigned) uid) 2795 memset (&addr[old_len], 2796 0, sizeof (basic_block) * (new_len - old_len)); 4690 unsigned old_len, new_len; local 4714 old_len = VEC_length (basic_block, cfg->x_basic_block_info); 4715 if ((unsigned) cfg->x_last_basic_block >= old_len) 4720 memset (&addr[old_len], 0, sizeof (basic_block) * (new_len - old_len)); 4752 old_len [all...] |
/freebsd-11-stable/sys/ufs/ufs/ |
H A D | ufs_extattr.c | 849 size_t len, old_len; local 952 old_len = uio->uio_resid; 960 uio->uio_resid = old_len - (len - uio->uio_resid);
|
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | verbs.c | 304 size_t old_len; local 335 old_len = mr->length; 343 err = ibv_dofork_range(old_addr, old_len);
|
/freebsd-11-stable/sys/netinet/ |
H A D | sctp_output.c | 11739 uint16_t len, old_len, i; local 11746 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); 11800 ch->chunk_length = htons(len + old_len); 11801 chk->book_size = len + old_len; 11813 uint16_t len, old_len, i; local 11818 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); 11841 ch->chunk_length = htons(len + old_len); 11842 chk->book_size = len + old_len; 11853 uint16_t len, old_len; local 11858 old_len 11881 uint16_t len, old_len; local 11973 uint16_t len, old_len; local 12005 uint16_t len, old_len; local 12038 uint16_t len, old_len; local [all...] |
/freebsd-11-stable/sys/compat/linux/ |
H A D | linux_misc.c | 603 (unsigned long)args->old_len, 623 args->old_len = round_page(args->old_len); 625 if (args->new_len > args->old_len) { 630 if (args->new_len < args->old_len) { 632 len = args->old_len - args->new_len;
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/ |
H A D | regress_buffer.c | 1492 size_t old_len = cbinfo->orig_size; local 1493 size_t new_len = old_len + cbinfo->n_added - cbinfo->n_deleted; 1495 evbuffer_add_printf(out, "%lu->%lu; ", (unsigned long)old_len, 1499 self_draining_callback(struct evbuffer *evbuffer, size_t old_len, argument 1502 if (new_len > old_len)
|
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | stabsread.c | 222 unsigned old_len; 257 old_len = type_vector_length; 258 if (old_len == 0) 271 memset (&type_vector[old_len], 0, 272 (type_vector_length - old_len) * sizeof (struct type *)); 221 unsigned old_len; local
|
H A D | hpread.c | 2999 unsigned old_len; 3037 old_len = DNTT_TYPE_VECTOR_LENGTH (objfile); 3040 if (old_len == 0) 3045 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, 3046 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * 3066 memset (&DNTT_TYPE_VECTOR (objfile)[old_len], 0, 3067 (DNTT_TYPE_VECTOR_LENGTH (objfile) - old_len) * 2984 unsigned old_len; local
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | buffer.c | 1094 size_t remaining, old_len; local 1098 old_len = buf->total_len; 1100 if (old_len == 0) 1108 if (len >= old_len && !HAS_PINNED_R(buf)) { 1109 len = old_len; 1117 if (len >= old_len) 1118 len = old_len;
|