home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / dbm.h < prev    next >
Text File  |  1991-07-15  |  844b  |  39 lines

  1. /*
  2.  * Copyright (c) 1980 Regents of the University of California.
  3.  * All rights reserved.  The Berkeley software License Agreement
  4.  * specifies the terms and conditions for redistribution.
  5.  *
  6.  *    @(#)dbm.h    5.1 (Berkeley) 3/27/86
  7.  */
  8.  
  9. #ifndef NULL
  10. /*
  11.  * this is lunacy, we no longer use it (and never should have
  12.  * unconditionally defined it), but, this whole file is for
  13.  * backwards compatability - someone may rely on this.
  14.  */
  15. #define    NULL    ((char *) 0)
  16. #endif
  17.  
  18. #import <ndbm.h>
  19.  
  20. #ifdef __STRICT_BSD__
  21. datum    fetch();
  22. datum    firstkey();
  23. datum    nextkey();
  24. #else
  25. int    dbminit(char *file);
  26. int    dbmclose(void);
  27. datum    fetch(datum key);
  28. datum    firstkey(void);
  29. datum    nextkey(datum key);
  30. int    store (datum key, datum content);
  31. int    delete (datum key);
  32. #endif __STRICT_BSD__
  33. #if 0
  34. datum    makdatum();
  35. datum    firsthash();
  36. long    calchash();
  37. long    hashinc();
  38. #endif
  39.