/freebsd/contrib/libarchive/tar/ |
H A D | subst.c | 159 size_t old_len; in realloc_strncat() local 162 old_len = 0; in realloc_strncat() 164 old_len = strlen(*str); in realloc_strncat() 166 new_str = malloc(old_len + len + 1); in realloc_strncat() 170 memcpy(new_str, *str, old_len); in realloc_strncat() 171 memcpy(new_str + old_len, append, len); in realloc_strncat() 172 new_str[old_len + len] = '\0'; in realloc_strncat() 181 size_t old_len; in realloc_strcat() local 184 old_len = 0; in realloc_strcat() 186 old_len = strlen(*str); in realloc_strcat() [all …]
|
H A D | util.c | 310 size_t old_len = strlen(old_pending); local 311 size_t new_len = old_len + strlen(newdir) + 2; 313 if (old_pending[old_len - 1] == '/') 314 old_pending[old_len - 1] = '\0';
|
/freebsd/crypto/openssl/crypto/ |
H A D | mem.c | 228 void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num, in CRYPTO_clear_realloc() argument 237 CRYPTO_clear_free(str, old_len, file, line); in CRYPTO_clear_realloc() 242 if (num < old_len) { in CRYPTO_clear_realloc() 243 OPENSSL_cleanse((char*)str + num, old_len - num); in CRYPTO_clear_realloc() 249 memcpy(ret, str, old_len); in CRYPTO_clear_realloc() 250 CRYPTO_clear_free(str, old_len, file, line); in CRYPTO_clear_realloc()
|
/freebsd/usr.bin/gcore/ |
H A D | elfcore.c | 183 ssize_t n, old_len; in elf_coredump() local 216 sbuf_start_section(sb, &old_len); in elf_coredump() 218 sbuf_end_section(sb, old_len, hdrsize, 0); in elf_coredump() 338 size_t threads, old_len; in elf_putnotes() local 354 sbuf_start_section(sb, &old_len); in elf_putnotes() 393 size = sbuf_end_section(sb, old_len, 1, 0); in elf_putnotes() 408 ssize_t old_len; in elf_putregnote() local 425 sbuf_start_section(sb, &old_len); in elf_putregnote() 427 sbuf_end_section(sb, old_len, sizeof(Elf32_Size), 0); in elf_putregnote() 428 sbuf_start_section(sb, &old_len); in elf_putregnote() [all …]
|
/freebsd/contrib/netbsd-tests/rump/modautoload/ |
H A D | t_modautoload.c | 37 size_t old_len, new_len; in mountkernfs() local 49 old_len = sizeof(old_autoload); in mountkernfs() 52 &old_autoload, &old_len, in mountkernfs()
|
/freebsd/contrib/bmake/ |
H A D | buf.c | 92 size_t old_len = buf->len; in Buf_AddBytes() local 95 if (old_len + bytes_len >= buf->cap) { in Buf_AddBytes() 101 end = buf->data + old_len; in Buf_AddBytes() 102 buf->len = old_len + bytes_len; in Buf_AddBytes()
|
H A D | buf.h | 103 size_t old_len = buf->len++; in Buf_AddByte() local 105 if (old_len + 1 >= buf->cap) in Buf_AddByte() 107 end = buf->data + old_len; in Buf_AddByte()
|
/freebsd/lib/libc/tests/sys/ |
H A D | mlock_helper.c | 44 size_t old_len; in vm_max_wired_sysctl() local 50 ATF_REQUIRE_MSG(sysctlbyname(VM_MAX_WIRED, NULL, &old_len, in vm_max_wired_sysctl() 55 ATF_REQUIRE_MSG(sysctlbyname(VM_MAX_WIRED, old_value, &old_len, in vm_max_wired_sysctl()
|
/freebsd/contrib/tcp_wrappers/ |
H A D | environ.c | 127 static char *cmalloc(int new_len, char *old, int old_len) in cmalloc() argument 132 memcpy(new, old, old_len); in cmalloc()
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | buffer_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
/freebsd/contrib/libevent/include/event2/ |
H A D | buffer_compat.h | 73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
|
/freebsd/usr.bin/top/ |
H A D | display.c | 1338 size_t len, old_len; in setup_buffer() local 1355 old_len = strlen(buffer); in setup_buffer() 1356 memcpy(new_buffer, buffer, old_len < len - 1 ? old_len : len - 1); in setup_buffer()
|
/freebsd/contrib/tcsh/ |
H A D | ed.xmap.c | 508 size_t old_len; in Enumerate() local 517 old_len = buf->len; in Enumerate() 530 buf->len = old_len; in Enumerate()
|
/freebsd/sys/kern/ |
H A D | subr_sbuf.c | 950 sbuf_end_section(struct sbuf *s, ssize_t old_len, size_t pad, int c) in sbuf_end_section() argument 965 if (old_len == -1) { in sbuf_end_section() 969 s->s_sect_len += old_len; in sbuf_end_section()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_pipe.c | 92 size_t old_len, len; in nm_pipe_alloc() local 102 old_len = sizeof(struct netmap_pipe_adapter *)*na->na_max_pipes; in nm_pipe_alloc() 104 npa = nm_os_realloc(na->na_pipes, len, old_len); in nm_pipe_alloc()
|
H A D | netmap_monitor.c | 209 size_t old_len, len; in nm_monitor_alloc() local 216 old_len = sizeof(struct netmap_kring *)*kring->max_monitors; in nm_monitor_alloc() 218 nm = nm_os_realloc(kring->monitors, len, old_len); in nm_monitor_alloc()
|
/freebsd/contrib/ofed/libibverbs/ |
H A D | verbs.c | 304 size_t old_len; in __ibv_rereg_mr() local 335 old_len = mr->length; in __ibv_rereg_mr() 343 err = ibv_dofork_range(old_addr, old_len); in __ibv_rereg_mr()
|
/freebsd/sys/dev/ice/ |
H A D | ice_dcb.h | 228 u16 buf_size, u16 old_len, u16 new_len, u16 offset,
|
H A D | ice_dcb.c | 172 * @old_len: Length of the Original TLV 184 u16 buf_size, u16 old_len, u16 new_len, u16 offset, in ice_aq_update_lldp_tlv() argument 193 if (offset == 0 || old_len == 0 || new_len == 0) in ice_aq_update_lldp_tlv() 202 cmd->old_len = CPU_TO_LE16(old_len); in ice_aq_update_lldp_tlv()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_extattr.c | 852 size_t len, old_len; in ufs_extattr_get() local 955 old_len = uio->uio_resid; in ufs_extattr_get() 963 uio->uio_resid = old_len - (len - uio->uio_resid); in ufs_extattr_get()
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OPENSSL_malloc.pod | 39 void *OPENSSL_clear_realloc(void *p, size_t old_len, size_t num); 49 void *CRYPTO_clear_realloc(void *p, size_t old_len, size_t num,
|
/freebsd/sys/netinet/ |
H A D | sctp_output.c | 11757 uint16_t len, old_len, i; in sctp_add_stream_reset_out() local 11764 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_out() 11818 ch->chunk_length = htons(len + old_len); in sctp_add_stream_reset_out() 11819 chk->book_size = len + old_len; in sctp_add_stream_reset_out() 11831 uint16_t len, old_len, i; in sctp_add_stream_reset_in() local 11836 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_in() 11859 ch->chunk_length = htons(len + old_len); in sctp_add_stream_reset_in() 11860 chk->book_size = len + old_len; in sctp_add_stream_reset_in() 11871 uint16_t len, old_len; in sctp_add_stream_reset_tsn() local 11876 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length)); in sctp_add_stream_reset_tsn() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | buffer.c | 1104 size_t remaining, old_len; in evbuffer_drain() local 1108 old_len = buf->total_len; in evbuffer_drain() 1110 if (old_len == 0) in evbuffer_drain() 1118 if (len >= old_len && !HAS_PINNED_R(buf)) { in evbuffer_drain() 1119 len = old_len; in evbuffer_drain() 1127 if (len >= old_len) in evbuffer_drain() 1128 len = old_len; in evbuffer_drain()
|
/freebsd/contrib/libevent/ |
H A D | buffer.c | 1104 size_t remaining, old_len; in evbuffer_drain() local 1108 old_len = buf->total_len; in evbuffer_drain() 1110 if (old_len == 0) in evbuffer_drain() 1118 if (len >= old_len && !HAS_PINNED_R(buf)) { in evbuffer_drain() 1119 len = old_len; in evbuffer_drain() 1127 if (len >= old_len) in evbuffer_drain() 1128 len = old_len; in evbuffer_drain()
|
/freebsd/sys/compat/linux/ |
H A D | linux_misc.c | 323 args->old_len = round_page(args->old_len); in linux_mremap() 325 if (args->new_len > args->old_len) { in linux_mremap() 330 if (args->new_len < args->old_len) { in linux_mremap() 332 len = args->old_len - args->new_len; in linux_mremap()
|