home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 1 / GoldFishApril1994_CD2.img / d4xx / d473 / cnewssrc / cnews_src.lzh / include / dbz.h < prev    next >
C/C++ Source or Header  |  1990-12-23  |  853b  |  37 lines

  1. #ifndef __DBZ_H
  2. #define __DBZ_H
  3.  
  4. /* for dbm and dbz */
  5. typedef struct {
  6.     char *dptr;
  7.     int dsize;
  8. } datum;
  9.  
  10. /* standard dbm functions */
  11. extern int dbminit();
  12. extern datum fetch();
  13. extern int store();
  14. extern int delete();        /* not in dbz */
  15. extern datum firstkey();    /* not in dbz */
  16. extern datum nextkey();        /* not in dbz */
  17. extern int dbmclose();        /* in dbz, but not in old dbm */
  18.  
  19. /* new stuff for dbz */
  20. extern int dbzfresh();
  21. extern int dbzagain();
  22. extern datum dbzfetch();
  23. extern int dbzstore();
  24. extern int dbzsync();
  25. extern long dbzsize();
  26. extern int dbzincore();
  27. extern int dbzdebug();
  28.  
  29. /*
  30.  * In principle we could handle unlimited-length keys by operating a chunk
  31.  * at a time, but it's not worth it in practice.  Setting a nice large
  32.  * bound on them simplifies the code and doesn't hurt anything.
  33.  */
  34. #define DBZMAXKEY    255
  35.  
  36. #endif /* __DBZ_H */
  37.