D | xdr.c | 10 bool_t xdr_bytes (XDR *xdr, char **cpp, u_int *sizep, u_int maxsize) in xdr_bytes() argument 18 if(*cpp == NULL) in xdr_bytes() 19 *cpp = (char *) mem_alloc(*sizep); in xdr_bytes() 20 if(*cpp == NULL) return FALSE; in xdr_bytes() 21 return XDR_RECV_BYTES(xdr, (uint8 *) *cpp, *sizep); in xdr_bytes() 25 XDR_SEND_BYTES(xdr, (uint8 *) *cpp, *sizep)); in xdr_bytes() 27 if (*cpp) { in xdr_bytes() 28 mem_free(*cpp); in xdr_bytes() 29 *cpp = NULL; in xdr_bytes() 481 bool_t xdr_string (XDR *xdr, char **cpp, u_int maxsize) in xdr_string() argument [all …]
|