1 0 stevel /* 2 0 stevel * CDDL HEADER START 3 0 stevel * 4 0 stevel * The contents of this file are subject to the terms of the 5 0 stevel * Common Development and Distribution License, Version 1.0 only 6 0 stevel * (the "License"). You may not use this file except in compliance 7 0 stevel * with the License. 8 0 stevel * 9 0 stevel * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 0 stevel * or http://www.opensolaris.org/os/licensing. 11 0 stevel * See the License for the specific language governing permissions 12 0 stevel * and limitations under the License. 13 0 stevel * 14 0 stevel * When distributing Covered Code, include this CDDL HEADER in each 15 0 stevel * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 0 stevel * If applicable, add the following below this CDDL HEADER, with the 17 0 stevel * fields enclosed by brackets "[]" replaced with your own identifying 18 0 stevel * information: Portions Copyright [yyyy] [name of copyright owner] 19 0 stevel * 20 0 stevel * CDDL HEADER END 21 0 stevel */ 22 0 stevel /* 23 0 stevel * Copyright 1989 Sun Microsystems, Inc. All rights reserved. 24 0 stevel * Use is subject to license terms. 25 0 stevel */ 26 0 stevel 27 0 stevel /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 28 0 stevel /* All Rights Reserved */ 29 0 stevel 30 0 stevel /* 31 0 stevel * Portions of this source code were derived from Berkeley 4.3 BSD 32 0 stevel * under license from the Regents of the University of California. 33 0 stevel */ 34 0 stevel 35 0 stevel #ifndef _RPCSVC_DBM_H 36 0 stevel #define _RPCSVC_DBM_H 37 0 stevel 38 0 stevel #pragma ident "%Z%%M% %I% %E% SMI" 39 0 stevel 40 0 stevel #ifdef __cplusplus 41 0 stevel extern "C" { 42 0 stevel #endif 43 0 stevel 44 0 stevel #define PBLKSIZ 1024 45 0 stevel #define DBLKSIZ 4096 46 0 stevel #define BYTESIZ 8 47 0 stevel #ifndef NULL 48 0 stevel #define NULL ((char *)0) 49 0 stevel #endif 50 0 stevel 51 0 stevel long bitno; 52 0 stevel long maxbno; 53 0 stevel long blkno; 54 0 stevel long hmask; 55 0 stevel 56 0 stevel char pagbuf[PBLKSIZ]; 57 0 stevel char dirbuf[DBLKSIZ]; 58 0 stevel 59 0 stevel int dirf; 60 0 stevel int pagf; 61 0 stevel int dbrdonly; 62 0 stevel 63 0 stevel typedef struct 64 0 stevel { 65 0 stevel char *dptr; 66 0 stevel int dsize; 67 0 stevel } datum; 68 0 stevel 69 0 stevel #ifdef __STDC_ 70 0 stevel datum fetch(datum); 71 0 stevel datum makdatum(char *, int); 72 0 stevel datum firstkey(void); 73 0 stevel datum nextkey(datum); 74 0 stevel datum firsthash(long); 75 0 stevel long calchash(datum); 76 0 stevel long hashinc(long); 77 0 stevel #else 78 0 stevel datum fetch(); 79 0 stevel datum makdatum(); 80 0 stevel datum firstkey(); 81 0 stevel datum nextkey(); 82 0 stevel datum firsthash(); 83 0 stevel long calchash(); 84 0 stevel long hashinc(); 85 0 stevel #endif 86 0 stevel 87 0 stevel #ifdef __cplusplus 88 0 stevel } 89 0 stevel #endif 90 0 stevel 91 0 stevel #endif /* _RPCSVC_DBM_H */ 92