Searched refs:elsize (Results 1 - 25 of 28) sorted by relevance

12

/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/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/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/cmd/msgfmt/
H A Dutil.c81 Xcalloc(size_t nelem, size_t elsize) argument
85 t = calloc(nelem, elsize);
/illumos-gate/usr/src/lib/libipmp/common/
H A Dipmp_query.h78 #define IPMP_LIST_SIZE(listtype, elsize, nel) \
79 ((sizeof (ipmp_ ## listtype ## _t) - (elsize)) + ((nel) * (elsize)))
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ber/
H A Dlber-int.h252 void *nslberi_calloc( size_t nelem, size_t elsize );
282 #define NSLBERI_CALLOC( nelem, elsize ) nslberi_calloc( nelem, elsize )
H A Dio.c1315 nslberi_calloc( size_t nelem, size_t elsize )
1318 calloc( nelem, elsize ) :
1319 nslberi_memalloc_fns.lbermem_calloc( nelem, elsize ));
/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 Dndrgen.h196 extern void * ndr_alloc(size_t nelem, size_t elsize);
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/
H A Dopen.c762 ldap_x_calloc( size_t nelem, size_t elsize )
765 calloc( nelem, elsize ) :
766 nsldapi_memalloc_fns.ldapmem_calloc( nelem, elsize ));
H A Dldap-int.h610 #define NSLDAPI_CALLOC( nelem, elsize ) ldap_x_calloc( nelem, elsize )
/illumos-gate/usr/src/cmd/lp/include/
H A Dlp.h524 #define Calloc(nelem,elsize) _Calloc(nelem, elsize, __FILE__, __LINE__)
/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/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/libldap5/include/ldap/
H A Dsolaris-int.h125 size_t elsize );
447 void *ldap_x_calloc( size_t nelem, size_t elsize );
/illumos-gate/usr/src/lib/libldap5/sources/ldap/ssldap/
H A Dclientinit.c196 ldapssl_calloc( int nelem, size_t elsize )
200 p = calloc( nelem, elsize );
/illumos-gate/usr/src/cmd/ldap/common/
H A Dcommon.c80 static void *ldaptool_debug_calloc( size_t nelem, size_t elsize );
2067 ldaptool_debug_calloc( size_t nelem, size_t elsize )
2073 ldaptool_progname, nelem, elsize );
2076 if (( p = ldaptool_debug_alloc( NULL, nelem * elsize )) != NULL ) {
2077 memset( p, 0, 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/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/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/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/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/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/truss/
H A Dmain.c2634 my_calloc(size_t nelem, size_t elsize, const char *msg) argument
2638 if ((buf = calloc(nelem, elsize)) == NULL) {

Completed in 141 milliseconds

12