📄 error.c
字号:
/* error.c - BDB errcall routine *//* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/error.c,v 1.15.2.4 2007/01/02 21:44:00 kurt Exp $ *//* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2000-2007 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only as authorized by the OpenLDAP * Public License. * * A copy of this license is available in the file LICENSE in the * top-level directory of the distribution or, alternatively, at * <http://www.OpenLDAP.org/license.html>. */#include "portable.h"#include <stdio.h>#include <ac/string.h>#include "slap.h"#include "back-bdb.h"#if DB_VERSION_FULL < 0x04030000void bdb_errcall( const char *pfx, char * msg )#elsevoid bdb_errcall( const DB_ENV *env, const char *pfx, const char * msg )#endif{#ifdef HAVE_EBCDIC if ( msg[0] > 0x7f ) __etoa( msg );#endif Debug( LDAP_DEBUG_ANY, "bdb(%s): %s\n", pfx, msg, 0 );}#if DB_VERSION_FULL >= 0x04030000void bdb_msgcall( const DB_ENV *env, const char *msg ){#ifdef HAVE_EBCDIC if ( msg[0] > 0x7f ) __etoa( msg );#endif Debug( LDAP_DEBUG_TRACE, "bdb: %s\n", msg, 0, 0 );}#endif#ifdef HAVE_EBCDIC#undef db_strerror/* Not re-entrant! */char *ebcdic_dberror( int rc ){ static char msg[1024]; strcpy( msg, db_strerror( rc ) ); __etoa( msg ); return msg;}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -