xref: /titanic_52/usr/src/head/rpcsvc/ypupd.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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 /*
23  * Copyright 1998 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 /*	Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T	*/
28 /*	  All Rights Reserved  	*/
29 
30 /*
31  * Portions of this source code were derived from Berkeley 4.3 BSD
32  * under license from the Regents of the University of California.
33  */
34 
35 #ifndef	_RPCSVC_YPUPD_H
36 #define	_RPCSVC_YPUPD_H
37 
38 #pragma ident	"%Z%%M%	%I%	%E% SMI"
39 
40 /*
41  * Please do not edit this file.
42  * It was generated using rpcgen.
43  */
44 
45 #include <sys/types.h>
46 
47 #ifdef	__cplusplus
48 extern "C" {
49 #endif
50 
51 /*
52  * Compiled from ypupdate_prot.x using rpcgen
53  * This is NOT source code!
54  * DO NOT EDIT THIS FILE!
55  */
56 #define	MAXMAPNAMELEN 255
57 #define	MAXYPDATALEN 1023
58 #define	MAXERRMSGLEN 255
59 
60 #define	YPU_PROG ((ulong_t)100028)
61 #define	YPU_VERS ((ulong_t)1)
62 #define	YPU_CHANGE ((ulong_t)1)
63 extern uint_t *ypu_change_1();
64 #define	YPU_INSERT ((ulong_t)2)
65 extern uint_t *ypu_insert_1();
66 #define	YPU_DELETE ((ulong_t)3)
67 extern uint_t *ypu_delete_1();
68 #define	YPU_STORE ((ulong_t)4)
69 extern uint_t *ypu_store_1();
70 
71 typedef struct {
72 	uint_t yp_buf_len;
73 	char *yp_buf_val;
74 } yp_buf;
75 bool_t xdr_yp_buf();
76 
77 struct ypupdate_args {
78 	char *mapname;
79 	yp_buf key;
80 	yp_buf datum;
81 };
82 typedef struct ypupdate_args ypupdate_args;
83 bool_t xdr_ypupdate_args();
84 
85 struct ypdelete_args {
86 	char *mapname;
87 	yp_buf key;
88 };
89 typedef struct ypdelete_args ypdelete_args;
90 bool_t xdr_ypdelete_args();
91 
92 #ifdef	__cplusplus
93 }
94 #endif
95 
96 #endif	/* _RPCSVC_YPUPD_H */
97