Home
last modified time | relevance | path

Searched refs:oldsz (Results 1 – 3 of 3) sorted by relevance

/freebsd/contrib/libedit/
H A Dhist.c226 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/mandoc/
H A Droff.c3581 size_t oldsz, newsz, valsz; in roff_als() local
3592 oldsz = roff_getname(r, &end, ln, oldn - buf->buf); in roff_als()
3593 if (oldsz == 0) in roff_als()
3597 (int)oldsz, oldn); in roff_als()
3823 size_t oldsz, newsz; in roff_rn() local
3830 oldsz = roff_getname(r, &newn, ln, pos); in roff_rn()
3831 if (oldn[oldsz] == '\\' || oldn[oldsz] == '\t' || *newn == '\0') in roff_rn()
3840 value = roff_getstrn(r, oldn, oldsz, &deftype); in roff_rn()
3844 roff_setstrn(&r->strtab, oldn, oldsz, NULL, 0, 0); in roff_rn()
3853 roff_setstrn(&r->rentab, oldn, oldsz, NULL, 0, 0); in roff_rn()
[all …]
/freebsd/sys/kern/
H A Dsubr_stats.c329 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()