/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/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);
|
/osnet-11/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);
|
H A D | swprintf.c | 27 swprintf(wchar_t* s, size_t size, const wchar_t* fmt, ...) argument 33 v = vswprintf(s, size, fmt, args);
|
/osnet-11/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)
|
/osnet-11/usr/src/lib/libmapmalloc/common/ |
H A D | valloc.c | 33 * valloc(size) - do nothing 38 valloc(size_t size) argument
|
H A D | calloc.c | 35 calloc(size_t num, size_t size) argument 38 size_t total = num * size; 40 if (num != 0 && (total / num) != size) { 53 cfree(void *p, size_t num, size_t size) argument
|
/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/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/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/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);
|
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | pol_xdr.c | 20 u_int size; local 24 size = 0; 26 size = strlen(*objp) + 1; 28 if (! xdr_u_int(xdrs, &size)) { 33 if (size == 0) { 37 *objp = (char *) mem_alloc(size); 43 return (xdr_opaque(xdrs, *objp, size)); 46 if (size != 0) 47 return (xdr_opaque(xdrs, *objp, size)); 52 mem_free(*objp, size); [all...] |
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | makebuf.c | 47 size_t size; local 56 flags = sm_whatbuf(fp, &size, &couldbetty); 57 if ((p = sm_malloc(size)) == NULL) 68 fp->f_bf.smb_size = size; 77 ** Plus it fills in 'bufsize' for recommended buffer size and 83 ** bufsize -- new buffer size (a return)
|
/osnet-11/usr/src/lib/libast/common/cdt/ |
H A D | dtsize.c | 46 reg int size; local 50 if(dt->data->size < 0) /* !(dt->data->type&(DT_SET|DT_BAG)) */ 52 dt->data->size = treecount(dt->data->here); 54 { for(size = 0, t = dt->data->head; t; t = t->right) 55 size += 1; 56 dt->data->size = size; 60 return dt->data->size;
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | swapop.c | 35 * if size<0 then (-size) used and (-size==4)&&(op==3) => op=7 40 swapop(const void* internal, const void* external, int size) argument 46 if ((z = size) < 0) 54 if (size < 0 && z == 4 && op == 3)
|
/osnet-11/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;
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | LinkEventListener.h | 52 void *buf, uint32_t size); 57 uint32_t size; member in class:LinkEventListener
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | pr_ioctl.c | 39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument 63 if (size == 0) { 74 adp->arg_size = size;
|
/osnet-11/usr/src/lib/libnvpair/ |
H A D | nvpair_alloc_system.c | 34 nv_alloc_sys(nv_alloc_t *nva, size_t size) argument 36 return (malloc(size)); 41 nv_free_sys(nv_alloc_t *nva, void *buf, size_t size) argument
|