Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!mips!prls!philabs!ppgbms!paul From: paul@ppgbms (Paul Evan Matz) Newsgroups: comp.protocols.nfs Subject: Is there a convention for the use of xdr_destroy() and xdr_free()? Keywords: xdr_destroy xdr_free Message-ID: <21476@ppgbms.UUCP> Date: 22 Nov 89 15:16:05 GMT Distribution: na Organization: PPG Biomedical Sys., Pleasantville, NY. Lines: 21 I assume this is the right group to ask this question, since NFS is built using rpc and xdr (and if not the right group, please direct me to the proper one). I was wondering if there were any general conventions for the use of xdr_destroy() and xdr_free()? I imagine that it may be implementation dependant. I gather that xdr_free() frees any memory malloced during an XDR_DECODE operation (for strings, etc.), and that xdr_destroy() is the inverse of the xdrxxx_create() calls. What exactly is destroyed? Clearly not the "XDR xdrs;" auto variable. Perhaps just the data area pointed to by x_private? Thanks (wishful thinking) _____________________________________________________________ |Regards, One Campus Drive | |Paul Matz PPG Biomedical Systems | |914-741-4685 Pleasantville, NY. 10570| ------------------------------------------------------------- path ppgbms!moe!paul@philabs.philips.com