Home
last modified time | relevance | path

Searched refs:elsize (Results 1 – 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Drecallocarray.c30 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 Dreallocarray.c29 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 Dxdr_array.c59 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 Dxdr_array.c66 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 DSys_malloc.c116 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 Dipmp_query.h80 #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 Dlber-int.h248 void *nslberi_calloc( size_t nelem, size_t elsize );
278 #define NSLBERI_CALLOC( nelem, elsize ) nslberi_calloc( nelem, elsize ) argument
H A Dio.c1315 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 Dmalloc.c123 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 Dutil.c79 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 Dutil.c47 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 Drpc_cout.c455 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 Dopen.c762 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 Dldap-int.h608 #define NSLDAPI_CALLOC( nelem, elsize ) ldap_x_calloc( nelem, elsize ) argument
/illumos-gate/usr/src/cmd/lp/include/
H A Dlp.h526 #define Calloc(nelem, elsize) _Calloc(nelem, elsize, __FILE__, __LINE__) argument
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c744 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 Dndr_lex.c450 ndr_alloc(size_t nelem, size_t elsize) in ndr_alloc() argument
454 if ((p = calloc(nelem, elsize)) == NULL) { in ndr_alloc()
H A Dndrgen.h201 extern void * ndr_alloc(size_t nelem, size_t elsize);
/illumos-gate/usr/src/common/smbsrv/
H A Dsmb_xdr.c539 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 Dclientinit.c196 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 Dsolaris-int.h123 size_t elsize );
445 void *ldap_x_calloc( size_t nelem, size_t elsize );
/illumos-gate/usr/src/cmd/ldap/common/
H A Dcommon.c81 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 Dptree.c759 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 Dfind_elf.c856 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 Ddevinfo_retire.c81 s_calloc(size_t nelem, size_t elsize, int fail) in s_calloc() argument
87 return (calloc(nelem, elsize)); in s_calloc()

12