home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 26.ddi / root.3 / usr / ucbinclude / dbm.h < prev    next >
Encoding:
Text File  |  1990-12-08  |  1.5 KB  |  66 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10.  
  11. #ident    "@(#)//usr/ucbinclude/dbm.h.sl 1.1 4.0 12/08/90 59925 AT&T-USL"
  12.  
  13. /*******************************************************************
  14.  
  15.         PROPRIETARY NOTICE (Combined)
  16.  
  17. This source code is unpublished proprietary information
  18. constituting, or derived under license from AT&T's UNIX(r) System V.
  19. In addition, portions of such source code were derived from Berkeley
  20. 4.3 BSD under license from the Regents of the University of
  21. California.
  22.  
  23.  
  24.  
  25.         Copyright Notice 
  26.  
  27. Notice of copyright on this source code product does not indicate 
  28. publication.
  29.  
  30.     (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  31.     (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.               All rights reserved.
  33. ********************************************************************/ 
  34.  
  35. #define    PBLKSIZ    1024
  36. #define    DBLKSIZ    4096
  37. #define    BYTESIZ    8
  38. #define    NULL    ((char *) 0)
  39.  
  40. long    bitno;
  41. long    maxbno;
  42. long    blkno;
  43. long    hmask;
  44.  
  45. char    pagbuf[PBLKSIZ];
  46. char    dirbuf[DBLKSIZ];
  47.  
  48. int    dirf;
  49. int    pagf;
  50. int    dbrdonly;
  51.  
  52. typedef    struct
  53. {
  54.     char    *dptr;
  55.     int    dsize;
  56. } datum;
  57.  
  58. datum    fetch();
  59. datum    makdatum();
  60. datum    firstkey();
  61. datum    nextkey();
  62. datum    firsthash();
  63. long    calchash();
  64. long    hashinc();
  65.  
  66.