/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | recallocarray.c | 30 recallocarray(void *ptr, size_t oldnelem, size_t newnelem, size_t elsize) in recallocarray() argument 36 return (calloc(newnelem, elsize)); in recallocarray() 38 if ((newnelem >= MUL_NO_OVERFLOW || elsize >= MUL_NO_OVERFLOW) && in recallocarray() 39 newnelem > 0 && SIZE_MAX / newnelem < elsize) { in recallocarray() 43 newsize = newnelem * elsize; in recallocarray() 45 if ((oldnelem >= MUL_NO_OVERFLOW || elsize >= MUL_NO_OVERFLOW) && in recallocarray() 46 oldnelem > 0 && SIZE_MAX / oldnelem < elsize) { in recallocarray() 50 oldsize = oldnelem * elsize; in recallocarray()
|
H A D | reallocarray.c | 29 reallocarray(void *ptr, size_t nelem, size_t elsize) in reallocarray() argument 31 if ((nelem >= MUL_NO_OVERFLOW || elsize >= MUL_NO_OVERFLOW) && in reallocarray() 32 nelem > 0 && SIZE_MAX / nelem < elsize) { in reallocarray() 36 return (realloc(ptr, elsize * nelem)); in reallocarray()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_array.c | 59 const uint_t elsize, const xdrproc_t elproc) in xdr_array() argument 72 if ((c > maxsize || LASTUNSIGNED / elsize < c) && in xdr_array() 76 nodesize = c * elsize; in xdr_array() 103 target += elsize; in xdr_array()
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_array.c | 66 const uint_t elsize, const xdrproc_t elproc) in xdr_array() argument 78 if ((c > maxsize || LASTUNSIGNED / elsize < c) && in xdr_array() 81 nodesize = c * elsize; in xdr_array() 109 target += elsize; in xdr_array()
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | Sys_malloc.c | 116 size_t elsize, in _Calloc() argument 121 _Calloc (nelem, elsize, file, line) in _Calloc() 123 size_t elsize; 128 alloc_type ret = calloc(nelem, elsize);
|
/illumos-gate/usr/src/lib/libipmp/common/ |
H A D | ipmp_query.h | 80 #define IPMP_LIST_SIZE(listtype, elsize, nel) \ argument 81 ((sizeof (ipmp_ ## listtype ## _t) - (elsize)) + ((nel) * (elsize)))
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/ |
H A D | lber-int.h | 248 void *nslberi_calloc( size_t nelem, size_t elsize ); 278 #define NSLBERI_CALLOC( nelem, elsize ) nslberi_calloc( nelem, elsize ) argument
|
H A D | io.c | 1315 nslberi_calloc( size_t nelem, size_t elsize ) in nslberi_calloc() argument 1318 calloc( nelem, elsize ) : in nslberi_calloc() 1319 nslberi_memalloc_fns.lbermem_calloc( nelem, elsize )); in nslberi_calloc()
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | malloc.c | 123 calloc(size_t nelem, size_t elsize) in calloc() argument 125 size_t size = nelem * elsize; in calloc() 128 if (nelem > 0 && elsize > 0 && size/nelem != elsize) { in calloc()
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | util.c | 79 Xcalloc(size_t nelem, size_t elsize) in Xcalloc() argument 83 t = calloc(nelem, elsize); in Xcalloc()
|
/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | util.c | 47 xcalloc(sysdem_ops_t *ops, size_t n, size_t elsize) in xcalloc() argument 51 if (mul_overflow(n, elsize, &sz)) { in xcalloc()
|
/illumos-gate/usr/src/cmd/rpcgen/ |
H A D | rpc_cout.c | 455 arraysize(char *sz, declaration *dc, int elsize) in arraysize() argument 458 int elsz = elsize; in arraysize() 489 len = strlen(dc->array_max) + (elsize == 1 ? 0 : digits + 5) + 1; in arraysize() 497 if (elsize == 1) in arraysize() 502 plus, dc->array_max, elsize); in arraysize()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | open.c | 762 ldap_x_calloc( size_t nelem, size_t elsize ) in ldap_x_calloc() argument 765 calloc( nelem, elsize ) : in ldap_x_calloc() 766 nsldapi_memalloc_fns.ldapmem_calloc( nelem, elsize )); in ldap_x_calloc()
|
H A D | ldap-int.h | 608 #define NSLDAPI_CALLOC( nelem, elsize ) ldap_x_calloc( nelem, elsize ) argument
|
/illumos-gate/usr/src/cmd/lp/include/ |
H A D | lp.h | 526 #define Calloc(nelem, elsize) _Calloc(nelem, elsize, __FILE__, __LINE__) argument
|
/illumos-gate/usr/src/cmd/prtvtoc/ |
H A D | prtvtoc.c | 744 safe_calloc(const char *fname, size_t nelem, size_t elsize) in safe_calloc() argument 748 if ((r = calloc(nelem, elsize)) == NULL) { in safe_calloc() 749 memory_err(nelem * elsize, errno, fname); in safe_calloc()
|
/illumos-gate/usr/src/tools/ndrgen/ |
H A D | ndr_lex.c | 450 ndr_alloc(size_t nelem, size_t elsize) in ndr_alloc() argument 454 if ((p = calloc(nelem, elsize)) == NULL) { in ndr_alloc()
|
H A D | ndrgen.h | 201 extern void * ndr_alloc(size_t nelem, size_t elsize);
|
/illumos-gate/usr/src/common/smbsrv/ |
H A D | smb_xdr.c | 539 const size_t elsize, const xdrproc_t elproc) in smb_list_xdr() argument 565 list_create(list, elsize, offset); in smb_list_xdr() 567 node = MEM_MALLOC("xdr", elsize); in smb_list_xdr()
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/ |
H A D | clientinit.c | 196 ldapssl_calloc( int nelem, size_t elsize ) in ldapssl_calloc() argument 200 p = calloc( nelem, elsize ); in ldapssl_calloc()
|
/illumos-gate/usr/src/lib/libldap5/include/ldap/ |
H A D | solaris-int.h | 123 size_t elsize ); 445 void *ldap_x_calloc( size_t nelem, size_t elsize );
|
/illumos-gate/usr/src/cmd/ldap/common/ |
H A D | common.c | 81 static void *ldaptool_debug_calloc( size_t nelem, size_t elsize ); 2068 ldaptool_debug_calloc( size_t nelem, size_t elsize ) argument 2074 ldaptool_progname, nelem, elsize ); 2077 if (( p = ldaptool_debug_alloc( NULL, nelem * elsize )) != NULL ) { 2078 memset( p, 0, nelem * elsize );
|
/illumos-gate/usr/src/cmd/ptools/ptree/ |
H A D | ptree.c | 759 xreallocarray(void *ptr, size_t nelem, size_t elsize) in xreallocarray() argument 761 void *p = reallocarray(ptr, nelem, elsize); in xreallocarray()
|
/illumos-gate/usr/src/tools/find_elf/ |
H A D | find_elf.c | 856 xcalloc(size_t nelem, size_t elsize) in xcalloc() argument 858 void *p = calloc(nelem, elsize); in xcalloc()
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_retire.c | 81 s_calloc(size_t nelem, size_t elsize, int fail) in s_calloc() argument 87 return (calloc(nelem, elsize)); in s_calloc()
|