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 #ifdef SVID 10 #include <unistd.h> 11 #endif 12 13 #ifdef BSD42 14 #define SEEK_SET L_SET 15 #define memset(s,c,n) bzero(s, n) /* only when c is zero */ 16 #define memcpy(s1,s2,n) bcopy(s2, s1, n) 17 #define memcmp(s1,s2,n) bcmp(s1,s2,n) 18 #endif 19 20 /* 21 * important tuning parms (hah) 22 */ 23 24 #define SEEDUPS /* always detect duplicates */ 25 #define BADMESS /* generate a message for worst case: 26 cannot make room after SPLTMAX splits */ 27 /* 28 * misc 29 */ 30 #ifdef DEBUG 31 #define debug(x) printf x 32 #else 33 #define debug(x) 34 #endif 35