xdrのヘルプ・マニュアル
日本語 英語
xdr --help
man xdr
XDR(3) Linux Programmer’s Manual XDR(3)
名前
xdr - 外部データ表現(XDR)のためのライブラリ・ルーティン
書式と説明
これらのルーティンは C プログラマーがマシン非依存な形式で任意のデータ構
造体を記述することを可能にする。リモート・プロシジャ・コールのための デ
ータはこれらのルーティンを使用して送信される。
以下に示すプロトタイプ宣言は で行われており、その中では次の
型が使用される。
typedef int bool_t;
typedef bool_t (*xdrproc_t) (XDR *, void *,...);
XDR 型の宣言については、 を参照。
bool_t xdr_array(XDR *xdrs, char **arrp, unsigned int *sizep,
unsigned int maxsize, unsigned int elsize,
xdrproc_t elproc);
可変長の配列とそれに対応する外部表現とを変換する基本フィルター。
引 き数 arrp は配列へのポインターのアドレスであり、 sizep は配列
の要素数のアドレスである。これらの要素数は maxsize を超えては な
らない。引き数 elsize は各配列の要素の sizeof であり、 elproc は
配列要素を C 形式からその外部表現に変換するための XDR フィルター
で ある。このルーティンは成功した場合には 1 を返す。失敗した場合
にはゼロを返す。
bool_t xdr_bool(XDR *xdrs, bool_t *bp);
真偽値(C の int)とその外部表現とを変換する基本フィルター。データ
をエンコードする時、このフィルターは 1 また 0 の値を生成する。こ
のルーティンは成功した場合には 1 を返す。失敗した場合には 0 を返
す。
bool_t xdr_bytes(XDR *xdrs, char **sp, unsigned int *sizep,
unsigned int maxsize);
ある長さのバイト文字列とその外部表現とを変換する基本フィルター。
引き数 sp は文字列ポインターのアドレスである。文字列 の 長 さ は
sizep のアドレスに置く。文字列は maxsize より長くてはいけない。
このルーティンは成功した場合には 1 を返す。失敗した場合には 0 を
返す。
bool_t xdr_char(XDR *xdrs, char *cp);
C の文字(char)とその外部表現との間を変換する基本フィルター。この
ルーティンは成功した場合には 1 を返す。失敗した場合には 0 を返す
。 注 意: エンコードされたデータは詰め込まれておらず、それぞれ 4
バイトを占める。文字の配列の場合には xdr_bytes(), xdr_opaque(),
xdr_string() などを考慮した方が良い。
void xdr_destroy(XDR *xdrs);
こ のマクロは XDR ストリーム xdrs に関連付けられた破壊ルーティン
を呼び出す。破壊には通常、ストリームに関連付けられた私的データ構
造 体 の解放が含まれている。 xdr_destroy() の呼び出しの後に xdrs
を使用することは未定義である。
bool_t xdr_double(XDR *xdrs, double *dp);
C の 倍精度数 (double) とその外部表現との変換を行なう基本フィ ル
タ ー。このルーティンは成功した場合は 1 を返す。失敗した場合は 0
を返す。
bool_t xdr_enum(XDR *xdrs, enum_t *ep);
C の enum (実際には int)とその外部表現との変換を行なう基本フィル
タ ー。このルーティンは成功した場合は 1 を返す。失敗した場合は 0
を返す。
bool_t xdr_float(XDR *xdrs, float *fp);
C の 浮動小数点数 (float) とその外部表現との変換を行なう基本フィ
ル ター。このルーティンは成功した場合は 1 を返す。失敗した場合は
0 を返す。
void xdr_free(xdrproc_t proc, char *objp);
汎用解放(free)ルーティン。最初の引き数はオブジェクトを解放するた
め の XDR ルーティンである。二番目の引き数はそのオブジェクト自身
へのポインターである。注意: このルーティンに渡されるポインターは
解 放されないが、このポインターの指すデータは(再帰的に) 解放され
る。
unsigned int xdr_getpos(XDR *xdrs);
このマクロは XDR ストリーム xdrs に関連付けられた位置取得ルー テ
ィ ンを呼び出す。このルーティンは XDR バイト・ストリームの位置を
指示する符号無し整数を返す。 XDR ストリームの機能としてこの数 値
で単純な算術作業ができることが期待されてるいる。しかしながら XDR
ストリームの実体はこれを保証する必要はない。
long *xdr_inline(XDR *xdrs, int len);
このマクロは XDR ストリーム xdrs に関連付けられた内部(inline) ル
ーティンを呼び出す。ルーティンはストリームのバッファーの連続する
断片へのポインターを返す。 len は要求するバッファーのバイト長 で
ある。注意: ポインターは long * にキャストされる。
警 告: xdr_inline() はバッファーの連続する断片を割り当てることが
できなかった場合には NULL (0)を返すかもしれない。どの場合もそ の
動作はストリームの実体によって変化するかもしれない。これは効率化
のために存在している。
bool_t xdr_int(XDR *xdrs, int *ip);
C の整数(int)とその外部表現とを変換するための基本フィルター。 こ
の ルーティンは成功した場合は 1 を返す。失敗した場合はゼロを返す
。
bool_t xdr_long(XDR *xdrs, long *lp);
C の long 整数とそのその外部表現とを変換するための基本フィルター
。 このルーティンは成功した場合は 1 を返す。失敗した場合はゼロを
返す。
void xdrmem_create(XDR *xdrs, char *addr, unsigned int size,
enum xdr_op op);
このルーティンは xdrs によって指されている XDR ストリーム・オ ブ
ジェクトを初期化する。ストリームのデータは addr 位置にあるメモリ
ーの塊から読み書きされる。その長さはバイト単位で size 超えてはい
け な い。 op は XDR ストリームの変換方向を決定する (XDR_ENCODE,
XDR_DECODE, XDR_FREE のどれか)。
bool_t xdr_opaque(XDR *xdrs, char *cp, unsigned int cnt);
固定長の不明データとその外部表現との変換を行なう基本フィルター。
引 き数 cp は不明オブジェクトのアドレスであり cnt はそのバイト単
位の大きさである。このルーティンは成功した場合は 1 を返す。失 敗
した場合はゼロを返す。
bool_t xdr_pointer(XDR *xdrs, char **objpp,
unsigned int objsize, xdrproc_t xdrobj);
xdr_reference() と同様であるが、これが NULL ポインターを番号化す
るのに対して xdr_reference() はそうしない点が異なっている。こ れ
に より、 xdr_pointer() は二分木や連結リストのような再帰的なデー
タ構造体を表現できる。
void xdrrec_create(XDR *xdrs, unsigned int sendsize,
unsigned int recvsize, char *handle,
int (*readit) (char *, char *, int),
int (*writeit) (char *, char *, int));
このルーティンは xdrs で指された XDR ストリーム・オブジェクト を
初期化する。ストリームのデータは大きさ sendsize のバッファへ書き
込まれる。 sendsize をゼロにすると、システムに適切なデフォルトを
使用するように指示する。ストリームのデータは大きさ recvsize のバ
ッファから読み込まれる。これもゼロを渡すことで適切なデフォルトに
設 定 す る ことができる。ストリームの出力バッファが一杯の場合は
writeit が呼び出される。同様にストリーム入力バッファが空の場合に
は readit が呼び出される。これらの二つのルーティンの動作はシステ
ムコールの read(2) や write(2) と似ているが、前者のルーティン は
最 初の引き数として handle が渡される点で異なっている。注意: XDR
ストリームの op は呼び出し側で設定しなければならない。
警告: この XDR ストリームは中間レコード・ストリームを実装して い
る。レコード境界の情報を提供するためにストリームには余分なバイト
が存在する。
bool_t xdrrec_endofrecord(XDR *xdrs, int sendnow);
このルーティンは xdrrec_create() によって作成されたストリーム に
対してのみ呼び出すことができる。出力バッファのデータは完全なレコ
ードとして印され、 sendnow がゼロでない場合には出力バッファは 書
き 出される。このルーティンは成功した場合は 1 を返す。失敗した場
合はゼロを返す。
bool_t xdrrec_eof(XDR *xdrs);
このルーティンは xdrrec_create() によって作成されたストリーム に
対してのみ呼び出すことができる。ストリームの現在のレコードの残り
を消費した後に、ストリームに入力が残っていない場合には 1 を返 す
。それ以外の場合はゼロを返す。
bool_t xdrrec_skiprecord(XDR *xdrs);
こ のルーティンは xdrrec_create() によって作成されたストリームに
対してのみ呼び出すことができる。 XDR の実装にそのストリームの 入
力バッファーの現在のレコードの残りを捨てるように伝える。このルー
ティンは成功した場合は 1 を返す。失敗した場合はゼロを返す。
bool_t xdr_reference(XDR *xdrs, char **pp, unsigned int size,
xdrproc_t proc);
構造体へのポインター追跡を提供する基本ルーティン。引き数 pp はポ
イ ン タ ー の アドレスである。 size は *pp が指している構造体の
sizeof である。 proc はその構造体の C 形式と外部表現との変換を行
なう XDR プロシジャである。このルーティンは成功した場合 1 を返す
。失敗した場合はゼロを返す。
警告: このルーティンは NULL ポインターを理解することができない。
かわりに xdr_pointer() を使用すること。
xdr_setpos(XDR *xdrs, unsigned int pos);
こ のマクロは XDR ストリーム xdrs に関連付けられた位置設定ルーテ
ィンを呼び出す。引き数 pos は xdr_getpos() によって取得される 位
置 数値である。このルーティンは XDR ストリームの位置の変更ができ
た場合には 1 を返す。それ以外の場合は 0 を返す。
警告: ある種の XDR ストリームの場合は位置の変更を行なうことが 困
難である。それでこのルーティンはある種のストリームの場合には成功
し、別の種類の場合には失敗するかもしれない。
bool_t xdr_short(XDR *xdrs, short *sp);
C の short 整数とその外部表現との変換を行なう基本フィルター。 こ
のルーティンは成功すると 1 を返す。失敗した場合はゼロを返す。
void xdrstdio_create(XDR *xdrs, FILE *file, enum xdr_op op);
こ のルーティンは xdrs で指された XDR ストリーム・オブジェクトを
初期化する。 XDR ストリームに読み書きれたデータは stdio ストリー
ム file が使用される。 op 引き数は XDR ストリームの変換方向を決
定する (XDR_ENCODE, XDR_DECODE, XDR_FREE のどれか)。
警告: このような XDR ストリームに関連付けられた破壊ルーティン は
file ストリームに対して fflush(3) を呼び出すが fclose(3) を呼び
出すことはない。
bool_t xdr_string(XDR *xdrs, char **sp, unsigned int maxsize);
C の文字列とそれに対応する外部表現とを変換するための基本フィルタ
ー。文字列は maxsize より長くはできない。注意: sp は文字列へのポ
インターのアドレスである。このルーティンは成功した場合は 1 を 返
す。失敗した場合はゼロを返す。
bool_t xdr_u_char(XDR *xdrs, unsigned char *ucp);
C の 符号無し文字 (unsigned char) とその外部表現とを変換する基本
フィルター。このルーティンは成功した場合は 1 を返す。失敗した 場
合はゼロを返す。
bool_t xdr_u_int(XDR *xdrs, unsigned *up);
C の 符号無し整数 (unsigned) とその外部表現を変換するための基本
フィルター。このルーティンは成功した場合は 1 を返す。失敗した 場
合はゼロを返す。
bool_t xdr_u_long(XDR *xdrs, unsigned long *ulp);
C の unsigned long 整数とその外部表現を変換するための基本フィル
ター。このルーティンは成功した場合は 1 を返す。失敗した場合は ゼ
ロを返す。
bool_t xdr_u_short(XDR *xdrs, unsigned short *usp);
C の unsigned short 整数とその外部表現を変換するための基本フィル
ター。このルーティンは成功した場合は 1 を返す。失敗した場合は ゼ
ロを返す。
bool_t xdr_union(XDR *xdrs, int *dscmp, char *unp,
struct xdr_discrim *choices,
xdrproc_t defaultarm); /* may equal NULL */
分 別可能な C の 共用体 (union) とその外部形式とを変換する基本フ
ィルター。最初に dscmp として与えられた共用体の分別要素が変換 さ
れ る。この分別要素は常に enum_t である。次に unp の位置の共用体
が変換される。引き数 choices は xdr_discrim() 構造体の配列へのポ
インターである。各構造体は [value,proc] の順序付きペアを格納して
いる。もし共用体の分別要素が関連付けられた value と等しい場合 に
は 、 共用体を変換するために proc が呼び出される。 xdr_discrim()
構造体の配列の最後は、ルーティンとして NULL を指定することで示さ
れ る 。 分 別 要 素 が choices 配列の中に見つからなかった場合、
defaultarm が (NULL でなければ) 呼び出される。成功した場合 は 1
を返す。失敗した場合はゼロを返す。
bool_t xdr_vector(XDR *xdrs, char *arrp, unsigned int size,
unsigned int elsize, xdrproc_t elproc);
固定長の配列とそれらが対応する外部表現とを変換する基本フィルター
。引き数 arrp は配列へのポインターのアドレスである。一方で size
は 配 列 の 要素数そのものである。引き数 elsize は配列の各要素の
sizeof で、 elproc は配列の要素を C 形式からその外部表現へと変換
する XDR フィルターである。このルーティンは成功した場合 1 を返す
。失敗した場合はゼロを返す。
bool_t xdr_void(void);
このルーティンは常に 1 を返す。これは何も行なわないが、関数引 き
数が必要な RPC ルーティンに渡すことができる。
bool_t xdr_wrapstring(XDR *xdrs, char **sp);
xdr_string(xdrs, sp, MAXUN.UNSIGNED ); を呼び出す基本ルーティン
。ここで MAXUN.UNSIGNED は符号無し整数(unsigned int)の最大値であ
る。 xdr_wrapstring() は、 RPC パッケージは二つの XDR ルーティン
の最大値を引き数として渡すため便利である。 xdr_string() は最も頻
繁に利用される基本ルーティンであるが三つを要求する。成功した場合
は 1 を返す、失敗した場合はゼロを返す。
関連項目
rpc(3)
以下のマニュアル:
eXternal Data Representation Standard: Protocol Specification
eXternal Data Representation: Sun Technical Notes
XDR: External Data Representation Standard, RFC 1014, Sun
Microsystems, Inc., USC-ISI.
2007-12-30 XDR(3)
XDR(3) Linux Programmer’s Manual XDR(3)
NAME
xdr - library routines for external data representation
SYNOPSIS AND DESCRIPTION
These routines allow C programmers to describe arbitrary data struc-
tures in a machine-independent fashion. Data for remote procedure
calls are transmitted using these routines.
The prototypes below are declared in and make use of the
following types:
typedef int bool_t;
typedef bool_t (*xdrproc_t) (XDR *, void *,...);
For the declaration of the XDR type, see .
bool_t xdr_array(XDR *xdrs, char **arrp, unsigned int *sizep,
unsigned int maxsize, unsigned int elsize,
xdrproc_t elproc);
A filter primitive that translates between variable-length
arrays and their corresponding external representations. The
argument arrp is the address of the pointer to the array, while
sizep is the address of the element count of the array; this
element count cannot exceed maxsize. The argument elsize is the
sizeof each of the array’s elements, and elproc is an XDR filter
that translates between the array elements’ C form, and their
external representation. This routine returns one if it suc-
ceeds, zero otherwise.
bool_t xdr_bool(XDR *xdrs, bool_t *bp);
A filter primitive that translates between booleans (C integers)
and their external representations. When encoding data, this
filter produces values of either one or zero. This routine
returns one if it succeeds, zero otherwise.
bool_t xdr_bytes(XDR *xdrs, char **sp, unsigned int *sizep,
unsigned int maxsize);
A filter primitive that translates between counted byte strings
and their external representations. The argument sp is the
address of the string pointer. The length of the string is
located at address sizep; strings cannot be longer than maxsize.
This routine returns one if it succeeds, zero otherwise.
bool_t xdr_char(XDR *xdrs, char *cp);
A filter primitive that translates between C characters and
their external representations. This routine returns one if it
succeeds, zero otherwise. Note: encoded characters are not
packed, and occupy 4 bytes each. For arrays of characters, it
is worthwhile to consider xdr_bytes(), xdr_opaque() or
xdr_string().
void xdr_destroy(XDR *xdrs);
A macro that invokes the destroy routine associated with the XDR
stream, xdrs. Destruction usually involves freeing private data
structures associated with the stream. Using xdrs after invok-
ing xdr_destroy() is undefined.
bool_t xdr_double(XDR *xdrs, double *dp);
A filter primitive that translates between C double precision
numbers and their external representations. This routine
returns one if it succeeds, zero otherwise.
bool_t xdr_enum(XDR *xdrs, enum_t *ep);
A filter primitive that translates between C enums (actually
integers) and their external representations. This routine
returns one if it succeeds, zero otherwise.
bool_t xdr_float(XDR *xdrs, float *fp);
A filter primitive that translates between C floats and their
external representations. This routine returns one if it suc-
ceeds, zero otherwise.
void xdr_free(xdrproc_t proc, char *objp);
Generic freeing routine. The first argument is the XDR routine
for the object being freed. The second argument is a pointer to
the object itself. Note: the pointer passed to this routine is
not freed, but what it points to is freed (recursively).
unsigned int xdr_getpos(XDR *xdrs);
A macro that invokes the get-position routine associated with
the XDR stream, xdrs. The routine returns an unsigned integer,
which indicates the position of the XDR byte stream. A desir-
able feature of XDR streams is that simple arithmetic works with
this number, although the XDR stream instances need not guaran-
tee this.
long *xdr_inline(XDR *xdrs, int len);
A macro that invokes the inline routine associated with the XDR
stream, xdrs. The routine returns a pointer to a contiguous
piece of the stream’s buffer; len is the byte length of the
desired buffer. Note: pointer is cast to long *.
Warning: xdr_inline() may return NULL (0) if it cannot allocate
a contiguous piece of a buffer. Therefore the behavior may vary
among stream instances; it exists for the sake of efficiency.
bool_t xdr_int(XDR *xdrs, int *ip);
A filter primitive that translates between C integers and their
external representations. This routine returns one if it suc-
ceeds, zero otherwise.
bool_t xdr_long(XDR *xdrs, long *lp);
A filter primitive that translates between C long integers and
their external representations. This routine returns one if it
succeeds, zero otherwise.
void xdrmem_create(XDR *xdrs, char *addr, unsigned int size,
enum xdr_op op);
This routine initializes the XDR stream object pointed to by
xdrs. The stream’s data is written to, or read from, a chunk of
memory at location addr whose length is no more than size bytes
long. The op determines the direction of the XDR stream (either
XDR_ENCODE, XDR_DECODE, or XDR_FREE).
bool_t xdr_opaque(XDR *xdrs, char *cp, unsigned int cnt);
A filter primitive that translates between fixed size opaque
data and its external representation. The argument cp is the
address of the opaque object, and cnt is its size in bytes.
This routine returns one if it succeeds, zero otherwise.
bool_t xdr_pointer(XDR *xdrs, char **objpp,
unsigned int objsize, xdrproc_t xdrobj);
Like xdr_reference() except that it serializes NULL pointers,
whereas xdr_reference() does not. Thus, xdr_pointer() can rep-
resent recursive data structures, such as binary trees or linked
lists.
void xdrrec_create(XDR *xdrs, unsigned int sendsize,
unsigned int recvsize, char *handle,
int (*readit) (char *, char *, int),
int (*writeit) (char *, char *, int));
This routine initializes the XDR stream object pointed to by
xdrs. The stream’s data is written to a buffer of size send-
size; a value of zero indicates the system should use a suitable
default. The stream’s data is read from a buffer of size recv-
size; it too can be set to a suitable default by passing a zero
value. When a stream’s output buffer is full, writeit is
called. Similarly, when a stream’s input buffer is empty, rea-
dit is called. The behavior of these two routines is similar to
the system calls read(2) and write(2), except that handle is
passed to the former routines as the first argument. Note: the
XDR stream’s op field must be set by the caller.
Warning: this XDR stream implements an intermediate record
stream. Therefore there are additional bytes in the stream to
provide record boundary information.
bool_t xdrrec_endofrecord(XDR *xdrs, int sendnow);
This routine can be invoked only on streams created by xdr-
rec_create(). The data in the output buffer is marked as a com-
pleted record, and the output buffer is optionally written out
if sendnow is non-zero. This routine returns one if it suc-
ceeds, zero otherwise.
bool_t xdrrec_eof(XDR *xdrs);
This routine can be invoked only on streams created by xdr-
rec_create(). After consuming the rest of the current record in
the stream, this routine returns one if the stream has no more
input, zero otherwise.
bool_t xdrrec_skiprecord(XDR *xdrs);
This routine can be invoked only on streams created by xdr-
rec_create(). It tells the XDR implementation that the rest of
the current record in the stream’s input buffer should be dis-
carded. This routine returns one if it succeeds, zero other-
wise.
bool_t xdr_reference(XDR *xdrs, char **pp, unsigned int size,
xdrproc_t proc);
A primitive that provides pointer chasing within structures.
The argument pp is the address of the pointer; size is the
sizeof the structure that *pp points to; and proc is an XDR
procedure that filters the structure between its C form and its
external representation. This routine returns one if it suc-
ceeds, zero otherwise.
Warning: this routine does not understand NULL pointers. Use
xdr_pointer() instead.
xdr_setpos(XDR *xdrs, unsigned int pos);
A macro that invokes the set position routine associated with
the XDR stream xdrs. The argument pos is a position value
obtained from xdr_getpos(). This routine returns one if the XDR
stream could be repositioned, and zero otherwise.
Warning: it is difficult to reposition some types of XDR
streams, so this routine may fail with one type of stream and
succeed with another.
bool_t xdr_short(XDR *xdrs, short *sp);
A filter primitive that translates between C short integers and
their external representations. This routine returns one if it
succeeds, zero otherwise.
void xdrstdio_create(XDR *xdrs, FILE *file, enum xdr_op op);
This routine initializes the XDR stream object pointed to by
xdrs. The XDR stream data is written to, or read from, the
stdio stream file. The argument op determines the direction of
the XDR stream (either XDR_ENCODE, XDR_DECODE, or XDR_FREE).
Warning: the destroy routine associated with such XDR streams
calls fflush(3) on the file stream, but never fclose(3).
bool_t xdr_string(XDR *xdrs, char **sp, unsigned int maxsize);
A filter primitive that translates between C strings and their
corresponding external representations. Strings cannot be
longer than maxsize. Note: sp is the address of the string’s
pointer. This routine returns one if it succeeds, zero other-
wise.
bool_t xdr_u_char(XDR *xdrs, unsigned char *ucp);
A filter primitive that translates between unsigned C characters
and their external representations. This routine returns one if
it succeeds, zero otherwise.
bool_t xdr_u_int(XDR *xdrs, unsigned *up);
A filter primitive that translates between C unsigned integers
and their external representations. This routine returns one if
it succeeds, zero otherwise.
bool_t xdr_u_long(XDR *xdrs, unsigned long *ulp);
A filter primitive that translates between C unsigned long inte-
gers and their external representations. This routine returns
one if it succeeds, zero otherwise.
bool_t xdr_u_short(XDR *xdrs, unsigned short *usp);
A filter primitive that translates between C unsigned short
integers and their external representations. This routine
returns one if it succeeds, zero otherwise.
bool_t xdr_union(XDR *xdrs, int *dscmp, char *unp,
struct xdr_discrim *choices,
xdrproc_t defaultarm); /* may equal NULL */
A filter primitive that translates between a discriminated C
union and its corresponding external representation. It first
translates the discriminant of the union located at dscmp. This
discriminant is always an enum_t. Next the union located at unp
is translated. The argument choices is a pointer to an array of
xdr_discrim() structures. Each structure contains an ordered
pair of [value,proc]. If the union’s discriminant is equal to
the associated value, then the proc is called to translate the
union. The end of the xdr_discrim() structure array is denoted
by a routine of value NULL. If the discriminant is not found in
the choices array, then the defaultarm procedure is called (if
it is not NULL). Returns one if it succeeds, zero otherwise.
bool_t xdr_vector(XDR *xdrs, char *arrp, unsigned int size,
unsigned int elsize, xdrproc_t elproc);
A filter primitive that translates between fixed-length arrays
and their corresponding external representations. The argument
arrp is the address of the pointer to the array, while size is
the element count of the array. The argument elsize is the
sizeof each of the array’s elements, and elproc is an XDR filter
that translates between the array elements’ C form, and their
external representation. This routine returns one if it suc-
ceeds, zero otherwise.
bool_t xdr_void(void);
This routine always returns one. It may be passed to RPC rou-
tines that require a function argument, where nothing is to be
done.
bool_t xdr_wrapstring(XDR *xdrs, char **sp);
A primitive that calls xdr_string(xdrs, sp,MAXUN.UNSIGNED );
where MAXUN.UNSIGNED is the maximum value of an unsigned inte-
ger. xdr_wrapstring() is handy because the RPC package passes a
maximum of two XDR routines as arguments, and xdr_string(), one
of the most frequently used primitives, requires three. Returns
one if it succeeds, zero otherwise.
SEE ALSO
rpc(3)
The following manuals:
eXternal Data Representation Standard: Protocol Specification
eXternal Data Representation: Sun Technical Notes
XDR: External Data Representation Standard, RFC 1014, Sun
Microsystems, Inc., USC-ISI.
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
2007-12-30 XDR(3)