/freebsd-13-stable/contrib/bmake/ |
H A D | buf.h | 95 size_t old_len = buf->len++; local 97 if (old_len + 1 >= buf->cap) 99 end = buf->data + old_len;
|
H A D | buf.c | 92 size_t old_len = buf->len; local 95 if (old_len + bytes_len >= buf->cap) { 101 end = buf->data + old_len; 102 buf->len = old_len + bytes_len;
|
/freebsd-13-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-13-stable/contrib/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-13-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-13-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-13-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-13-stable/crypto/openssl/crypto/ |
H A D | mem.c | 268 void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num, argument 277 CRYPTO_clear_free(str, old_len, file, line); 281 /* Can't shrink the buffer since memcpy below copies |old_len| bytes. */ 282 if (num < old_len) { 283 OPENSSL_cleanse((char*)str + num, old_len - num); 289 memcpy(ret, str, old_len); 290 CRYPTO_clear_free(str, old_len, file, line);
|
/freebsd-13-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-13-stable/usr.bin/gcore/ |
H A D | elfcore.c | 206 ssize_t n, old_len; local 239 sbuf_start_section(sb, &old_len); 241 sbuf_end_section(sb, old_len, hdrsize, 0); 359 size_t threads, old_len; local 375 sbuf_start_section(sb, &old_len); 410 size = sbuf_end_section(sb, old_len, 1, 0); 425 ssize_t old_len; local 434 sbuf_start_section(sb, &old_len); 436 sbuf_end_section(sb, old_len, sizeof(Elf32_Size), 0); 439 sbuf_start_section(sb, &old_len); [all...] |
/freebsd-13-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-13-stable/usr.bin/top/ |
H A D | display.c | 1340 size_t len, old_len; local 1357 old_len = strlen(buffer); 1358 memcpy(new_buffer, buffer, old_len < len - 1 ? old_len : len - 1);
|
/freebsd-13-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-13-stable/sys/dev/netmap/ |
H A D | netmap_pipe.c | 93 size_t old_len, len; local 103 old_len = sizeof(struct netmap_pipe_adapter *)*na->na_max_pipes; 105 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-13-stable/sys/kern/ |
H A D | subr_sbuf.c | 934 sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c) argument 949 if (old_len == -1) { 953 s->s_sect_len += old_len;
|
/freebsd-13-stable/sys/dev/ice/ |
H A D | ice_dcb.h | 213 u16 buf_size, u16 old_len, u16 new_len, u16 offset,
|
H A D | ice_dcb.c | 170 * @old_len: Length of the Original TLV 182 u16 buf_size, u16 old_len, u16 new_len, u16 offset, 191 if (offset == 0 || old_len == 0 || new_len == 0) 200 cmd->old_len = CPU_TO_LE16(old_len); 181 ice_aq_update_lldp_tlv(struct ice_hw *hw, u8 bridge_type, void *buf, u16 buf_size, u16 old_len, u16 new_len, u16 offset, u16 *mib_len, struct ice_sq_cd *cd) argument
|
/freebsd-13-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-13-stable/sys/ufs/ufs/ |
H A D | ufs_extattr.c | 857 size_t len, old_len; local 960 old_len = uio->uio_resid; 968 uio->uio_resid = old_len - (len - uio->uio_resid);
|
/freebsd-13-stable/sys/netinet/ |
H A D | sctp_output.c | 11643 uint16_t len, old_len, i; local 11650 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); 11704 ch->chunk_length = htons(len + old_len); 11705 chk->book_size = len + old_len; 11717 uint16_t len, old_len, i; local 11722 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); 11745 ch->chunk_length = htons(len + old_len); 11746 chk->book_size = len + old_len; 11757 uint16_t len, old_len; local 11762 old_len 11785 uint16_t len, old_len; local 11877 uint16_t len, old_len; local 11909 uint16_t len, old_len; local 11942 uint16_t len, old_len; local [all...] |
/freebsd-13-stable/contrib/libevent/test/ |
H A D | regress_buffer.c | 1739 size_t old_len = cbinfo->orig_size; local 1740 size_t new_len = old_len + cbinfo->n_added - cbinfo->n_deleted; 1742 evbuffer_add_printf(out, "%lu->%lu; ", (unsigned long)old_len, 1746 self_draining_callback(struct evbuffer *evbuffer, size_t old_len, argument 1749 if (new_len > old_len)
|
/freebsd-13-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-13-stable/sys/compat/linux/ |
H A D | linux_misc.c | 577 args->old_len = round_page(args->old_len); 579 if (args->new_len > args->old_len) { 584 if (args->new_len < args->old_len) { 586 len = args->old_len - args->new_len;
|