/osnet-11/usr/src/lib/libmtmalloc/tests/ |
H A D | reallocs.c | 43 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 D | ldom_alloc.c | 29 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 D | ldom_alloc.h | 36 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 D | ch_malloc.h | 8 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 D | misc.c | 40 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 D | topo_alloc.c | 35 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 D | valloc.c | 37 valloc(size_t size) argument 41 if (size == 0) 47 return (memalign(pagesize, size));
|
H A D | calloc.c | 41 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 D | llib-lmalloc | 34 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 D | stdlib.h | 32 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.c | 29 _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 D | crc.h | 23 grub_uint32_t grub_getcrc32c (grub_uint32_t crc, const void *buf, int size);
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfresize.c | 29 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 D | os_alloc.c | 53 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 D | vmgetmem.c | 43 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 D | mm.h | 31 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 D | bufio.h | 25 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 D | ctf_subr.c | 35 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 D | vwprintw.c | 66 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 D | wctomb.c | 44 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 D | size_test | 23 # 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 D | vw_print.c | 53 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 D | vwprintw.c | 58 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 D | mst.h | 29 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 D | asr_mem.h | 36 extern void *asr_alloc(size_t size); 37 extern void *asr_zalloc(size_t size);
|