home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / Headers / bsd / dbm.h < prev    next >
Text File  |  1996-11-15  |  871b  |  41 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. #ifndef __cplusplus
  32. int    delete (datum key);
  33. #endif
  34. #endif __STRICT_BSD__
  35. #if 0
  36. datum    makdatum();
  37. datum    firsthash();
  38. long    calchash();
  39. long    hashinc();
  40. #endif
  41.