1 /* error.c - BDB errcall routine */
2 /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/error.c,v 1.18.2.3 2008/02/11 23:26:45 kurt Exp $ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 2000-2008 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in the file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
20 #include <ac/string.h>
25 #if DB_VERSION_FULL < 0x04030000
26 void bdb_errcall( const char *pfx
, char * msg
)
28 void bdb_errcall( const DB_ENV
*env
, const char *pfx
, const char * msg
)
35 Debug( LDAP_DEBUG_ANY
, "bdb(%s): %s\n", pfx
, msg
, 0 );
38 #if DB_VERSION_FULL >= 0x04030000
39 void bdb_msgcall( const DB_ENV
*env
, const char *msg
)
45 Debug( LDAP_DEBUG_TRACE
, "bdb: %s\n", msg
, 0, 0 );
54 char *ebcdic_dberror( int rc
)
56 static char msg
[1024];
58 strcpy( msg
, db_strerror( rc
) );