From: Stéphane Aulery <saulery@xxxxxxx> Debian Bug #628099 Report and patch of Taisuke Yamada <tai@xxxxxxxxxxxx> Signed-off-by: Stéphane Aulery <saulery@xxxxxxx> --- man3/xdr.3 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/man3/xdr.3 b/man3/xdr.3 index 8f931db..f4bb3e9 100644 --- a/man3/xdr.3 +++ b/man3/xdr.3 @@ -291,9 +291,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 ); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html