Searched defs:size (Results 1 - 25 of 2422) sorted by relevance

1234567891011>>

/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/lib/libc/port/gen/
H A Dcfree.c42 cfree(void *p, size_t num, size_t size) argument
H A Dvalloc.c37 valloc(size_t size) argument
41 if (size == 0)
47 return (memalign(pagesize, size));
H A Dfreezero.c20 freezero(void *ptr, size_t size) argument
25 explicit_bzero(ptr, 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) {
H A Dgetcwd.c43 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 Dposix_memalign.c43 * If the size of the space requested is 0, the behavior
50 posix_memalign(void **memptr, size_t alignment, size_t size) argument
57 } else if (size == 0) {
61 if ((ptr = memalign(alignment, size)) == NULL) {
/illumos-gate/usr/src/cmd/tnf/prex/
H A Dnew.c43 new_alloc(size_t size) argument
47 ptr = malloc(size);
/illumos-gate/usr/src/lib/libast/common/stdio/
H A Dfmemopen.c27 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.c29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
31 return setvbuf(f, buf, type, size);
H A Dsetvbuf.c27 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/tools/smatch/src/validation/
H A Dsm_indirection1.c5 int frob(int size) argument
H A Dsm_mod.c5 int frob(int size) argument
H A Dsm_switch3.c7 int test(int size) argument
/illumos-gate/usr/src/lib/libmapmalloc/common/
H A Dvalloc.c33 * valloc(size) - do nothing
38 valloc(size_t size) argument
/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/cmd/lp/lib/msgs/
H A Dputmessage.c45 int size; local
55 size = _putmessage(buf, type, arg);
57 return(size);
/illumos-gate/usr/src/cmd/mail/
H A Distext.c36 * 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 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/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);
/illumos-gate/usr/src/uts/sun4/sys/
H A Dmemlist_plat.h48 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/lib/libfakekernel/common/
H A Dstrext.c27 int size; local
32 size = vsnprintf(NULL, 0, fmt, adx) + 1;
35 buf = kmem_alloc(size, KM_SLEEP);
38 size = vsnprintf(buf, size, fmt, adx);
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_realloc.c27 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 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);

Completed in 140 milliseconds

1234567891011>>