Searched refs:size (Results 1 - 25 of 3533) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libmtmalloc/tests/
H A Dreallocs.c43 size_t size; local
45 for (size = 1; size <= MAX_CACHE_SZ; size++) {
46 p = malloc(size);
47 q = realloc(p, size);
49 (void) fprintf(stderr, "size: %d, p: 0x%p, q: 0x%p\n",
50 size, p, q);
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dvalloc.c29 valloc(size)
30 unsigned size;
35 return memalign(pagesize, size);
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dbcopywrap.c3 int bcopywrap(from, to, size)
5 size_t size;
7 bcopy((caddr_t)from, (caddr_t)to, size);
H A Dkmemcpywrap.c4 int kmemcpywrap(from, to, size)
6 size_t size;
10 ret = kmemcpy((caddr_t)to, (u_long)from, size);
/illumos-gate/usr/src/lib/fm/libldom/sparc/
H A Dldom_alloc.c29 ldom_alloc(size_t size) argument
31 return (umem_alloc(size, UMEM_DEFAULT));
35 ldom_free(void *data, size_t size) argument
37 umem_free(data, size);
/illumos-gate/usr/src/tools/smatch/src/compat/
H A Dmmap-blob.c13 * Our blob allocator enforces the strict CHUNK size
16 void *blob_alloc(unsigned long size) argument
20 if (size & ~CHUNK)
21 die("internal error: bad allocation size (%lu bytes)", size);
22 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
28 void blob_free(void *addr, unsigned long size) argument
30 if (!size || (size & ~CHUNK) || ((unsigned long) addr & 512))
31 die("internal error: bad blob free (%lu bytes at %p)", size, add
[all...]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/safety/
H A Dtst.copyin2.d30 * Test that there is no value of 'size' which can be passed to copyin
32 * that we test both size = 0 and size = 0xfff...fff
39 size_t size;
42 size_t size;
48 printf("size = 0x%lx\n", (ulong_t)size);
54 tracemem(copyin(curthread->t_procp->p_user.u_envp, size), 10);
58 /pid == $pid && size > (1 << MAX_BITS)/
66 size
[all...]
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A D_putmessage.c50 int size = 0; local
63 size = MESG_LEN;
73 (void) htos(buf + size, t_short);
75 size += 4;
81 (void) ltos(buf + size, t_long);
83 size += 8;
91 (void) htos(buf + size, t_short);
93 size += 4;
97 (void) memcpy(buf + size, t_string, t_short);
99 (buf + size)[
[all...]
H A Dwrite_fifo.c49 int write_fifo ( int fifo, char * buf, unsigned int size )
51 int write_fifo (fifo, buf, size)
54 unsigned int size;
61 (void)memcpy (buf + TAIL_ENDSYNC(size), Endsync, TAIL_ENDSYNC_LEN);
63 CALC_CHKSUM (buf, size, chksum);
64 (void)htos (buf + TAIL_CHKSUM(size), chksum);
86 if ((wbytes = write(fifo, buf, size)) > 0)
87 if (wbytes != size)
/illumos-gate/usr/src/tools/smatch/src/
H A Dcompat-cygwin.c35 void *blob_alloc(unsigned long size) argument
38 size = (size + 4095) & ~4095;
39 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
43 memset(ptr, 0, size);
47 void blob_free(void *addr, unsigned long size) argument
49 size = (size + 4095) & ~4095;
50 munmap(addr, size);
H A Dsmatch_mem_tracker.c29 unsigned long size; local
37 size = strtoul(buf, NULL, 10);
38 size = size * sysconf(_SC_PAGESIZE) / 1024;
39 return size;
44 unsigned long size; local
47 size = get_mem_kb();
48 if (size > max_size)
49 max_size = size;
H A Dcompat.h18 * of this size (the underlying allocator may be a mmap that
24 void *blob_alloc(unsigned long size);
25 void blob_free(void *addr, unsigned long size);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_alloc.c35 topo_alloc(size_t size, int flags) argument
37 return (umem_alloc(size, flags));
42 topo_zalloc(size_t size, int flags) argument
44 void *data = topo_alloc(size, flags);
46 bzero(data, size);
52 topo_free(void *data, size_t size) argument
54 umem_free(data, size);
58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) argument
62 return (ap->ta_alloc(size, ap->ta_flags));
66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) argument
74 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) argument
82 topo_mod_alloc(topo_mod_t *mod, size_t size) argument
88 topo_mod_zalloc(topo_mod_t *mod, size_t size) argument
94 topo_mod_free(topo_mod_t *mod, void *data, size_t size) argument
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dvalloc.c37 valloc(size_t size) argument
41 if (size == 0)
47 return (memalign(pagesize, size));
H A Dreallocf.c19 reallocf(void *ptr, size_t size) argument
21 void *nptr = realloc(ptr, size);
23 /* If size is zero, realloc will have already freed ptr. */
24 if (nptr == NULL && size != 0)
H A Dcalloc.c41 calloc(size_t num, size_t size) argument
46 if (num == 0 || size == 0)
49 total = num * size;
52 if (total / num != size) {
/illumos-gate/usr/src/psm/promif/ieee1275/sun4/
H A Dprom_map.c40 prom_map(caddr_t virthint, unsigned long long physaddr, u_int size) argument
50 if ((virt = prom_allocate_virt((u_int)1, size)) == 0)
54 if (prom_claim_virt(size, virt) != virt)
58 if (prom_map_phys(-1, size, virt, physaddr) != 0) {
63 (void) prom_free_virt(size, virt);
70 prom_unmap(caddr_t virt, u_int size) argument
72 (void) prom_unmap_virt(size, virt);
73 prom_free_virt(size, virt);
/illumos-gate/usr/src/lib/libast/common/stdio/
H A D_stdvbuf.c29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
31 return setvbuf(f, buf, type, size);
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_harmless.h29 void dwarf_harmless_init(struct Dwarf_Harmless_s *dhp,unsigned size);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_nv.c34 fmd_nv_alloc(nv_alloc_t *nva, size_t size) argument
36 return (fmd_alloc(size, FMD_SLEEP));
41 fmd_nv_free(nv_alloc_t *nva, void *buf, size_t size) argument
43 fmd_free(buf, size);
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfresize.c29 int sfresize(Sfio_t* f, Sfoff_t size) argument
31 int sfresize(f, size)
33 Sfoff_t size;
40 if(size < 0 || f->extent < 0 ||
49 if(f->extent >= size)
50 { if((f->flags&SF_MALLOC) && (f->next - f->data) <= size)
51 { size_t s = (((size_t)size + 1023)/1024)*1024;
53 if(s < f->size && (d = realloc(f->data, s)) )
55 f->size = s;
59 memclear((char*)(f->data+size), (in
[all...]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A Dsm_indirection1.c5 int frob(int size) argument
/illumos-gate/usr/src/cmd/sendmail/db/os/
H A Dos_alloc.c53 size_t size; local
59 size = strlen(str) + 1;
60 if ((ret = __os_malloc(size, NULL, &p)) != 0)
63 memcpy(p, str, size);
76 __os_calloc(num, size, storep)
77 size_t num, size;
83 size *= num;
84 if ((ret = __os_malloc(size, NULL, &p)) != 0)
87 memset(p, 0, size);
100 __os_malloc(size, db_mallo
[all...]
/illumos-gate/usr/src/cmd/audio/include/
H A DResample.h60 void updateState(double *in, int size);
63 int decimate_noadjust(short *in, int size, short *out);
65 int decimate(short *in, int size, short *out);
68 int interpolate_noadjust(short *in, int size, short *out);
70 int interpolate(short *in, int size, short *out);
76 virtual int filter_noadjust(short *in, int size, short *out);
77 virtual int filter(short *in, int size, short *out);
/illumos-gate/usr/src/stand/lib/sa/
H A Dmalloc.c36 malloc(size_t size) argument
40 iaddr = (size_t *)bkmem_alloc(size + sizeof (size_t));
46 iaddr[0] = size;
51 calloc(size_t number, size_t size) argument
55 addr = malloc(number * size);
59 return (memset(addr, 0, number * size));
63 realloc(void *oldaddr, size_t size) argument
68 addr = malloc(size);
72 bcopy(oldaddr, addr, (oldsize > size ? oldsize : size));
[all...]

Completed in 149 milliseconds

1234567891011>>