rpc_sm_set_client_alloc_free(3rpc) — Subroutines
NAME
rpc_sm_set_client_alloc_free — Sets the memory allocation and freeing mechanisms used by the client stubs
Synopsis
void rpc_sm_set_client_alloc_free(
idl_void_p_t (∗p_allocate) (
unsigned long size),
void (∗p_free) (
idl_void_p_t ptr),
unsigned32 ∗status);
Parameters
Input
p_allocateSpecifies a memory allocator routine.
p_freeSpecifies a memory free routine. This routine is used to free memory allocated with the routine specified by p_allocate.
Output
statusReturns the status code from this routine. This status code indicates whether the routine completed successfully or, if not, why not.
Description
The rpc_sm_set_client_alloc_free() routine overrides the default routines that the client stub uses to manage memory.
Note:
The default memory management routines are ISO malloc() and ISO free() except when the remote call occurs within manager code in which case the default memory management routines are rpc_sm_allocate() and rpc_sm_free().
Return Values
None.
Errors
The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages.
rpc_s_ok
Success.
Related Information
Functions: rpc_sm_allocate(3rpc), rpc_sm_free(3rpc).