/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | util.c | 81 Xcalloc(size_t nelem, size_t elsize) argument 85 t = calloc(nelem, elsize);
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_array.c | 53 * 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 D | Sys_malloc.c | 118 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 D | xdr_array.c | 62 * 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 D | malloc.c | 123 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 D | ndr_lex.c | 445 ndr_alloc(size_t nelem, size_t elsize) argument 449 if ((p = calloc(nelem, elsize)) == NULL) {
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_xdr.c | 533 * 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 D | devinfo_retire.c | 81 s_calloc(size_t nelem, size_t elsize, int fail) argument 87 return (calloc(nelem, elsize));
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_cout.c | 453 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 D | fncs.c | 959 _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 D | montecarlo.c | 332 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 D | rcm_script.c | 2617 rcmscript_calloc(size_t nelem, size_t elsize) argument 2621 if ((ptr = calloc(nelem, elsize)) == NULL) {
|
/illumos-gate/usr/src/cmd/cfgadm/ |
H A D | cfgadm.c | 2275 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 D | hba.c | 2653 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 D | main.c | 2634 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 D | config_admin.c | 1313 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 D | wificonfig.c | 523 safe_calloc(size_t nelem, size_t elsize) argument 527 buf = calloc(nelem, elsize);
|
/illumos-gate/usr/src/cmd/zoneadm/ |
H A D | zoneadm.c | 410 safe_calloc(size_t nelem, size_t elsize) argument 412 void *r = calloc(nelem, elsize); 416 (ulong_t)nelem * elsize, strerror(errno));
|