Home
last modified time | relevance | path

Searched refs:mem_alloc (Results 1 – 15 of 15) sorted by relevance

/dflybsd-src/lib/libc/rpc/
H A Dsvc_dg.c120 xprt = mem_alloc(sizeof (SVCXPRT)); in svc_dg_create()
125 su = mem_alloc(sizeof (*su)); in svc_dg_create()
129 if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL) in svc_dg_create()
143 xprt->xp_ltaddr.buf = mem_alloc(sizeof (struct sockaddr_storage)); in svc_dg_create()
189 xprt->xp_rtaddr.buf = mem_alloc(alen); in svc_dg_recv()
319 (type *) mem_alloc((sizeof (type) * (size)))
475 newbuf = mem_alloc(su->su_iosz); in cache_set()
H A Dsvc_vc.c133 r = mem_alloc(sizeof(*r)); in svc_vc_create()
141 xprt = mem_alloc(sizeof(SVCXPRT)); in svc_vc_create()
162 xprt->xp_ltaddr.buf = mem_alloc((size_t)sslocal.ss_len); in svc_vc_create()
203 ret->xp_ltaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create()
216 ret->xp_rtaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create()
248 xprt = mem_alloc(sizeof(SVCXPRT)); in makefd_xprt()
254 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt()
315 newxprt->xp_rtaddr.buf = mem_alloc(len); in rendezvous_request()
H A Dauth_unix.c103 auth = mem_alloc(sizeof(*auth)); in authunix_create()
110 au = mem_alloc(sizeof(*au)); in authunix_create()
143 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create()
145 if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) { in authunix_create()
H A Dsvc_auth_des.c329 entry->rname = (char *)mem_alloc((u_int)strlen(cred->adc_fullname.name) in _svcauth_des()
361 mem_alloc(sizeof(struct cache_entry) * AUTHDES_CACHESZ); in cache_init()
365 authdes_lru = (short *)mem_alloc(sizeof(short) * AUTHDES_CACHESZ); in cache_init()
476 cred = (struct bsdcred *)mem_alloc(sizeof(struct bsdcred)); in authdes_getucred()
H A Dauth_des.c62 #define ALLOC(object_type) (object_type *) mem_alloc(sizeof(object_type))
181 ad->ad_fullname = (char *)mem_alloc(ad->ad_fullnamelen + 1); in authdes_pk_seccreate()
183 ad->ad_servername = (char *)mem_alloc(ad->ad_servernamelen + 1); in authdes_pk_seccreate()
190 ad->ad_timehost = (char *)mem_alloc(strlen(timehost) + 1); in authdes_pk_seccreate()
H A Drpc_callmsg.c129 mem_alloc(oa->oa_length); in xdr_callmsg()
165 mem_alloc(oa->oa_length); in xdr_callmsg()
H A Dclnt_dg.c165 dg_fd_locks = (int *) mem_alloc(fd_allocsz); in clnt_dg_create()
174 dg_cv = (cond_t *) mem_alloc(cv_allocsz); in clnt_dg_create()
213 if ((cl = mem_alloc(sizeof (CLIENT))) == NULL) in clnt_dg_create()
220 cu = mem_alloc(sizeof (*cu) + sendsz + recvsz); in clnt_dg_create()
H A Dsvc.c108 mem_alloc(FD_SETSIZE * sizeof(SVCXPRT *)); in xprt_register()
203 s = mem_alloc(sizeof (struct svc_callout)); in svc_reg()
283 s = mem_alloc(sizeof(struct svc_callout)); in svc_register()
H A Dclnt_vc.c173 cl = (CLIENT *)mem_alloc(sizeof (*cl)); in clnt_vc_create()
174 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnt_vc_create()
190 vc_fd_locks = (int *) mem_alloc(fd_allocsz); in clnt_vc_create()
200 vc_cv = (cond_t *) mem_alloc(cv_allocsz); in clnt_vc_create()
H A Dsvc_auth.c185 asp = mem_alloc(sizeof (*asp)); in svc_auth_reg()
/dflybsd-src/include/rpc/
H A Dtypes.h63 #define mem_alloc(bsize) calloc(1, bsize) macro
/dflybsd-src/lib/libc/xdr/
H A Dxdr_reference.c82 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
H A Dxdr_array.c99 *addrp = target = mem_alloc(nodesize); in xdr_array()
H A Dxdr_rec.c169 RECSTREAM *rstrm = mem_alloc(sizeof(RECSTREAM)); in xdrrec_create()
180 rstrm->out_base = mem_alloc(rstrm->sendsize); in xdrrec_create()
187 rstrm->in_base = mem_alloc(recvsize); in xdrrec_create()
H A Dxdr.c587 *cpp = sp = mem_alloc(nodesize); in xdr_bytes()
729 *cpp = sp = mem_alloc(nodesize); in xdr_string()