/illumos-gate/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);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | cfree.c | 42 cfree(void *p, size_t num, size_t size) argument
|
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) {
|
H A D | getcwd.c | 43 getcwd(char *pathname, size_t size) argument 47 if (size == 0) { 53 if ((pathname = malloc(size)) == NULL) { 60 if (syscall(SYS_getcwd, pathname, size) == 0)
|
H A D | posix_memalign.c | 42 * If the size of the space requested is 0, the behavior 49 posix_memalign(void **memptr, size_t alignment, size_t size) argument 58 else if (size != 0 && 59 (ptr = memalign(alignment, size)) == NULL)
|
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | new.c | 43 new_alloc(size_t size) argument 47 ptr = malloc(size);
|
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | fmemopen.c | 27 fmemopen(void* buf, size_t size, const char* mode) argument 29 STDIO_PTR(0, "fmemopen", Sfio_t*, (void*, size_t, const char*), (buf, size, mode)) 31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL));
|
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);
|
H A D | setvbuf.c | 27 setvbuf(Sfio_t* f, char* buf, int type, size_t size) argument 29 STDIO_INT(f, "setvbuf", int, (Sfio_t*, char*, int, size_t), (f, buf, type, size)) 42 if (size == 0) 43 size = SF_BUFSIZE; 45 sfsetbuf(f, (Void_t*)buf, size);
|
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/ |
H A D | memcmp.c | 32 p_memcmp(const char *to, const char *from, unsigned size) argument 34 while ((--size) && (*to++ == *from++)) 37 return (size || (*to != *from));
|
H A D | memset.c | 32 p_memset(char *buffer, char value, int size) argument 34 while (size--)
|
/illumos-gate/usr/src/lib/libmapmalloc/common/ |
H A D | valloc.c | 33 * valloc(size) - do nothing 38 valloc(size_t size) argument
|
/illumos-gate/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);
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | istext.c | 36 * istext(line, size) - check for text characters 39 istext(unsigned char *s, int size) argument 44 for (ep = s+size; --ep >= s; ) {
|
/illumos-gate/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...] |
/illumos-gate/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);
|
/illumos-gate/usr/src/uts/sun4/sys/ |
H A D | memlist_plat.h | 48 u_longlong_t size; member in struct:prom_memlist 53 extern void size_physavail(prom_memlist_t *physavail, size_t size, 55 extern pgcnt_t size_virtalloc(prom_memlist_t *avail, size_t size);
|
/illumos-gate/usr/src/cmd/lp/lib/msgs/ |
H A D | putmessage.c | 45 int size; local 55 size = _putmessage(buf, type, arg); 57 return(size);
|
/illumos-gate/usr/src/boot/sys/boot/fdt/ |
H A D | fdt_platform.h | 36 unsigned long size; member in struct:fdt_mem_region
|
/illumos-gate/usr/src/lib/krb5/dyn/ |
H A D | dyn_realloc.c | 27 int cnt, size; local 29 if (obj->size > req) 32 return _DynRealloc(obj, (req - obj->size) / obj->inc + 1); 34 if (obj->size == 0) 35 size = -obj->inc; 37 size = obj->size; 39 while (size <= req) 40 size <<= 1; 42 return _DynRealloc(obj, size); [all...] |
/illumos-gate/usr/src/lib/libcurses/screen/ |
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);
|
/illumos-gate/usr/src/lib/libtnfctl/ |
H A D | targmem.c | 46 _tnfctl_targmem_alloc(tnfctl_handle_t *hndl, size_t size, uintptr_t *addr_p) argument 61 if ((memseg.min_p + memseg.i_reqsz) <= (memseg.max_p - size)) { 62 memseg.max_p -= size; 73 tnf_long, size_allocated, size,
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | setbuffer.c | 46 setbuffer(FILE *iop, char *buf, int size) argument 59 /* regular buffered I/O, specified buffer size */ 60 if (size <= 0) 62 iop->_bufsiz = size;
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lockf.c | 45 __lockf(int fildes, int function, off_t size) argument 51 if (size < 0) { 52 l.l_start = size; 53 l.l_len = -size; 56 l.l_len = size;
|