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

1234567891011>>

/osnet-11/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);
/osnet-11/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);
H A Dldom_alloc.h36 extern void *ldom_alloc(size_t size);
37 extern void ldom_free(void *data, size_t size);
/osnet-11/usr/src/lib/libldap4/include/
H A Dch_malloc.h8 char * ch_malloc( unsigned long size );
9 char * ch_realloc( char *block, unsigned long size );
10 char * ch_calloc( unsigned long nelem, unsigned long size );
/osnet-11/usr/src/lib/libntfs/common/libntfs/
H A Dmisc.c40 void *ntfs_calloc(size_t size) argument
44 p = calloc(1, size);
46 ntfs_log_perror("Failed to calloc %lld bytes", (long long)size);
56 void *ntfs_malloc(size_t size) argument
60 p = malloc(size);
62 ntfs_log_perror("Failed to malloc %lld bytes", (long long)size);
/osnet-11/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...]
/osnet-11/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 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) {
/osnet-11/usr/src/lib/libmalloc/common/
H A Dllib-lmalloc34 void *valloc(size_t size);
35 void *memalign(size_t alignment, size_t size);
36 void cfree(void *p, size_t num, size_t size);
/osnet-11/usr/src/grub/grub2/grub-core/lib/posix_wrap/
H A Dstdlib.h32 malloc (grub_size_t size) argument
34 return grub_malloc (size);
38 calloc (grub_size_t size, grub_size_t nelem) argument
40 return grub_zalloc (size * nelem);
44 realloc (void *ptr, grub_size_t size) argument
46 return grub_realloc (ptr, size);
/osnet-11/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);
/osnet-11/usr/src/grub/grub2/include/grub/lib/
H A Dcrc.h23 grub_uint32_t grub_getcrc32c (grub_uint32_t crc, const void *buf, int size);
/osnet-11/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...]
/osnet-11/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...]
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dvmgetmem.c43 Void_t* vmgetmem(Vmalloc_t* vm, Void_t* data, size_t size) argument
45 Void_t* vmgetmem(vm, data, size)
48 size_t size;
53 if (data || size)
54 return vmresize(vm, data, size, VM_RSMOVE|VM_RSCOPY|VM_RSZERO);
/osnet-11/usr/src/grub/grub2/include/grub/
H A Dmm.h31 void grub_mm_init_region (void *addr, grub_size_t size);
32 void *EXPORT_FUNC(grub_malloc) (grub_size_t size);
33 void *EXPORT_FUNC(grub_zalloc) (grub_size_t size);
35 void *EXPORT_FUNC(grub_realloc) (void *ptr, grub_size_t size);
36 void *EXPORT_FUNC(grub_memalign) (grub_size_t align, grub_size_t size);
49 #define grub_malloc(size) \
50 grub_debug_malloc (GRUB_FILE, __LINE__, size)
52 #define grub_zalloc(size) \
53 grub_debug_zalloc (GRUB_FILE, __LINE__, size)
55 #define grub_realloc(ptr,size) \
93 grub_page_align(grub_size_t size) argument
[all...]
H A Dbufio.h25 grub_file_t EXPORT_FUNC (grub_bufio_open) (grub_file_t io, int size);
26 grub_file_t EXPORT_FUNC (grub_buffile_open) (const char *name, int size);
/osnet-11/usr/src/lib/libctf/common/
H A Dctf_subr.c35 ctf_data_alloc(size_t size) argument
37 return (mmap(NULL, size, PROT_READ | PROT_WRITE,
42 ctf_data_free(void *buf, size_t size) argument
44 (void) munmap(buf, size);
48 ctf_data_protect(void *buf, size_t size) argument
50 (void) mprotect(buf, size, PROT_READ);
54 ctf_alloc(size_t size) argument
56 return (malloc(size));
61 ctf_free(void *buf, size_t size) argument
/osnet-11/usr/src/lib/libcurses/screen/
H A Dvwprintw.c66 int size = BUFSIZ; local
70 buffer = (char *) malloc(size);
75 n = vsnprintf(buffer, size, fmt, ap);
76 if (n < size)
78 size *= 2;
79 buffer = (char *) realloc(buffer, size);
H A Dwctomb.c44 int size, index; local
56 size = eucw1;
62 size = eucw2;
68 size = eucw3;
74 if ((index = size) <= 0)
85 return ((int)(s - olds) + size);
/osnet-11/usr/src/grub/grub-0.97/stage2/
H A Dsize_test23 # This function checks if the size of the first argument (filename) is
31 size=$6
32 if test $size -gt $limit; then
33 echo "$file is too big ($size > $limit)."
44 # first cylinder, so the size is (63 - 1) sectors.
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dvw_print.c53 int size = BUFSIZ; local
57 buffer = (char *)malloc(size);
63 n = vsnprintf(buffer, size, fmt, ap);
64 if (n < size)
66 size *= 2;
67 buffer = (char *)realloc(buffer, size);
H A Dvwprintw.c58 int size = BUFSIZ; local
62 buffer = (char *)malloc(size);
68 n = vsnprintf(buffer, size, fmt, ap);
69 if (n < size)
71 size *= 2;
72 buffer = (char *)realloc(buffer, size);
/osnet-11/usr/src/lib/libntfs/common/include/ntfs/
H A Dmst.h29 extern int ntfs_mst_post_read_fixup(NTFS_RECORD *b, const u32 size);
30 extern int ntfs_mst_pre_write_fixup(NTFS_RECORD *b, const u32 size);
/osnet-11/usr/src/lib/fm/libasr/common/
H A Dasr_mem.h36 extern void *asr_alloc(size_t size);
37 extern void *asr_zalloc(size_t size);

Completed in 102 milliseconds

1234567891011>>