Provides pointer chasing within structures.
#include <rpc/xdr.h>
xdr_reference (xdrs, pp, size, proc) XDR *xdrs; char **pp; u_int size; xdrproc_t proc;
The xdr_reference subroutine is a filter primitive that provides pointer chasing within structures. This primitive allows the serializing, deserializing, and freeing of any pointers within one structure that are referenced by another structure.
The xdr_reference subroutine does not attach special meaning to a null pointer during serialization. Attempting to pass the address of a null pointer can cause a memory error. The programmer must describe data with a two-armed discriminated union. One arm is used when the pointer is valid; the other arm, when the pointer is null.
Upon successful completion, this subroutine returns a value of 1. If unsuccessful, it returns a value of 0.
This subroutine is part of Base Operating System (BOS) Runtime.
List of XDR Programming References.
eXternal Data Representation (XDR) Overview for Programming and Understanding XDR Library Filter Primitives in AIX Version 4.3 Communications Programming Concepts.