Home
last modified time | relevance | path

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

12

/freebsd/contrib/libarchive/tar/
H A Dsubst.c159 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 Dutil.c310 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 Dmem.c228 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 Delfcore.c183 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 Dt_modautoload.c37 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 Dbuf.c92 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 Dbuf.h103 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 Dmlock_helper.c44 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 Denviron.c127 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 Dbuffer_compat.h73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/freebsd/contrib/libevent/include/event2/
H A Dbuffer_compat.h73 typedef void (*evbuffer_cb)(struct evbuffer *buffer, size_t old_len, size_t new_len, void *arg);
/freebsd/usr.bin/top/
H A Ddisplay.c1338 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 Ded.xmap.c508 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 Dsubr_sbuf.c950 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 Dnetmap_pipe.c92 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 Dnetmap_monitor.c209 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 Dverbs.c304 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 Dice_dcb.h228 u16 buf_size, u16 old_len, u16 new_len, u16 offset,
H A Dice_dcb.c172 * @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 Dufs_extattr.c852 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 DOPENSSL_malloc.pod39 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 Dsctp_output.c11757 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 Dbuffer.c1104 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 Dbuffer.c1104 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 Dlinux_misc.c323 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()

12