version 1.17, 2011/12/01 23:46:26 |
version 1.21, 2011/12/03 18:47:09 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
|
#ifdef HAVE_CONFIG_H |
|
#include "config.h" |
|
#endif |
|
|
#include <assert.h> |
#include <assert.h> |
#include <fcntl.h> |
#include <fcntl.h> |
#include <regex.h> |
#include <regex.h> |
|
|
#include <string.h> |
#include <string.h> |
#include <unistd.h> |
#include <unistd.h> |
|
|
#include <arpa/inet.h> |
#if defined(__linux__) |
|
# include <endian.h> |
#ifdef __linux__ |
|
# include <db_185.h> |
# include <db_185.h> |
|
#elif defined(__APPLE__) |
|
# include <libkern/OSByteOrder.h> |
|
# include <db.h> |
#else |
#else |
# include <db.h> |
# include <db.h> |
#endif |
#endif |
Line 177 btree_read(const DBT *k, const DBT *v, |
|
Line 183 btree_read(const DBT *k, const DBT *v, |
|
|
|
vp = v->data; |
vp = v->data; |
norm_string((const char *)k->data, mc, buf); |
norm_string((const char *)k->data, mc, buf); |
dbv->rec = ntohl(vp->rec); |
dbv->rec = betoh32(vp->rec); |
dbv->mask = vp->mask; |
dbv->mask = betoh64(vp->mask); |
return(1); |
return(1); |
} |
} |
|
|