home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / yp / ypupdate_xdr.c < prev   
Encoding:
C/C++ Source or Header  |  1994-09-15  |  2.4 KB  |  92 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #include <rpcsvc/ypupdate_prot.h>
  7. /*
  8.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  9.  * unrestricted use provided that this legend is included on all tape
  10.  * media and as a part of the software program in whole or part.  Users
  11.  * may copy or modify Sun RPC without charge, but are not authorized
  12.  * to license or distribute it to anyone else except as part of a product or
  13.  * program developed by the user or with the express written consent of
  14.  * Sun Microsystems, Inc.
  15.  *
  16.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  17.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  18.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  19.  *
  20.  * Sun RPC is provided with no support and without any obligation on the
  21.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  22.  * modification or enhancement.
  23.  *
  24.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  25.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  26.  * OR ANY PART THEREOF.
  27.  *
  28.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  29.  * or profits or other special, indirect and consequential damages, even if
  30.  * Sun has been advised of the possibility of such damages.
  31.  *
  32.  * Sun Microsystems, Inc.
  33.  * 2550 Garcia Avenue
  34.  * Mountain View, California  94043
  35.  */
  36. /*
  37.  * Copyright (c) 1986, 1990 by Sun Microsystems, Inc.
  38.  */
  39.  
  40. /* from @(#)ypupdate_prot.x    1.3 91/03/11 TIRPC 1.0 */
  41.  
  42. /*
  43.  * Compiled from ypupdate_prot.x using rpcgen
  44.  * This is NOT source code!
  45.  * DO NOT EDIT THIS FILE!
  46.  */
  47.  
  48. bool_t
  49. xdr_yp_buf(XDR *xdrs, yp_buf *objp)
  50. {
  51.  
  52.      register long *buf;
  53.  
  54.      if (!xdr_bytes(xdrs, (char **)&objp->yp_buf_val, (u_int *)&objp->yp_buf_len, MAXYPDATALEN)) {
  55.          return (FALSE);
  56.      }
  57.     return (TRUE);
  58. }
  59.  
  60. bool_t
  61. xdr_ypupdate_args(XDR *xdrs, ypupdate_args *objp)
  62. {
  63.  
  64.      register long *buf;
  65.  
  66.      if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) {
  67.          return (FALSE);
  68.      }
  69.      if (!xdr_yp_buf(xdrs, &objp->key)) {
  70.          return (FALSE);
  71.      }
  72.      if (!xdr_yp_buf(xdrs, &objp->datum)) {
  73.          return (FALSE);
  74.      }
  75.     return (TRUE);
  76. }
  77.  
  78. bool_t
  79. xdr_ypdelete_args(XDR *xdrs, ypdelete_args *objp)
  80. {
  81.  
  82.      register long *buf;
  83.  
  84.      if (!xdr_string(xdrs, &objp->mapname, MAXMAPNAMELEN)) {
  85.          return (FALSE);
  86.      }
  87.      if (!xdr_yp_buf(xdrs, &objp->key)) {
  88.          return (FALSE);
  89.      }
  90.     return (TRUE);
  91. }
  92.