Searched defs:elsize (Results 1 - 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/msgfmt/
H A Dutil.c81 Xcalloc(size_t nelem, size_t elsize) argument
85 t = calloc(nelem, elsize);
/illumos-gate/usr/src/uts/common/rpc/
H A Dxdr_array.c53 * If addrp is NULL (*sizep * elsize) bytes are allocated.
54 * elsize is the size (in bytes) of each element, and elproc is the
59 const uint_t elsize, const xdrproc_t elproc)
72 if ((c > maxsize || LASTUNSIGNED / elsize < c) &&
76 nodesize = c * elsize;
103 target += elsize;
58 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, const uint_t elsize, const xdrproc_t elproc) argument
/illumos-gate/usr/src/cmd/lp/lib/lp/
H A DSys_malloc.c118 size_t elsize,
123 _Calloc (nelem, elsize, file, line)
125 size_t elsize;
130 alloc_type ret = calloc(nelem, elsize);
116 _Calloc( size_t nelem, size_t elsize, const char * file, int line ) argument
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dxdr_array.c62 * If *addrp is NULL (*sizep * elsize) bytes are allocated.
63 * elsize is the size (in bytes) of each element, and elproc is the
68 const uint_t elsize, const xdrproc_t elproc)
80 if ((c > maxsize || LASTUNSIGNED / elsize < c) &&
83 nodesize = c * elsize;
111 target += elsize;
67 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, const uint_t elsize, const xdrproc_t elproc) argument
/illumos-gate/usr/src/lib/libumem/common/
H A Dmalloc.c123 calloc(size_t nelem, size_t elsize) argument
125 size_t size = nelem * elsize;
128 if (nelem > 0 && elsize > 0 && size/nelem != elsize) {
/illumos-gate/usr/src/tools/ndrgen/
H A Dndr_lex.c445 ndr_alloc(size_t nelem, size_t elsize) argument
449 if ((p = calloc(nelem, elsize)) == NULL) {
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_xdr.c533 * elsize - size of list element
538 const size_t elsize, const xdrproc_t elproc)
564 list_create(list, elsize, offset);
566 node = MEM_MALLOC("xdr", elsize);
537 smb_list_xdr(XDR *xdrs, list_t *list, const size_t offset, const size_t elsize, const xdrproc_t elproc) argument
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_retire.c81 s_calloc(size_t nelem, size_t elsize, int fail) argument
87 return (calloc(nelem, elsize));
/illumos-gate/usr/src/cmd/rpcgen/
H A Drpc_cout.c453 arraysize(char *sz, declaration *dc, int elsize) argument
456 int elsz = elsize;
483 * If elsize != 1 the allocate 3 extra bytes for the times
487 len = strlen(dc->array_max) + (elsize == 1 ? 0 : digits + 5) + 1;
495 if (elsize == 1)
500 plus, dc->array_max, elsize);
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/
H A Dfncs.c959 _Calloc(size_t nelem, size_t elsize, const char *file, int line) argument
961 alloc_type ret = calloc(nelem, elsize);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montecarlo/common/
H A Dmontecarlo.c332 static void *config_calloc_check(size_t nelem, size_t elsize);
532 size_t elsize)
538 p = calloc(nelem, elsize);
540 log_printf(dgettext(TEXT_DOMAIN, alloc_fail), nelem, elsize, 0); local
530 config_calloc_check( size_t nelem, size_t elsize) argument
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Drcm_script.c2617 rcmscript_calloc(size_t nelem, size_t elsize) argument
2621 if ((ptr = calloc(nelem, elsize)) == NULL) {
/illumos-gate/usr/src/cmd/cfgadm/
H A Dcfgadm.c2275 size_t elsize)
2282 p = calloc(nelem, elsize);
2285 nelem, elsize);
2273 config_calloc_check( size_t nelem, size_t elsize) argument
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dhba.c2653 scsa1394_kmem_realloc(void *old_buf, int old_size, int new_size, size_t elsize, argument
2658 new_buf = kmem_zalloc(new_size * elsize, kf);
2662 bcopy(old_buf, new_buf, old_size * elsize);
2664 kmem_free(old_buf, old_size * elsize);
/illumos-gate/usr/src/cmd/truss/
H A Dmain.c2634 my_calloc(size_t nelem, size_t elsize, const char *msg) argument
2638 if ((buf = calloc(nelem, elsize)) == NULL) {
/illumos-gate/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1313 size_t elsize,
1318 p = calloc(nelem, elsize);
1311 config_calloc_check( size_t nelem, size_t elsize, char **errstring) argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/wificonfig/
H A Dwificonfig.c523 safe_calloc(size_t nelem, size_t elsize) argument
527 buf = calloc(nelem, elsize);
/illumos-gate/usr/src/cmd/zoneadm/
H A Dzoneadm.c410 safe_calloc(size_t nelem, size_t elsize) argument
412 void *r = calloc(nelem, elsize);
416 (ulong_t)nelem * elsize, strerror(errno));

Completed in 118 milliseconds