ypxfr_extern.h (13008) | ypxfr_extern.h (16132) |
---|---|
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.5 1995/12/24 04:37:22 wpaul Exp $ | 32 * $Id: ypxfr_extern.h,v 1.7 1996/06/03 03:10:42 wpaul Exp $ |
33 */ 34#include <sys/types.h> 35#include <limits.h> | 33 */ 34#include <sys/types.h> 35#include <limits.h> |
36#include <db.h> | |
37#include <paths.h> | 36#include <paths.h> |
37#include <db.h> |
|
38 | 38 |
39extern HASHINFO openinfo; 40extern BTREEINFO openinfo_b; 41 |
|
39#ifndef _PATH_YP 40#define _PATH_YP "/var/yp/" 41#endif 42 43extern char *yp_dir; 44extern int debug; | 42#ifndef _PATH_YP 43#define _PATH_YP "/var/yp/" 44#endif 45 46extern char *yp_dir; 47extern int debug; |
45extern HASHINFO openinfo; | |
46extern int yp_errno; 47extern void yp_error __P(( const char *, ... )); 48extern int _yp_check __P(( char ** )); 49extern char *ypxfrerr_string __P(( ypxfrstat )); | 48extern int yp_errno; 49extern void yp_error __P(( const char *, ... )); 50extern int _yp_check __P(( char ** )); 51extern char *ypxfrerr_string __P(( ypxfrstat )); |
50extern DB *yp_open_db_rw __P(( const char *, const char *)); 51extern int yp_put_record __P(( DB *, DBT *, DBT * )); | 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 )); |
52extern int yp_get_record __P(( const char *, const char *, const DBT *, DBT *, int )); 53extern int ypxfr_get_map __P(( char *, char *, char *, int (*)() )); 54extern char *ypxfr_get_master __P(( char *, char *, char *, const int )); 55extern unsigned long ypxfr_get_order __P(( char *, char *, char *, const int )); 56extern char *ypxfxerr_string __P(( ypxfrstat )); | 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 char *ypxfxerr_string __P(( ypxfrstat )); |
60extern int ypxfrd_get_map __P(( char *, char *, char *, char *)); |
|
57extern int callrpc __P(( char *, int, int, int, xdrproc_t, char *, xdrproc_t, char *)); | 61extern int callrpc __P(( char *, int, int, int, xdrproc_t, char *, xdrproc_t, char *)); |