1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _YPUPDATED_PROT_H_RPCGEN 7 #define _YPUPDATED_PROT_H_RPCGEN 8 9 #include <rpc/rpc.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /* 16 * CDDL HEADER START 17 * 18 * The contents of this file are subject to the terms of the 19 * Common Development and Distribution License, Version 1.0 only 20 * (the "License"). You may not use this file except in compliance 21 * with the License. 22 * 23 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 24 * or http://www.opensolaris.org/os/licensing. 25 * See the License for the specific language governing permissions 26 * and limitations under the License. 27 * 28 * When distributing Covered Code, include this CDDL HEADER in each 29 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 30 * If applicable, add the following below this CDDL HEADER, with the 31 * fields enclosed by brackets "[]" replaced with your own identifying 32 * information: Portions Copyright [yyyy] [name of copyright owner] 33 * 34 * CDDL HEADER END 35 * 36 * Copyright 1990 Sun Microsystems, Inc. All rights reserved. 37 * Use is subject to license terms. 38 */ 39 40 #pragma ident "%Z%%M% %I% %E% SMI" 41 42 /* 43 * Compiled from ypupdate_prot.x using rpcgen 44 * This is NOT source code! 45 * DO NOT EDIT THIS FILE! 46 */ 47 #define MAXMAPNAMELEN 255 48 #define MAXYPDATALEN 1023 49 #define MAXERRMSGLEN 255 50 51 typedef struct { 52 u_int yp_buf_len; 53 char *yp_buf_val; 54 } yp_buf; 55 56 struct ypupdate_args { 57 char *mapname; 58 yp_buf key; 59 yp_buf datum; 60 }; 61 typedef struct ypupdate_args ypupdate_args; 62 63 struct ypdelete_args { 64 char *mapname; 65 yp_buf key; 66 }; 67 typedef struct ypdelete_args ypdelete_args; 68 69 #define YPU_PROG 100028 70 #define YPU_VERS 1 71 72 #if defined(__STDC__) || defined(__cplusplus) 73 #define YPU_CHANGE 1 74 extern u_int * ypu_change_1(ypupdateargs *, CLIENT *); 75 extern u_int * ypu_change_1_svc(ypupdateargs *, struct svc_req *); 76 #define YPU_INSERT 2 77 extern u_int * ypu_insert_1(ypupdateargs *, CLIENT *); 78 extern u_int * ypu_insert_1_svc(ypupdateargs *, struct svc_req *); 79 #define YPU_DELETE 3 80 extern u_int * ypu_delete_1(ypdeleteargs *, CLIENT *); 81 extern u_int * ypu_delete_1_svc(ypdeleteargs *, struct svc_req *); 82 #define YPU_STORE 4 83 extern u_int * ypu_store_1(ypupdateargs *, CLIENT *); 84 extern u_int * ypu_store_1_svc(ypupdateargs *, struct svc_req *); 85 extern int ypu_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 86 87 #else /* K&R C */ 88 #define YPU_CHANGE 1 89 extern u_int * ypu_change_1(); 90 extern u_int * ypu_change_1_svc(); 91 #define YPU_INSERT 2 92 extern u_int * ypu_insert_1(); 93 extern u_int * ypu_insert_1_svc(); 94 #define YPU_DELETE 3 95 extern u_int * ypu_delete_1(); 96 extern u_int * ypu_delete_1_svc(); 97 #define YPU_STORE 4 98 extern u_int * ypu_store_1(); 99 extern u_int * ypu_store_1_svc(); 100 extern int ypu_prog_1_freeresult(); 101 #endif /* K&R C */ 102 103 /* the xdr functions */ 104 105 #if defined(__STDC__) || defined(__cplusplus) 106 extern bool_t xdr_yp_buf(XDR *, yp_buf*); 107 extern bool_t xdr_ypupdate_args(XDR *, ypupdate_args*); 108 extern bool_t xdr_ypdelete_args(XDR *, ypdelete_args*); 109 110 #else /* K&R C */ 111 extern bool_t xdr_yp_buf(); 112 extern bool_t xdr_ypupdate_args(); 113 extern bool_t xdr_ypdelete_args(); 114 115 #endif /* K&R C */ 116 117 #ifdef __cplusplus 118 } 119 #endif 120 121 #endif /* !_YPUPDATED_PROT_H_RPCGEN */ 122