2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License, Version 1.0 only 2N/A * (the "License"). You may not use this file except in compliance 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2N/A * Use is subject to license terms. 2N/A/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Portions of this source code were derived from Berkeley 2N/A * 4.3 BSD under license from the Regents of the University of 2N/A#
pragma ident "%Z%%M% %I% %E% SMI" 2N/A * This set of routines implements a XDR on a stdio stream. 2N/A * XDR_ENCODE serializes onto the stream, XDR_DECODE de-serializes 2N/A * Initialize a stdio xdr stream. 2N/A * Sets the xdr stream handle xdrs for use on the stream file. 2N/A * Operation flag is set to op. 2N/A * Destroy a stdio xdr stream. 2N/A * Cleans up the xdr stream handle xdrs previously set up by xdrstdio_create. 2N/A /* LINTED pointer cast */ 2N/A /* xx should we close the file ?? */ 2N/A /* LINTED pointer cast */ 2N/A /* LINTED pointer cast */ 2N/A /* LINTED pointer cast */ 2N/A /* LINTED pointer cast */ 2N/A /* LINTED pointer cast */ 2N/A /* LINTED pointer cast */ 2N/A * Must do some work to implement this: must insure 2N/A * enough data in the underlying stdio buffer, 2N/A * that the buffer is aligned so that we can indirect through a 2N/A * long *, and stuff this pointer in xdrs->x_buf. Doing 2N/A * a fread or fwrite to a scratch buffer would defeat 2N/A * most of the gains to be had here and require storage 2N/A * management on this buffer, so we don't do this. 2N/A/* VARIABLES PROTECTED BY ops_lock: ops */