Searched refs:newsz (Results 1 - 20 of 20) sorted by relevance

/freebsd-current/contrib/ntp/libntp/
H A Demalloc.c25 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-current/contrib/ntp/include/
H A Dntp_malloc.h47 # define EREALLOC_IMPL(ptr, newsz, filenm, loc) \
48 realloc(ptr, (newsz))
/freebsd-current/usr.bin/mkimg/
H A Dvhd.c161 uint64_t newsz; local
167 * The first time, newsz equals origsz and the geometry will
173 newsz = origsz;
175 vhd_geometry(newsz, &geom);
176 newsz = (int64_t)geom.cylinders * geom.heads *
178 if (newsz >= origsz)
180 newsz += geom.heads * geom.sectors * VHD_SECTOR_SIZE;
182 return (newsz);
H A Dimage.c153 size_t dsz, newsz; local
155 newsz = ch->ch_size + sz;
156 if (newsz > ch->ch_size) {
157 ch->ch_size = newsz;
/freebsd-current/contrib/flex/src/
H A Dtables.c465 size_t newsz;
473 newsz = min_int_size (tbl);
476 if (newsz == YYTDFLAGS2BYTES (tbl->td_flags))
480 if (newsz > YYTDFLAGS2BYTES (tbl->td_flags)) {
486 newtbl.td_data = calloc ((size_t) total_len, newsz);
488 (TFLAGS_CLRDATA (newtbl.td_flags) | BYTES2TFLAG (newsz));
464 size_t newsz; local
/freebsd-current/contrib/libedit/
H A Dhist.c226 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) argument
230 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf));
234 (void) memset(&newbuf[oldsz], '\0', (newsz - oldsz) * sizeof(*newbuf));
239 el->el_history.sz = newsz;
H A Dchared.c485 size_t sz, newsz; local
489 newsz = sz * 2;
495 while(newsz - sz < addlen)
496 newsz *= 2;
502 newbuffer = el_realloc(el->el_line.buffer, newsz * sizeof(*newbuffer));
507 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer));
520 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz *
526 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer));
540 newsz * sizeof(*newbuffer));
545 (void) memset(&newbuffer[sz], 0, (newsz
[all...]
/freebsd-current/contrib/dma/
H A Ddns.c102 size_t newsz = roundup(*ps + 2, count_inc); local
103 *he = reallocf(*he, newsz * sizeof(**he));
/freebsd-current/usr.bin/diff3/
H A Ddiff3.c794 size_t newsz, incr; local
797 newsz = szchanges == 0 ? 64 : 2 * szchanges;
798 incr = newsz - szchanges;
800 p = reallocarray(d13, newsz, sizeof(struct diff));
805 p = reallocarray(d23, newsz, sizeof(struct diff));
810 p = reallocarray(de, newsz, sizeof(struct diff));
815 q = reallocarray(overlap, newsz, sizeof(char));
820 szchanges = newsz;
/freebsd-current/contrib/bmake/
H A Dmeta.c881 size_t newsz; local
884 newsz = ROUNDUP(((size_t)fs.st_size / 2), BUFSIZ);
885 if (newsz <= bufsz)
886 newsz = ROUNDUP((size_t)fs.st_size, BUFSIZ);
887 if (newsz <= bufsz)
890 (unsigned)bufsz, (unsigned)newsz);
891 p = bmake_realloc(buf, newsz);
893 *szp = bufsz = newsz;
/freebsd-current/contrib/mandoc/
H A Droff.c3581 size_t oldsz, newsz, valsz; local
3587 newsz = roff_getname(r, &oldn, ln, pos);
3588 if (newn[newsz] == '\\' || newn[newsz] == '\t' || *oldn == '\0')
3598 roff_setstrn(&r->strtab, newn, newsz, value, valsz, 0);
3599 roff_setstrn(&r->rentab, newn, newsz, NULL, 0, 0);
3823 size_t oldsz, newsz; local
3835 newsz = roff_getname(r, &end, ln, newn - buf->buf);
3836 if (newsz == 0)
3843 roff_setstrn(&r->strtab, newn, newsz, valu
[all...]
/freebsd-current/sys/contrib/openzfs/lib/libzfs/
H A Dlibzfs_mount.c895 size_t newsz; local
898 newsz = cbp->cb_alloc != 0 ? cbp->cb_alloc * 2 : 64;
901 newsz * sizeof (zfs_handle_t *));
903 cbp->cb_alloc = newsz;
/freebsd-current/contrib/ntp/sntp/libopts/
H A Dsave.c488 * @param[in] newsz new size of fname in octets
491 truncate(char const* fname, size_t newsz) argument
499 err = _chsize_s(fd, newsz);
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl.cpp877 const int newsz = 2 * sz; local
878 auto *newstack = (uptr *)Alloc(newsz * sizeof(uptr));
883 thr->shadow_stack_end = newstack + newsz;
/freebsd-current/usr.bin/dc/
H A Dbcode.c1706 size_t newsz = bmachine.readstack_sz * 2; local
1708 stack = reallocarray(bmachine.readstack, newsz,
1712 bmachine.readstack_sz = newsz;
/freebsd-current/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) argument
395 ptr = realloc(ptr, newsz, M_STATS, flags);
397 ptr = realloc(ptr, newsz);
400 memset(ptr, '\0', newsz);
401 else if (newsz > oldsz)
402 memset(BLOB_OFFSET(ptr, oldsz), '\0', newsz - oldsz);
/freebsd-current/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Ddwarf.c1065 size_t newsz = 7 + strlen(old) + 1; local
1066 char *new = xmalloc(newsz);
1067 (void) snprintf(new, newsz, "orphan %s", old);
/freebsd-current/crypto/openssl/crypto/
H A Dprovider_core.c390 size_t newsz = store->provinfosz + BUILTINS_BLOCK_SIZE; local
393 sizeof(*store->provinfo) * newsz);
399 store->provinfosz = newsz;
/freebsd-current/sys/contrib/openzfs/module/zfs/
H A Ddmu.c1065 uint64_t newsz = offset > dn->dn_datablksz ? 0 : local
1067 memset((char *)buf + newsz, 0, size - newsz);
1068 size = newsz;
H A Dzap_micro.c577 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; local
578 if (newsz > zap_micro_max_size) {
587 VERIFY0(dmu_object_set_blocksize(os, obj, newsz, 0, tx));

Completed in 361 milliseconds