ypclnt.h (50473) | ypclnt.h (90297) |
---|---|
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 * $FreeBSD: head/include/rpcsvc/ypclnt.h 50473 1999-08-27 23:45:13Z peter $ | 29 * $FreeBSD: head/include/rpcsvc/ypclnt.h 90297 2002-02-06 13:30:31Z des $ |
30 */ 31 32#ifndef _RPCSVC_YPCLNT_H_ 33#define _RPCSVC_YPCLNT_H_ 34 35#include <sys/cdefs.h> 36 37#define YPERR_BADARGS 1 /* args to function are bad */ --- 18 unchanged lines hidden (view full) --- 56 */ 57#define YPOP_CHANGE 1 /* change, do not add */ 58#define YPOP_INSERT 2 /* add, do not change */ 59#define YPOP_DELETE 3 /* delete this entry */ 60#define YPOP_STORE 4 /* add, or change */ 61 62struct ypall_callback { 63 /* return non-0 to stop getting called */ | 30 */ 31 32#ifndef _RPCSVC_YPCLNT_H_ 33#define _RPCSVC_YPCLNT_H_ 34 35#include <sys/cdefs.h> 36 37#define YPERR_BADARGS 1 /* args to function are bad */ --- 18 unchanged lines hidden (view full) --- 56 */ 57#define YPOP_CHANGE 1 /* change, do not add */ 58#define YPOP_INSERT 2 /* add, do not change */ 59#define YPOP_DELETE 3 /* delete this entry */ 60#define YPOP_STORE 4 /* add, or change */ 61 62struct ypall_callback { 63 /* return non-0 to stop getting called */ |
64 int (*foreach) __P((unsigned long, char *, int, char *, int, void *)); | 64 int (*foreach)(unsigned long, char *, int, char *, int, void *); |
65 char *data; /* opaque pointer for use of callback fn */ 66}; 67 68struct dom_binding; 69 70__BEGIN_DECLS | 65 char *data; /* opaque pointer for use of callback fn */ 66}; 67 68struct dom_binding; 69 70__BEGIN_DECLS |
71int yp_bind __P((char *dom)); 72int _yp_dobind __P((char *dom, struct dom_binding **ypdb)); 73void yp_unbind __P((char *dom)); 74int yp_get_default_domain __P((char **domp)); | 71int yp_bind(char *dom); 72int _yp_dobind(char *dom, struct dom_binding **ypdb); 73void yp_unbind(char *dom); 74int yp_get_default_domain(char **domp); |
75int yp_match __P((char *indomain, char *inmap, 76 const char *inkey, int inkeylen, char **outval, 77 int *outvallen)); 78int yp_first __P((char *indomain, char *inmap, 79 char **outkey, int *outkeylen, char **outval, 80 int *outvallen)); 81int yp_next __P((char *indomain, char *inmap, 82 char *inkey, int inkeylen, char **outkey, 83 int *outkeylen, char **outval, int *outvallen)); | 75int yp_match __P((char *indomain, char *inmap, 76 const char *inkey, int inkeylen, char **outval, 77 int *outvallen)); 78int yp_first __P((char *indomain, char *inmap, 79 char **outkey, int *outkeylen, char **outval, 80 int *outvallen)); 81int yp_next __P((char *indomain, char *inmap, 82 char *inkey, int inkeylen, char **outkey, 83 int *outkeylen, char **outval, int *outvallen)); |
84int yp_master __P((char *indomain, char *inmap, char **outname)); 85int yp_order __P((char *indomain, char *inmap, int *outorder)); | 84int yp_master(char *indomain, char *inmap, char **outname); 85int yp_order(char *indomain, char *inmap, int *outorder); |
86int yp_all __P((char *indomain, char *inmap, 87 struct ypall_callback *incallback)); | 86int yp_all __P((char *indomain, char *inmap, 87 struct ypall_callback *incallback)); |
88char * yperr_string __P((int incode)); 89char * ypbinderr_string __P((int incode)); 90int ypprot_err __P((unsigned int incode)); | 88char * yperr_string(int incode); 89char * ypbinderr_string(int incode); 90int ypprot_err(unsigned int incode); |
91__END_DECLS 92 93#endif /* _RPCSVC_YPCLNT_H_ */ 94 | 91__END_DECLS 92 93#endif /* _RPCSVC_YPCLNT_H_ */ 94 |