Print this page
4398 Extra spaces in man pages
Reviewed by: Marcel Telka <marcel@telka.sk>
   1 '\" te
   2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH XDR_ADMIN 3NSL "Dec 30, 1996"
   7 .SH NAME
   8 xdr_admin, xdr_control, xdr_getpos, xdr_inline, xdrrec_endofrecord, xdrrec_eof,
   9 xdrrec_readbytes, xdrrec_skiprecord, xdr_setpos, xdr_sizeof \- library routines
  10 for external data representation
  11 .SH DESCRIPTION
  12 .sp
  13 .LP
  14 \fBXDR\fR library routines allow C programmers to describe arbitrary data
  15 structures in a machine-independent fashion. Protocols such as remote procedure
  16 calls (RPC) use these routines to describe the format of the data.
  17 .sp
  18 .LP
  19 These routines deal specifically with the management of the \fBXDR\fR stream.
  20 .SS "Routines"
  21 .sp
  22 .LP
  23 See \fBrpc\fR(3NSL) for the definition of the \fBXDR\fR data structure. Note
  24 that any buffers passed to the \fBXDR\fR routines must be properly aligned.  It
  25 is suggested either that \fBmalloc\fR(3C) be used to allocate these buffers, or
  26 that the programmer insure  that the buffer address is divisible evenly by
  27 four.
  28 .sp
  29 .LP
  30 \fB#include <rpc/xdr.h>\fR
  31 .sp
  32 .ne 2
  33 .na
  34 \fB\fBbool_t xdr_control( XDR *\fR\fIxdrs\fR\fB, int\fR\fI req\fR\fB, void
  35 *\fR\fIinfo\fR\fB);\fR\fR
  36 .ad
  37 .sp .6
  38 .RS 4n
  39 A function macro to change or retrieve various information about an  \fBXDR\fR
  40 stream. \fIreq\fR indicates the type of operation and \fIinfo\fR is a pointer
  41 to the information. The supported values of \fIreq\fR is
  42 \fBXDR_GET_BYTES_AVAIL\fR and its argument type is \fBxdr_bytesrec *\fR. They
  43 return the number of bytes left unconsumed in the stream and a flag indicating
  44 whether or not this is the last fragment.
  45 .RE
  46 
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fBuint_t xdr_getpos(const XDR *\fR\fIxdrs\fR\fB);\fR\fR
  51 .ad
  52 .sp .6
  53 .RS 4n
  54 A macro that invokes the get-position routine associated with the \fBXDR\fR


   1 '\" te
   2 .\"  Copyright 1989 AT&T  Copyright (c) 1997, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH XDR_ADMIN 3NSL "Mar 17, 2014"
   7 .SH NAME
   8 xdr_admin, xdr_control, xdr_getpos, xdr_inline, xdrrec_endofrecord, xdrrec_eof,
   9 xdrrec_readbytes, xdrrec_skiprecord, xdr_setpos, xdr_sizeof \- library routines
  10 for external data representation
  11 .SH DESCRIPTION
  12 .sp
  13 .LP
  14 \fBXDR\fR library routines allow C programmers to describe arbitrary data
  15 structures in a machine-independent fashion. Protocols such as remote procedure
  16 calls (RPC) use these routines to describe the format of the data.
  17 .sp
  18 .LP
  19 These routines deal specifically with the management of the \fBXDR\fR stream.
  20 .SS "Routines"
  21 .sp
  22 .LP
  23 See \fBrpc\fR(3NSL) for the definition of the \fBXDR\fR data structure. Note
  24 that any buffers passed to the \fBXDR\fR routines must be properly aligned.  It
  25 is suggested either that \fBmalloc\fR(3C) be used to allocate these buffers, or
  26 that the programmer insure  that the buffer address is divisible evenly by
  27 four.
  28 .sp
  29 .LP
  30 \fB#include <rpc/xdr.h>\fR
  31 .sp
  32 .ne 2
  33 .na
  34 \fB\fBbool_t xdr_control(XDR *\fR\fIxdrs\fR\fB, int\fR\fI req\fR\fB, void
  35 *\fR\fIinfo\fR\fB);\fR\fR
  36 .ad
  37 .sp .6
  38 .RS 4n
  39 A function macro to change or retrieve various information about an  \fBXDR\fR
  40 stream. \fIreq\fR indicates the type of operation and \fIinfo\fR is a pointer
  41 to the information. The supported values of \fIreq\fR is
  42 \fBXDR_GET_BYTES_AVAIL\fR and its argument type is \fBxdr_bytesrec *\fR. They
  43 return the number of bytes left unconsumed in the stream and a flag indicating
  44 whether or not this is the last fragment.
  45 .RE
  46 
  47 .sp
  48 .ne 2
  49 .na
  50 \fB\fBuint_t xdr_getpos(const XDR *\fR\fIxdrs\fR\fB);\fR\fR
  51 .ad
  52 .sp .6
  53 .RS 4n
  54 A macro that invokes the get-position routine associated with the \fBXDR\fR