home *** CD-ROM | disk | FTP | other *** search
/ PC World Plus! (NZ) 2001 October / PCW1001.iso / Linux / apache / apache_1.3.20-win32-no_src-r2.msi / Data.Cab / F160764_sdbm_tune.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-15  |  536 b   |  27 lines

  1. /*
  2.  * sdbm - ndbm work-alike hashed database library
  3.  * tuning and portability constructs [not nearly enough]
  4.  * author: oz@nexus.yorku.ca
  5.  */
  6.  
  7. #define BYTESIZ        8
  8.  
  9. /*
  10.  * important tuning parms (hah)
  11.  */
  12.  
  13. #define SEEDUPS            /* always detect duplicates */
  14. #define BADMESS            /* generate a message for worst case:
  15.                    cannot make room after SPLTMAX splits */
  16. /*
  17.  * misc
  18.  */
  19. #ifdef DEBUG
  20. #define debug(x)    printf x
  21. #else
  22. #define debug(x)
  23. #endif
  24.  
  25. int sdbm_fd_lock(int fd, int readonly);
  26. int sdbm_fd_unlock(int fd);
  27.