yp_prot.h (13771) | yp_prot.h (21060) |
---|---|
1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * | 1/* 2 * Copyright (c) 1992/3 Theo de Raadt <deraadt@fsa.ca> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 12 unchanged lines hidden (view full) --- 21 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * |
29 * $Id: yp_prot.h,v 1.2 1995/05/30 04:55:47 rgrimes Exp $ | 29 * $Id: yp_prot.h,v 1.3 1996/01/30 23:33:04 mpp Exp $ |
30 */ 31 | 30 */ 31 |
32#ifndef _YP_PROT_H_ 33#define _YP_PROT_H_ | 32#ifndef _RPCSVC_YP_PROT_H_ 33#define _RPCSVC_YP_PROT_H_ |
34 35/* 36 * YPSERV PROTOCOL: 37 * 38 * ypserv supports the following procedures: 39 * 40 * YPPROC_NULL takes (void), returns (void). 41 * called to check if server is alive. --- 25 unchanged lines hidden (view full) --- 67 * YPPROC_MAPLIST takes (char *), returns (struct ypmaplist *). 68 */ 69 70#ifndef BOOL_DEFINED 71typedef u_int bool; 72#define BOOL_DEFINED 73#endif 74 | 34 35/* 36 * YPSERV PROTOCOL: 37 * 38 * ypserv supports the following procedures: 39 * 40 * YPPROC_NULL takes (void), returns (void). 41 * called to check if server is alive. --- 25 unchanged lines hidden (view full) --- 67 * YPPROC_MAPLIST takes (char *), returns (struct ypmaplist *). 68 */ 69 70#ifndef BOOL_DEFINED 71typedef u_int bool; 72#define BOOL_DEFINED 73#endif 74 |
75bool_t xdr_datum(); 76bool_t xdr_ypdomain_wrap_string(); 77bool_t xdr_ypmap_wrap_string(); 78bool_t xdr_ypreq_key(); 79bool_t xdr_ypreq_nokey(); 80bool_t xdr_ypreq_xfr(); 81bool_t xdr_ypresp_val(); 82bool_t xdr_ypresp_key_val(); 83bool_t xdr_ypbind_resp(); 84bool_t xdr_ypbind_setdom(); 85bool_t xdr_yp_inaddr(); 86bool_t xdr_ypmap_parms(); 87bool_t xdr_ypowner_wrap_string(); 88bool_t xdr_yppushresp_xfr(); 89bool_t xdr_ypresp_order(); 90bool_t xdr_ypresp_master(); 91bool_t xdr_ypall(); 92bool_t xdr_ypresp_maplist(); 93 | |
94/* Program and version symbols, magic numbers */ 95 96#define YPPROG ((u_long)100004) 97#define YPVERS ((u_long)2) 98#define YPVERS_ORIG ((u_long)1) 99#define YPMAXRECORD ((u_long)1024) 100#define YPMAXDOMAIN ((u_long)64) 101#define YPMAXMAP ((u_long)64) --- 220 unchanged lines hidden (view full) --- 322#define YPPUSH_DBM ((long)-8) /* Local dbm operation failed */ 323#define YPPUSH_FILE ((long)-9) /* Local file I/O operation failed */ 324#define YPPUSH_SKEW ((long)-10) /* Map version skew during transfer */ 325#define YPPUSH_CLEAR ((long)-11) /* Can't send "Clear" req to local ypserv */ 326#define YPPUSH_FORCE ((long)-12) /* No local order number in map - use -f */ 327#define YPPUSH_XFRERR ((long)-13) /* ypxfr error */ 328#define YPPUSH_REFUSED ((long)-14) /* Transfer request refused by ypserv */ 329 | 75/* Program and version symbols, magic numbers */ 76 77#define YPPROG ((u_long)100004) 78#define YPVERS ((u_long)2) 79#define YPVERS_ORIG ((u_long)1) 80#define YPMAXRECORD ((u_long)1024) 81#define YPMAXDOMAIN ((u_long)64) 82#define YPMAXMAP ((u_long)64) --- 220 unchanged lines hidden (view full) --- 303#define YPPUSH_DBM ((long)-8) /* Local dbm operation failed */ 304#define YPPUSH_FILE ((long)-9) /* Local file I/O operation failed */ 305#define YPPUSH_SKEW ((long)-10) /* Map version skew during transfer */ 306#define YPPUSH_CLEAR ((long)-11) /* Can't send "Clear" req to local ypserv */ 307#define YPPUSH_FORCE ((long)-12) /* No local order number in map - use -f */ 308#define YPPUSH_XFRERR ((long)-13) /* ypxfr error */ 309#define YPPUSH_REFUSED ((long)-14) /* Transfer request refused by ypserv */ 310 |
330#endif /* _YP_PROT_H_ */ | 311struct inaddr; 312__BEGIN_DECLS 313bool_t xdr_datum __P((XDR *, datum *)); 314bool_t xdr_ypreq_key __P((XDR *, struct ypreq_key *)); 315bool_t xdr_ypreq_nokey __P((XDR *, struct ypreq_nokey *)); 316bool_t xdr_ypreq_xfr __P((XDR *, struct ypreq_xfr *)); 317bool_t xdr_ypresp_val __P((XDR *, struct ypresp_val *)); 318bool_t xdr_ypresp_key_val __P((XDR *, struct ypresp_key_val *)); 319bool_t xdr_ypbind_resp __P((XDR *, struct ypbind_resp *)); 320bool_t xdr_ypbind_setdom __P((XDR *, struct ypbind_setdom *)); 321bool_t xdr_yp_inaddr __P((XDR *, struct inaddr *)); 322bool_t xdr_ypmap_parms __P((XDR *, struct ypmap_parms *)); 323bool_t xdr_yppushresp_xfr __P((XDR *, struct yppushresp_xfr *)); 324bool_t xdr_ypresp_order __P((XDR *, struct ypresp_order *)); 325bool_t xdr_ypresp_master __P((XDR *, struct ypresp_master *)); 326bool_t xdr_ypresp_maplist __P((XDR *, struct ypresp_maplist *)); 327__END_DECLS 328 329#endif /* _RPCSVC_YP_PROT_H_ */ |