xref: /illumos-gate/usr/src/head/rpcsvc/ypupd.h (revision 1702cce751c5cb7ead878d0205a6c90b027e3de8)
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 /*
39  * Please do not edit this file.
40  * It was generated using rpcgen.
41  */
42 
43 #include <sys/types.h>
44 
45 #ifdef	__cplusplus
46 extern "C" {
47 #endif
48 
49 /*
50  * Compiled from ypupdate_prot.x using rpcgen
51  * This is NOT source code!
52  * DO NOT EDIT THIS FILE!
53  */
54 #define	MAXMAPNAMELEN 255
55 #define	MAXYPDATALEN 1023
56 #define	MAXERRMSGLEN 255
57 
58 #define	YPU_PROG ((ulong_t)100028)
59 #define	YPU_VERS ((ulong_t)1)
60 #define	YPU_CHANGE ((ulong_t)1)
61 extern uint_t *ypu_change_1();
62 #define	YPU_INSERT ((ulong_t)2)
63 extern uint_t *ypu_insert_1();
64 #define	YPU_DELETE ((ulong_t)3)
65 extern uint_t *ypu_delete_1();
66 #define	YPU_STORE ((ulong_t)4)
67 extern uint_t *ypu_store_1();
68 
69 typedef struct {
70 	uint_t yp_buf_len;
71 	char *yp_buf_val;
72 } yp_buf;
73 bool_t xdr_yp_buf();
74 
75 struct ypupdate_args {
76 	char *mapname;
77 	yp_buf key;
78 	yp_buf datum;
79 };
80 typedef struct ypupdate_args ypupdate_args;
81 bool_t xdr_ypupdate_args();
82 
83 struct ypdelete_args {
84 	char *mapname;
85 	yp_buf key;
86 };
87 typedef struct ypdelete_args ypdelete_args;
88 bool_t xdr_ypdelete_args();
89 
90 #ifdef	__cplusplus
91 }
92 #endif
93 
94 #endif	/* _RPCSVC_YPUPD_H */
95