/freebsd/sys/rpc/ |
H A D | types.h | 65 #define mem_alloc(bsize) malloc(bsize, M_RPC, M_WAITOK|M_ZERO) macro 68 #define mem_alloc(bsize) calloc(1, bsize) macro
|
H A D | auth_unix.c | 180 auth = mem_alloc(sizeof(*auth)); in authunix_create() 181 au = mem_alloc(sizeof(*au)); in authunix_create() 203 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create()
|
H A D | rpc_callmsg.c | 124 mem_alloc(oa->oa_length); in xdr_callmsg() 160 mem_alloc(oa->oa_length); in xdr_callmsg()
|
/freebsd/crypto/krb5/src/lib/rpc/ |
H A D | auth_unix.c | 115 auth = (AUTH *)mem_alloc(sizeof(*auth)); in authunix_create() 122 au = (struct audata *)mem_alloc(sizeof(*au)); in authunix_create() 154 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create() 156 if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) { in authunix_create()
|
H A D | svc.c | 108 mem_alloc(FD_SETSIZE * sizeof(SVCXPRT *)); in xprt_register() 176 s = (struct svc_callout *)mem_alloc(sizeof(struct svc_callout)); in svc_register() 458 rawcred = mem_alloc(MAX_AUTH_BYTES); in svc_do_xprt() 459 rawverf = mem_alloc(MAX_AUTH_BYTES); in svc_do_xprt() 460 cookedcred = mem_alloc(RQCRED_SIZE); in svc_do_xprt()
|
H A D | svc_udp.c | 150 xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); in svcudp_bufcreate() 155 su = (struct svcudp_data *)mem_alloc(sizeof(*su)); in svcudp_bufcreate() 161 if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL) { in svcudp_bufcreate() 349 (type *) mem_alloc((unsigned) (sizeof(type) * (size))) 480 newbuf = mem_alloc(su->su_iosz); in cache_set()
|
H A D | svc_tcp.c | 184 r = (struct tcp_rendezvous *)mem_alloc(sizeof(*r)); in svctcp_create() 191 xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); in svctcp_create() 244 xprt = (SVCXPRT *)mem_alloc(sizeof(SVCXPRT)); in makefd_xprt() 249 cd = (struct tcp_conn *)mem_alloc(sizeof(struct tcp_conn)); in makefd_xprt()
|
H A D | rpc_callmsg.c | 125 mem_alloc(oa->oa_length); in xdr_callmsg() 161 mem_alloc(oa->oa_length); in xdr_callmsg()
|
H A D | xdr_reference.c | 76 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
|
H A D | xdr_array.c | 96 *addrp = target = mem_alloc(nodesize); in xdr_array()
|
/freebsd/lib/libc/rpc/ |
H A D | auth_unix.c | 102 auth = mem_alloc(sizeof(*auth)); in authunix_create() 109 au = mem_alloc(sizeof(*au)); in authunix_create() 142 au->au_origcred.oa_base = mem_alloc((u_int) len); in authunix_create() 144 if ((au->au_origcred.oa_base = mem_alloc((u_int) len)) == NULL) { in authunix_create()
|
H A D | svc_dg.c | 127 su = mem_alloc(sizeof (*su)); in svc_dg_create() 131 if ((rpc_buffer(xprt) = mem_alloc(su->su_iosz)) == NULL) in svc_dg_create() 147 xprt->xp_ltaddr.buf = mem_alloc(sizeof (struct sockaddr_storage)); in svc_dg_create() 158 su->su_srcaddr.buf = mem_alloc(sizeof (ss)); in svc_dg_create() 267 xprt->xp_rtaddr.buf = mem_alloc(alen); in svc_dg_recv() 453 (type *) mem_alloc((sizeof (type) * (size))) 609 newbuf = mem_alloc(su->su_iosz); in cache_set()
|
H A D | svc_vc.c | 131 r = mem_alloc(sizeof(*r)); in svc_vc_create() 157 xprt->xp_ltaddr.buf = mem_alloc((size_t)sslocal.ss_len); in svc_vc_create() 198 ret->xp_ltaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create() 211 ret->xp_rtaddr.buf = mem_alloc((size_t)ss.ss_len); in svc_fd_create() 248 cd = mem_alloc(sizeof(struct cf_conn)); in makefd_xprt() 309 newxprt->xp_rtaddr.buf = mem_alloc(len); in rendezvous_request() 350 newxprt->xp_ltaddr.buf = mem_alloc((size_t)sslocal.ss_len); in rendezvous_request()
|
H A D | svc.c | 106 mem_alloc((FD_SETSIZE + 1) * sizeof(SVCXPRT *)); in xprt_register() 204 s = mem_alloc(sizeof (struct svc_callout)); in svc_reg() 284 s = mem_alloc(sizeof(struct svc_callout)); in svc_register() 534 xprt = mem_alloc(sizeof(SVCXPRT)); in svc_xprt_alloc() 538 ext = mem_alloc(sizeof(SVCXPRT_EXT)); in svc_xprt_alloc()
|
H A D | rpc_callmsg.c | 128 mem_alloc(oa->oa_length); in xdr_callmsg() 164 mem_alloc(oa->oa_length); in xdr_callmsg()
|
/freebsd/sys/kgssapi/ |
H A D | gssd_prot.c | 102 oid = mem_alloc(sizeof(gss_OID_desc)); in xdr_gss_OID() 167 set = mem_alloc(sizeof(gss_OID_set_desc)); in xdr_gss_OID_set() 222 ch = mem_alloc(sizeof(*ch)); in xdr_gss_channel_bindings_t()
|
H A D | gss_ip_to_dns.c | 58 args.ip_addr.ip_addr_val = mem_alloc(args.ip_addr.ip_addr_len); in gss_ip_to_dns()
|
/freebsd/krb5/include/gssrpc/ |
H A D | types.h | 116 #define mem_alloc(bsize) malloc(bsize) macro
|
/freebsd/lib/libc/xdr/ |
H A D | xdr_reference.c | 80 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
|
H A D | xdr_array.c | 98 *addrp = target = mem_alloc(nodesize); in xdr_array()
|
/freebsd/sys/xdr/ |
H A D | xdr_reference.c | 73 *pp = loc = (caddr_t) mem_alloc(size); in xdr_reference()
|
H A D | xdr_array.c | 91 *addrp = target = mem_alloc(nodesize); in xdr_array()
|
/freebsd/usr.sbin/gssd/ |
H A D | gssd.c | 709 mem_alloc(result->lucid.ctx_key.length); in gssd_init_sec_context_lucid_v1_1_svc() 721 mem_alloc(result->lucid.ctx_key.length); in gssd_init_sec_context_lucid_v1_1_svc() 731 mem_alloc( in gssd_init_sec_context_lucid_v1_1_svc() 882 mem_alloc(result->lucid.ctx_key.length); in gssd_accept_sec_context_lucid_v1_1_svc() 894 mem_alloc(result->lucid.ctx_key.length); in gssd_accept_sec_context_lucid_v1_1_svc() 904 mem_alloc( in gssd_accept_sec_context_lucid_v1_1_svc() 945 mem_alloc(len * sizeof(uint32_t)); in gssd_accept_sec_context_lucid_v1_1_svc() 1040 retcp = mem_alloc(NI_MAXHOST); in gssd_conv_ip_to_dns() 1180 mem_alloc(len * sizeof(int)); in gssd_pname_to_uid_1_svc()
|
/freebsd/lib/librpcsec_gss/ |
H A D | svc_rpcsec_gss.c | 171 scb = mem_alloc(sizeof(struct svc_rpc_gss_callback)); in rpc_gss_set_callback() 258 buf.value = mem_alloc(namelen); in rpc_gss_get_principal_name() 303 result = mem_alloc(sizeof(int) + buf.length); in rpc_gss_get_principal_name() 411 client = mem_alloc(sizeof(struct svc_rpc_gss_client)); in svc_rpc_gss_create_client() 532 if ((bp = (char *) mem_alloc(string_length))) { in gss_oid_to_str() 710 mem_alloc(sizeof(*client->cl_rawcred.client_principal) in svc_rpc_gss_accept_sec_context()
|
/freebsd/sys/rpc/rpcsec_gss/ |
H A D | svc_rpcsec_gss.c | 226 KGSS_VNET(svc_rpc_gss_client_hash) = mem_alloc( in svc_rpc_gss_vnetinit() 252 scb = mem_alloc(sizeof(struct svc_rpc_gss_callback)); in rpc_gss_set_callback() 329 sname = mem_alloc(sizeof(*sname)); in rpc_gss_set_svc_name() 400 buf.value = mem_alloc(namelen); in rpc_gss_get_principal_name() 445 result = mem_alloc(sizeof(int) + buf.length); in rpc_gss_get_principal_name() 638 client = mem_alloc(sizeof(struct svc_rpc_gss_client)); in svc_rpc_gss_create_client() 1120 mem_alloc(sizeof(*client->cl_rawcred.client_principal) in svc_rpc_gss_accept_sec_context()
|