Searched refs:oldsz (Results 1 – 4 of 4) sorted by relevance
/freebsd/contrib/libedit/ |
H A D | hist.c | 226 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) in hist_enlargebuf() argument 234 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf)); in hist_enlargebuf()
|
/freebsd/contrib/libder/libder/ |
H A D | libder_read.c | 340 libder_read_realloc(uint8_t *ptr, size_t oldsz, size_t newsz) in libder_read_realloc() argument 344 if (oldsz == 0) in libder_read_realloc() 348 assert(newsz > oldsz); in libder_read_realloc() 354 if (oldsz != 0) { in libder_read_realloc() 355 memcpy(newbuf, ptr, oldsz); in libder_read_realloc() 357 libder_bzero(ptr, oldsz); in libder_read_realloc()
|
/freebsd/contrib/mandoc/ |
H A D | roff.c | 3551 size_t oldsz, newsz, valsz; in roff_als() local 3562 oldsz = roff_getname(r, &end, ln, oldn - buf->buf); in roff_als() 3563 if (oldsz == 0) in roff_als() 3567 (int)oldsz, oldn); in roff_als() 3832 size_t oldsz, newsz; in roff_rn() local 3839 oldsz = roff_getname(r, &newn, ln, pos); in roff_rn() 3840 if (oldn[oldsz] == '\\' || oldn[oldsz] == '\t' || *newn == '\0') in roff_rn() 3849 value = roff_getstrn(r, oldn, oldsz, &deftype); in roff_rn() 3853 roff_setstrn(&r->strtab, oldn, oldsz, NULL, 0, 0); in roff_rn() 3862 roff_setstrn(&r->rentab, oldn, oldsz, NULL, 0, 0); in roff_rn() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_stats.c | 329 static inline void * stats_realloc(void *ptr, size_t oldsz, size_t newsz, 388 stats_realloc(void *ptr, size_t oldsz, size_t newsz, int flags) in stats_realloc() argument 399 if (oldsz == 0) in stats_realloc() 401 else if (newsz > oldsz) in stats_realloc() 402 memset(BLOB_OFFSET(ptr, oldsz), '\0', newsz - oldsz); in stats_realloc()
|