Home
last modified time | relevance | path

Searched refs:newsz (Results 1 – 11 of 11) sorted by relevance

/freebsd-9-stable/contrib/ntp/libntp/
Demalloc.c25 size_t newsz, in ereallocz() argument
38 if (0 == newsz) in ereallocz()
41 allocsz = newsz; in ereallocz()
48 (u_long)newsz); in ereallocz()
52 file, line, (u_long)newsz); in ereallocz()
57 if (zero_init && newsz > priorsz) in ereallocz()
58 zero_mem(mem + priorsz, newsz - priorsz); in ereallocz()
143 emalloc(size_t newsz)
145 return ereallocz(NULL, newsz, 0, FALSE);
/freebsd-9-stable/lib/libedit/
Dchared.c546 size_t sz, newsz; in ch_enlargebufs() local
550 newsz = sz * 2; in ch_enlargebufs()
556 while(newsz - sz < addlen) in ch_enlargebufs()
557 newsz *= 2; in ch_enlargebufs()
563 newbuffer = el_realloc(el->el_line.buffer, newsz); in ch_enlargebufs()
568 (void) memset(&newbuffer[sz], 0, newsz - sz); in ch_enlargebufs()
581 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz); in ch_enlargebufs()
586 (void) memset(&newbuffer[sz], 0, newsz - sz); in ch_enlargebufs()
599 newbuffer = el_realloc(el->el_chared.c_undo.buf, newsz); in ch_enlargebufs()
604 (void) memset(&newbuffer[sz], 0, newsz - sz); in ch_enlargebufs()
[all …]
Dhist.c192 hist_enlargebuf(EditLine *el, size_t oldsz, size_t newsz) in hist_enlargebuf() argument
196 newbuf = realloc(el->el_history.buf, newsz); in hist_enlargebuf()
200 (void) memset(&newbuf[oldsz], '\0', newsz - oldsz); in hist_enlargebuf()
205 el->el_history.sz = newsz; in hist_enlargebuf()
/freebsd-9-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
Dspace_map.c258 uint64_t newsz; in space_map_set_blocksize() local
270 newsz = ISP2(size) ? size : 1ULL << highbit64(size); in space_map_set_blocksize()
271 if (newsz > space_map_max_blksz) in space_map_set_blocksize()
272 newsz = space_map_max_blksz; in space_map_set_blocksize()
275 space_map_object(sm), newsz, 0, tx)); in space_map_set_blocksize()
282 VERIFY3U(newsz, ==, blksz); in space_map_set_blocksize()
301 uint64_t newsz, expected_entries, actual_entries = 1; in space_map_write() local
331 newsz = sm->sm_phys->smp_objsize + expected_entries * sizeof (uint64_t); in space_map_write()
332 space_map_set_blocksize(sm, newsz, tx); in space_map_write()
Ddmu.c754 int newsz = offset > dn->dn_datablksz ? 0 : in dmu_read() local
756 bzero((char *)buf + newsz, size - newsz); in dmu_read()
757 size = newsz; in dmu_read()
Dzap_micro.c512 uint64_t newsz = db->db_size + SPA_MINBLOCKSIZE; in zap_lockdir() local
513 if (newsz > MZAP_MAX_BLKSZ) { in zap_lockdir()
519 err = dmu_object_set_blocksize(os, obj, newsz, 0, tx); in zap_lockdir()
/freebsd-9-stable/contrib/ntp/include/
Dntp_malloc.h47 # define EREALLOC_IMPL(ptr, newsz, filenm, loc) \ argument
48 realloc(ptr, (newsz))
/freebsd-9-stable/contrib/bmake/
Dmeta.c802 size_t newsz; in fgetLine() local
805 newsz = ROUNDUP((fs.st_size / 2), BUFSIZ); in fgetLine()
806 if (newsz <= bufsz) in fgetLine()
807 newsz = ROUNDUP(fs.st_size, BUFSIZ); in fgetLine()
810 (unsigned)bufsz, (unsigned)newsz); in fgetLine()
811 p = bmake_realloc(buf, newsz); in fgetLine()
814 *szp = bufsz = newsz; in fgetLine()
/freebsd-9-stable/cddl/contrib/opensolaris/lib/libzfs/common/
Dlibzfs_mount.c1045 size_t newsz; in libzfs_add_handle() local
1048 newsz = cbp->cb_alloc ? cbp->cb_alloc * 2 : 64; in libzfs_add_handle()
1051 newsz * sizeof (void *)); in libzfs_add_handle()
1053 cbp->cb_alloc = newsz; in libzfs_add_handle()
/freebsd-9-stable/usr.bin/dc/
Dbcode.c1685 size_t newsz = bmachine.readstack_sz * 2; in eval_string() local
1687 stack = realloc(bmachine.readstack, newsz * in eval_string()
1691 bmachine.readstack_sz = newsz; in eval_string()
/freebsd-9-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
Ddwarf.c1045 size_t newsz = 7 + strlen(old) + 1; in die_sou_create() local
1046 char *new = xmalloc(newsz); in die_sou_create()
1047 (void) snprintf(new, newsz, "orphan %s", old); in die_sou_create()