/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | emalloc.c | 25 size_t newsz, 38 if (0 == newsz) 41 allocsz = newsz; 48 (u_long)newsz); 52 file, line, (u_long)newsz); 57 if (zero_init && newsz > priorsz) 58 zero_mem(mem + priorsz, newsz - priorsz); 144 emalloc(size_t newsz) 146 return ereallocz(NULL, newsz, 0, FALSE); 23 ereallocz( void * ptr, size_t newsz, size_t priorsz, int zero_init , const char * file, int line ) argument
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntp_malloc.h | 47 # define EREALLOC_IMPL(ptr, newsz, filenm, loc) \ 48 realloc(ptr, (newsz))
|
/freebsd-11-stable/usr.bin/mkimg/ |
H A D | vhd.c | 165 uint64_t newsz; local 171 * The first time, newsz equals origsz and the geometry will 177 newsz = origsz; 179 vhd_geometry(newsz, &geom); 180 newsz = (int64_t)geom.cylinders * geom.heads * 182 if (newsz >= origsz) 184 newsz += geom.heads * geom.sectors * VHD_SECTOR_SIZE; 186 return (newsz);
|
H A D | image.c | 155 size_t dsz, newsz; local 157 newsz = ch->ch_size + sz; 158 if (newsz > ch->ch_size) { 159 ch->ch_size = newsz;
|
/freebsd-11-stable/contrib/flex/ |
H A D | tables.c | 465 flex_int32_t i, newsz, total_len; 473 newsz = min_int_size (tbl); 476 if (newsz == (int) YYTDFLAGS2BYTES (tbl->td_flags)) 480 if (newsz > (int) YYTDFLAGS2BYTES (tbl->td_flags)) { 486 newtbl.td_data = calloc (total_len, newsz); 488 TFLAGS_CLRDATA (newtbl.td_flags) | BYTES2TFLAG (newsz); 464 flex_int32_t i, newsz, total_len; local
|
/freebsd-11-stable/lib/libedit/ |
H A D | hist.c | 199 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) argument 203 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf)); 207 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf)); 212 el->el_history.sz = newsz;
|
H A D | chared.c | 508 size_t sz, newsz; local 512 newsz = sz * 2; 518 while(newsz - sz < addlen) 519 newsz *= 2; 525 newbuffer = el_realloc(el->el_line.buffer, newsz * sizeof(*newbuffer)); 530 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); 543 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz * 549 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); 563 newsz * sizeof(*newbuffer)); 568 (void) memset(&newbuffer[sz], 0, (newsz [all...] |
/freebsd-11-stable/contrib/dma/ |
H A D | dns.c | 102 size_t newsz = roundup(*ps + 2, count_inc); local 103 *he = reallocf(*he, newsz * sizeof(**he));
|
/freebsd-11-stable/contrib/bmake/ |
H A D | meta.c | 868 size_t newsz; local 871 newsz = ROUNDUP((fs.st_size / 2), BUFSIZ); 872 if (newsz <= bufsz) 873 newsz = ROUNDUP(fs.st_size, BUFSIZ); 874 if (newsz <= bufsz) 878 (unsigned)bufsz, (unsigned)newsz); 879 p = bmake_realloc(buf, newsz); 882 *szp = bufsz = newsz;
|
/freebsd-11-stable/contrib/mdocml/ |
H A D | roff.c | 3027 size_t oldsz, newsz, valsz; local 3033 newsz = roff_getname(r, &oldn, ln, pos); 3034 if (newn[newsz] == '\\' || *oldn == '\0') 3044 roff_setstrn(&r->strtab, newn, newsz, value, valsz, 0); 3045 roff_setstrn(&r->rentab, newn, newsz, NULL, 0, 0); 3175 size_t oldsz, newsz; local 3187 newsz = roff_getname(r, &end, ln, newn - buf->buf); 3188 if (newsz == 0) 3195 roff_setstrn(&r->strtab, newn, newsz, value, strlen(value), 0); 3197 roff_setstrn(&r->rentab, newn, newsz, NUL [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
H A D | libzfs_mount.c | 1171 size_t newsz; local 1174 newsz = cbp->cb_alloc != 0 ? cbp->cb_alloc * 2 : 64; 1177 newsz * sizeof (zfs_handle_t *)); 1179 cbp->cb_alloc = newsz;
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl.cpp | 530 const int newsz = 2 * sz; local 532 newsz * sizeof(uptr)); 537 thr->shadow_stack_end = newstack + newsz;
|
/freebsd-11-stable/usr.bin/dc/ |
H A D | bcode.c | 1710 size_t newsz = bmachine.readstack_sz * 2; local 1712 stack = realloc(bmachine.readstack, newsz * 1716 bmachine.readstack_sz = newsz;
|
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | dwarf.c | 1094 size_t newsz = 7 + strlen(old) + 1; local 1095 char *new = xmalloc(newsz); 1096 (void) snprintf(new, newsz, "orphan %s", old);
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | zap_micro.c | 536 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; local 537 if (newsz > MZAP_MAX_BLKSZ) { 546 VERIFY0(dmu_object_set_blocksize(os, obj, newsz, 0, tx));
|
H A D | dmu.c | 914 int newsz = offset > dn->dn_datablksz ? 0 : local 916 bzero((char *)buf + newsz, size - newsz); 917 size = newsz;
|