Here's the patch.
From 812006b9018c7dad6e5a8f1187d6c1d972b3a5aa Mon Sep 17 00:00:00 2001 From: Taisuke Yamada <[email protected]> Date: Fri, 27 May 2011 17:31:47 +0900 Subject: [PATCH] Clarified incompatibility and correct usage of XDR API.
--- man3/xdr.3 | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/man3/xdr.3 b/man3/xdr.3 index eb75acf..cc8eaa4 100644 --- a/man3/xdr.3 +++ b/man3/xdr.3 @@ -287,9 +287,11 @@ Note: the XDR stream's .I op field must be set by the caller. .IP -Warning: this XDR stream implements an intermediate record stream. -Therefore there are additional bytes in the stream -to provide record boundary information. +Warning: To read from XDR stream created by this API, you'll need to +call xdrrec_skiprecord(3) first before calling any other XDR APIs. +This is because this inserts additional bytes in the stream to provide +record boundary information. Also, XDR streams created with different +xdr*_create APIs are not compatible for the same reason. .LP .nf .BI "bool_t xdrrec_endofrecord(XDR *" xdrs ", int " sendnow ); -- 1.7.4.1

