1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 * 22 * Copyright 1992 Sun Microsystems, Inc. All rights reserved. 23 * Use is subject to license terms. 24 */ 25 26 /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 27 /* All Rights Reserved */ 28 29 /* 30 * Portions of this source code were derived from Berkeley 31 * under license from the Regents of the University of 32 * California. 33 */ 34 35 #pragma ident "%Z%%M% %I% %E% SMI" 36 37 #include <rpc/rpc.h> 38 #include <sys/types.h> 39 #include <rpc/trace.h> 40 #include <rpcsvc/ypupd.h> 41 42 /* 43 * Compiled from ypupdate_prot.x using rpcgen 44 */ 45 46 bool_t 47 xdr_yp_buf(xdrs, objp) 48 XDR *xdrs; 49 yp_buf *objp; 50 { 51 trace1(TR_xdr_yp_buf, 0); 52 if (!xdr_bytes(xdrs, (char **)&objp->yp_buf_val, 53 (u_int *)&objp->yp_buf_len, MAXYPDATALEN)) { 54 trace1(TR_xdr_yp_buf, 1); 55 return (FALSE); 56 } 57 trace1(TR_xdr_yp_buf, 1); 58 return (TRUE); 59 } 60 61 bool_t 62 xdr_ypupdate_args(xdrs, objp) 63 XDR *xdrs; 64 ypupdate_args *objp; 65 { 66 trace1(TR_xdr_ypupdate_args, 0); 67 if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) { 68 trace1(TR_xdr_ypupdate_args, 1); 69 return (FALSE); 70 } 71 if (!xdr_yp_buf(xdrs, &objp->key)) { 72 trace1(TR_xdr_ypupdate_args, 1); 73 return (FALSE); 74 } 75 if (!xdr_yp_buf(xdrs, &objp->datum)) { 76 trace1(TR_xdr_ypupdate_args, 1); 77 return (FALSE); 78 } 79 trace1(TR_xdr_ypupdate_args, 1); 80 return (TRUE); 81 } 82 83 bool_t 84 xdr_ypdelete_args(xdrs, objp) 85 XDR *xdrs; 86 ypdelete_args *objp; 87 { 88 trace1(TR_xdr_ypdelete_args, 0); 89 if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) { 90 trace1(TR_xdr_ypdelete_args, 1); 91 return (FALSE); 92 } 93 if (!xdr_yp_buf(xdrs, &objp->key)) { 94 trace1(TR_xdr_ypdelete_args, 1); 95 return (FALSE); 96 } 97 trace1(TR_xdr_ypdelete_args, 1); 98 return (TRUE); 99 } 100