ypxfr_extern.h (19181) | ypxfr_extern.h (20862) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. 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 --- 15 unchanged lines hidden (view full) --- 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $Id: ypxfr_extern.h,v 1.7 1996/06/03 03:10:42 wpaul Exp wpaul $ | 32 * $Id: ypxfr_extern.h,v 1.3 1996/10/25 16:13:04 wpaul Exp $ |
33 */ 34#include <sys/types.h> 35#include <limits.h> 36#include <paths.h> 37#include <db.h> | 33 */ 34#include <sys/types.h> 35#include <limits.h> 36#include <paths.h> 37#include <db.h> |
38#include <rpcsvc/yp.h> |
|
38 39extern HASHINFO openinfo; 40extern BTREEINFO openinfo_b; 41 42#ifndef _PATH_YP 43#define _PATH_YP "/var/yp/" 44#endif 45 46extern char *yp_dir; 47extern int debug; | 39 40extern HASHINFO openinfo; 41extern BTREEINFO openinfo_b; 42 43#ifndef _PATH_YP 44#define _PATH_YP "/var/yp/" 45#endif 46 47extern char *yp_dir; 48extern int debug; |
48extern int yp_errno; | 49extern enum ypstat yp_errno; |
49extern void yp_error __P(( const char *, ... )); 50extern int _yp_check __P(( char ** )); 51extern char *ypxfrerr_string __P(( ypxfrstat )); 52extern DB *yp_open_db_rw __P(( const char *, const char *, const int)); 53extern void yp_init_dbs __P(( void )); 54extern int yp_put_record __P(( DB *, DBT *, DBT * , int )); 55extern int yp_get_record __P(( const char *, const char *, const DBT *, DBT *, int )); 56extern int ypxfr_get_map __P(( char *, char *, char *, int (*)() )); 57extern char *ypxfr_get_master __P(( char *, char *, char *, const int )); 58extern unsigned long ypxfr_get_order __P(( char *, char *, char *, const int )); 59extern int ypxfr_match __P(( char *, char *, char *, char *, unsigned long )); 60extern char *ypxfxerr_string __P(( ypxfrstat )); 61extern int ypxfrd_get_map __P(( char *, char *, char *, char *)); 62extern int callrpc __P(( char *, int, int, int, xdrproc_t, char *, xdrproc_t, char *)); | 50extern void yp_error __P(( const char *, ... )); 51extern int _yp_check __P(( char ** )); 52extern char *ypxfrerr_string __P(( ypxfrstat )); 53extern DB *yp_open_db_rw __P(( const char *, const char *, const int)); 54extern void yp_init_dbs __P(( void )); 55extern int yp_put_record __P(( DB *, DBT *, DBT * , int )); 56extern int yp_get_record __P(( const char *, const char *, const DBT *, DBT *, int )); 57extern int ypxfr_get_map __P(( char *, char *, char *, int (*)() )); 58extern char *ypxfr_get_master __P(( char *, char *, char *, const int )); 59extern unsigned long ypxfr_get_order __P(( char *, char *, char *, const int )); 60extern int ypxfr_match __P(( char *, char *, char *, char *, unsigned long )); 61extern char *ypxfxerr_string __P(( ypxfrstat )); 62extern int ypxfrd_get_map __P(( char *, char *, char *, char *)); 63extern int callrpc __P(( char *, int, int, int, xdrproc_t, char *, xdrproc_t, char *)); |