Loading...
--- Libc/Libc-391/include/db.h
+++ Libc/Libc-320.1.3/include/db.h
@@ -123,11 +123,11 @@
typedef struct __db {
DBTYPE type; /* Underlying db type. */
int (*close)(struct __db *);
- int (*del)(const struct __db *, const DBT *, unsigned int);
- int (*get)(const struct __db *, const DBT *, DBT *, unsigned int);
- int (*put)(const struct __db *, DBT *, const DBT *, unsigned int);
- int (*seq)(const struct __db *, DBT *, DBT *, unsigned int);
- int (*sync)(const struct __db *, unsigned int);
+ int (*del)(const struct __db *, const DBT *, u_int);
+ int (*get)(const struct __db *, const DBT *, DBT *, u_int);
+ int (*put)(const struct __db *, DBT *, const DBT *, u_int);
+ int (*seq)(const struct __db *, DBT *, DBT *, u_int);
+ int (*sync)(const struct __db *, u_int);
void *internal; /* Access method private. */
int (*fd)(const struct __db *);
} DB;
@@ -138,16 +138,16 @@
/* Structure used to pass parameters to the btree routines. */
typedef struct {
#define R_DUP 0x01 /* duplicate keys */
- unsigned long flags;
- unsigned int cachesize; /* bytes to cache */
- int maxkeypage; /* maximum keys per page */
- int minkeypage; /* minimum keys per page */
- unsigned int psize; /* page size */
- int (*compare) /* comparison function */
- (const DBT *, const DBT *);
- size_t (*prefix) /* prefix function */
- (const DBT *, const DBT *);
- int lorder; /* byte order */
+ u_long flags;
+ u_int cachesize; /* bytes to cache */
+ int maxkeypage; /* maximum keys per page */
+ int minkeypage; /* minimum keys per page */
+ u_int psize; /* page size */
+ int (*compare) /* comparison function */
+ (const DBT *, const DBT *);
+ size_t (*prefix) /* prefix function */
+ (const DBT *, const DBT *);
+ int lorder; /* byte order */
} BTREEINFO;
#define HASHMAGIC 0x061561
@@ -155,10 +155,10 @@
/* Structure used to pass parameters to the hashing routines. */
typedef struct {
- unsigned int bsize; /* bucket size */
- unsigned int ffactor; /* fill factor */
- unsigned int nelem; /* number of elements */
- unsigned int cachesize; /* bytes to cache */
+ u_int bsize; /* bucket size */
+ u_int ffactor; /* fill factor */
+ u_int nelem; /* number of elements */
+ u_int cachesize; /* bytes to cache */
u_int32_t /* hash function */
(*hash)(const void *, size_t);
int lorder; /* byte order */
@@ -169,12 +169,12 @@
#define R_FIXEDLEN 0x01 /* fixed-length records */
#define R_NOKEY 0x02 /* key not required */
#define R_SNAPSHOT 0x04 /* snapshot the input */
- unsigned long flags;
- unsigned int cachesize; /* bytes to cache */
- unsigned int psize; /* page size */
- int lorder; /* byte order */
- size_t reclen; /* record length (fixed-length records) */
- unsigned char bval; /* delimiting byte (variable-length records */
+ u_long flags;
+ u_int cachesize; /* bytes to cache */
+ u_int psize; /* page size */
+ int lorder; /* byte order */
+ size_t reclen; /* record length (fixed-length records) */
+ u_char bval; /* delimiting byte (variable-length records */
char *bfname; /* btree file name */
} RECNOINFO;