403 Forbidden


Disable Functions:
Path : /bin/
File Upload :
Command :
Current File : //bin/db47_codegen

ELF>l@@R@8	@@@@@@��88@8@@@�K�K �M�M`�M`p �M�M`�M`TT@T@DDP�td�I�I@�I@DDQ�tdR�td�M�M`�M`@@/lib64/ld-linux-x86-64.so.2GNU GNU8n�=ΒJ^�x���D4]�~�� @	!#BE���|�qX������@� ���9�vgs}Y* g��9 $o+M jK`��P`�0Q`��P`�h@��$@libdb-4.7.so_ITM_deregisterTMCloneTable__gmon_start___Jv_RegisterClasses_ITM_registerTMCloneTabledb_strerror__os_callocdb_version_init__config_split_fini__db_getulong__os_strdup__db_rpathlibpthread.so.0__errno_locationlibc.so.6fopenoptindputs__stack_chk_failstdinfgetsgetopt__fprintf_chkfclosestrcasecmp__ctype_b_locoptargstderrfreopenfwritestrchr__libc_start_main_edata__bss_start_end/usr/lib64GLIBC_2.2.5GLIBC_2.3GLIBC_2.3.4GLIBC_2.4� ui	��ii
�ti	�ii
�ui	��O`�O`
�O`�O`�O`P` P`(P`0P`8P`@P`HP`	PP`XP``P`
hP`pP`xP`�P`�P`�P`�P`�P`�P`�P`�P`�P`�P`H��H�}D H��t��H����5rD �%tD @�%rD h����%jD h�����%bD h����%ZD h����%RD h����%JD h����%BD h����%:D h�p����%2D h�`����%*D h	�P����%"D h
�@����%D h�0����%D h� ����%
D h
�����%D h�����%�C h���%�C h����%�C h�����%�C h����%�C h����%�C h����%�C h����%�C h���AWAVAUA��ATUH��SH��L�%�C I�$M�d$H�>�P���L�5�C H��I���H��I�H��H�D$E1�H�gH��D���1������t��V�� wHc�H��H�DB D;(�OH�LB I�H�2�H�81������H��[]A\A]A^A_�H�B H�H�D$�H��A H�5�H�H��A H�8�&���H���Z�������8���I��H��A I�H���L�H��A H�81������t���H��A H�5lL�8L���1�����tbH�5FL��������tWH�57L��������tDH�5(L������������A����1�1�1��:���H����1����E1����A����H�EI��f���H��@ H�8�
��uDI�<$�����E��t>A�������H��@ H�=��$�H������������u���H�|$��������^���1�I��^H��H���PTI��$@H�0$@H��
@����f����P`UH-�P`H��H��w]øH��t�]��P`�����P`UH-�P`H��H��H��H��?H�H�u]úH��t�]H�ƿ�P`����=�@ uUH���~���]��@ ��@H�=�= t�H��tU��M`H���]�{����s���AWH�[H�5�AVAUATUSH��H��H��HD�H������H��H�M@ ��H�=`H���������H�
'@ H�=�I����L�5B@ I�.H��t|�] ���aH�]8H��u,�]@H�H�=�? H��1�����H�[PH��t3D�] E��u�L�H�MH��H�=�? 1�����H�[PH��u�H�m(H��u�H�
? H�=��b��A���I�.H���UH�]8H��u6���K<D�C8H�bH�=3? �1�����H�[PH��tsH�{0t�H�H�=
? H�1�����D�S(E��t�H�H�=�> H�P�1����H��= H�H���H�81����H�[PH��u�H�m(H���A���M�>M����I�o8H��tt�L�e M��taM�.M��tYI�]8H��u(��H�{ H��tL��������t5H�[PH����H9�u�H�=:> H��M��M��L��1�����H�mPH��u�M�(M���v���H�
> H�=*���L�%�H�-���I��H��tgD�K E��uU�{�S���sD�[$H��D�SL�KID�L�1�H�|$H�=�= H�$H��H�t$D�\$ D�T$��\���1�H�[(H��u�H�
b= H�=r���$���H�
E= H�=��������M�.�M��M���M�l$8M���?��L�L�
�L��$H��$�H�T$P��H��$�H��$�L��H�
�H�D$ H��$�L��$�H�|$hID�H��$�D��$�H��$�H�T$@H��$�H�D$1�D��$�D��$�H�t$xH��$H�T$8H��$�D��$�D��$�H�t$pH��$�H�T$0H��$�D��$�H�l$XH�t$`L�|$H�H�T$(H�\$H�J3L�t$L�$L��$H�=�; ����M�mP1�M����A�EHI�U0��$�A�EDH�҉�$�A�E@��$��H��$�H��I�uI�<$L�vH��$�H�tH��H��$H�dI��H��$�I�U H�-PL�=BH����A�]M��L��$�L�5&H��$�A�]H��$�A�]H��$�I�]H��$�H����E�D$ E������L��L��L��$�����M�m(M���<������fDH�-�L�=�H���W���f.�L��H�iI�EM�$L��H��$�L��$�L��$L��H��$����H�WH��$�I���9���M�d$(M������H�
: H�=$������H�
�9 H�=8�x����H�
�9 H�=�������H�
�9 H�=&�e�����H�
�9 H�=q�o��b���H�=�9 H���1��X���H�=i9 H�2�1��>���H�
O9 H�=��J�����H�
29 H�= ������H�=9 H�� �1����H�=�8 H��"�1����H�=�8 H�b%�1���H�=�8 H�h&�1���H�=�8 H��&�1���H�=�8 H�d'�1��h�H�=y8 H�"(�1��N�H�=_8 H��(�1��4�H�
E8 H�=v)�����H�=(8 H��)�1���H�=8 H��*�1����H�
�7 H�=m+�O���H�=�7 H��+1����H�=�7 H��,�1���1�H��[]A\A]A^A_�H�MH�=�7 H�,�1��`��|����6�8@�[�I��H��7 H�9I�ؾH�H�P6 H�81�����AWAVAUI��ATU�SH���7 dH�%(H��$x1�H�D$ H�\$pH�$H�D$H�D$f�L��H���@�H�����
H�����H�����D�d$pE���O��I��H��f�I��E�'E���/I��DB u�A��#�E���A�����<#�}L������tH�����#u�H�4$L�����L�d$ H�5�-A��L�������A���hH�6 H�j.M��A��H�H��4 H�81���H��$xdH3%(�FH�Ĉ[]A\A]A^A_�A�<$}u�A�|$u�A��u���5 �����{�����uH�o5 �@ �������f5 fD���h����H�5-L���������A���'����=(5 ����H�5 H�PH�t$(1�������롐H�ڋ
H����������!�%����t������D�H�JHD��H��H)�H��������H��4 H�^,A��H�H��3 H�81��a�����H�5S,L�������JA���W����=X4 �J���L�%[4 L�L$1�H�T$(1�A�����I�4$�����K���H�T$H�4 1�L�L$I�4$1�A������PH�T$(���������H�T$H��3 1�L�L$I�4$1�A������PH�T$(�������H�T$H��3 �P�J���f.�H�D$0�8{������x�������3 ���r���H�
k3 1��H������Z���8���I��H�T3 H��H�H�&2 H�81�����D���H�5�*L������uCA��������=�2 ���H��2 �@���f�L�����L�����1���H�5�*L���Z����2A�������H�D$0�8{������x�������2 ���y�����ugH�
n2 1��H���������H�N2 H�P8H�@8�@ H�@(H�P@H�P2 H�JH�H0H�H�2 H��(H�BH�
�1 1��`��>��������H��1 H�t$(1�����������H��1 H��1 ��1 H�@PH�J@H�HXH�R@H�H��1 H��1 H�HPH�J@H�
)H�H�&���fDH�5n)L������u*A���[����=\1 �N���H�?1 �@(���H�58)L���������A�������=1 �
���H��0 �@@���f�H��0 H�t$(1�����������H��0 ��0 H�P8H�@8H�@(H�P@H��0 H�JH�H0H�H��0 H�H(H�JH�
g(H�H�+���H�5�(L������uXA���f����=g0 �Y���H�j0 L�L$1�H�T$(1�A�����H�0�����[���H�T$H�0 �P����f�H�5((L������tmH�5(L��������A������=�/ ����H��/ L�L$1�H�T$(1�A�����H�0��������H�T$H��/ �P�@���A��������=�/ �����H�r/ H�P �b�����H�5�'L������u'A���O����=P/ �B���H�3/ H�P0�#���H�5\'L�������u*A�������=/ ����H��. �@D���H�5&'L������uVA�������=�. ����H��. L�L$1�H�T$(1�A�����H�0��������H�T$H��. �P�4���H�5�&L���%�����A���k����=l. �^���L�%o. L�L$1�H�T$(1�A�����I�4$�����_���H�T$H�. 1�L�L$I�4$1�A������P<H�T$0������+���H�T$H��- �P8���H�53&L������u8A�������=�- �����H��- �@HH��- �@$�G���H�5�%L���8������A���~����=- �q���L�d$(H�5�%L��������H�5�%L�������thH�5�%L�������t=H�5�%L�����������H�5�$H�- 1�H�P������������H�5�$����, ���H�5r$�H�5`$�AWA��AVI��AUI��ATL�%x) UH�-x) SL)�1�H��H����H��t�L��L��D��A��H��H9�u�H��[]A\A]A^A_�ff.���f�H��H���c++cxxjavar%s: %s: %s
a:i:o:Vvusage: %s [-Vv] [-a c] [-i input] [-o output]
C++ and Java APIs not yet supported
{�e�e�e�e�e�e�e�e�e�e��e�e�e�e�e�e�e���e�e�e�e�e���e�e�e�e�e�e�-�application.c },
NULL_callbackbdb_&_compare_dbenvw }
};

#include <sys/types.h>
#include <sys/stat.h>

#include <errno.h>
#include <stdlib.h>
#include <string.h>

#ifdef _WIN32
#include <direct.h>

#define	mkdir(dir, perm)	_mkdir(dir)
#endif

#include "db.h"

/* Global environment and database handles for use by the application */

/* Public functions for use by the application */
int bdb_startup(void);
int bdb_shutdown(void);
DB_ENV	*%s_dbenv;			/* Database environment handle */
DB	*%s;			/* Database handle */
DB	*%s_%s;			/* Database handle */

/* DB_ENV initialization structures */
typedef struct {
	DB_ENV **envpp;
	char *home;
	u_int32_t gbytes;
	u_int32_t bytes;
	u_int32_t ncache;
	int private;
	int transaction;
} env_list_t;
static env_list_t env_list[] = {

static int
bdb_%s_callback(DB *secondary, const DBT *key, const DBT *data , DBT *result)
{
	secondary->errx(secondary,
	    "%s: missing callback comparison function");
	return (DB_DONOTINDEX);
}
Warning: you must write a comparison function for the %s database
	result->data = &((u_int8_t *)data->data)[%d];
	result->size = %d;
	return (0);
}

static int bdb_%s_compare(DB *, const DBT *, const DBT *);

static int
bdb_%s_compare(DB *dbp, const DBT *a, const DBT *b)
{
	%s ai, bi;

	memcpy(&ai, a->data, sizeof(ai));
	memcpy(&bi, b->data, sizeof(bi));
	return (ai < bi ? -1 : (ai > bi ? 1 : 0));
}
/* DB initialization structures */
typedef struct db_list_t {
	DB_ENV **envpp;
	DB **dbpp;
	char *name;
	DBTYPE type;
	u_int32_t extentsize;
	u_int32_t pagesize;
	u_int32_t re_len;
	int (*key_compare)(DB *, const DBT *, const DBT *);
	DB **primaryp;
	int (*secondary_callback)(DB *, const DBT *, const DBT *, DBT *);
	int dupsort;
	int recnum;
	int transaction;
} db_list_t;
static db_list_t db_list[] = {
%s	{ &%s_dbenv, "%s", %lu, %lu, %lu, %d, %d#ifdef BUILD_STANDALONE
int
main()
{
	return (bdb_startup() && bdb_shutdown() ? EXIT_FAILURE : EXIT_SUCCESS);
}
#endif

static int bdb_env_startup(env_list_t *);
static int bdb_env_shutdown(env_list_t *);
static int bdb_db_startup(db_list_t *);
static int bdb_db_shutdown(db_list_t *);

/*
 * bdb_startup --
 *	Start up the environments and databases.
 */
int
bdb_startup()
{
	u_int i;

	/* Open environments. */
	for (i = 0; i < sizeof(env_list) / sizeof(env_list[0]); ++i)
		if (bdb_env_startup(&env_list[i]))
			return (1);
	/* Open primary databases. */
	for (i = 0; i < sizeof(db_list) / sizeof(db_list[0]); ++i)
		if (db_list[i].primaryp == NULL &&
		    bdb_db_startup(&db_list[i]))
			return (1);
	/* Open secondary databases. */
	for (i = 0; i < sizeof(db_list) / sizeof(db_list[0]); ++i)
		if (db_list[i].primaryp != NULL &&
		    bdb_db_startup(&db_list[i]))
			return (1);
	return (0);
}

/*
 * bdb_shutdown --
 *	Shut down the environments and databases.
 */
int
bdb_shutdown()
{
	u_int i;

	/* Close secondary databases. */
	for (i = 0; i < sizeof(db_list) / sizeof(db_list[0]); ++i)
		if (db_list[i].primaryp != NULL &&
		    bdb_db_shutdown(&db_list[i]))
			return (1);
	/* Close primary databases. */
	for (i = 0; i < sizeof(db_list) / sizeof(db_list[0]); ++i)
		if (db_list[i].primaryp == NULL &&
		    bdb_db_shutdown(&db_list[i]))
			return (1);
	/* Close environments. */
	for (i = 0; i < sizeof(env_list) / sizeof(env_list[0]); ++i)
		if (bdb_env_shutdown(&env_list[i]))
			return (1);
	return (0);
}

static int
bdb_env_startup(env_list_t *ep)
{
	struct stat sb;
	DB_ENV *dbenv;
	u_int32_t open_flags;
	int ret;

	/*
	 * If the directory doesn't exist, create it with permissions limited
	 * to the owner.  Assume errors caused by the directory not existing;
	 * we'd like to avoid interpreting system errors and it won't hurt to
	 * attempt to create an existing directory.
	 *
	 * !!!
	 * We use octal for the permissions, nothing else is portable.
	 */
	if (stat(ep->home, &sb) != 0)
		(void)mkdir(ep->home,  0700);

	/*
	 * If the environment is not transactional, remove and re-create it.
	 */
	if (!ep->transaction) {
		if ((ret = db_env_create(&dbenv, 0)) != 0) {
			fprintf(stderr, "db_env_create: %%s", db_strerror(ret));
			return (1);
		}
		if ((ret = dbenv->remove(dbenv, ep->home, DB_FORCE)) != 0) {
			dbenv->err(dbenv, ret,
			    "DB_ENV->remove: %%s", ep->home);
			goto err;
		}
	}

	/*
	 * Create the DB_ENV handle and initialize error reporting.
	 */
	if ((ret = db_env_create(&dbenv, 0)) != 0) {
		fprintf(stderr, "db_env_create: %%s", db_strerror(ret));
		return (1);
	}
	dbenv->set_errpfx(dbenv, ep->home);
	dbenv->set_errfile(dbenv, stderr);

	 /* Configure the cache size. */
	if ((ep->gbytes != 0 || ep->bytes != 0) &&
	    (ret = dbenv->set_cachesize(dbenv,
	    ep->gbytes, ep->bytes, ep->ncache)) != 0) {
		dbenv->err(dbenv, ret, "DB_ENV->set_cachesize");
		goto err;
	}

	/*
	 * Open the environment.
	 */
	open_flags = DB_CREATE | DB_INIT_MPOOL | DB_THREAD;
	if (ep->private)
		open_flags |= DB_PRIVATE;
	if (ep->transaction)
		open_flags |= DB_INIT_LOCK |
		    DB_INIT_LOG | DB_INIT_TXN | DB_RECOVER;
	if ((ret = dbenv->open(dbenv, ep->home, open_flags, 0)) != 0) {
		dbenv->err(dbenv, ret, "DB_ENV->open: %%s",  ep->home);
		goto err;
	}

	*ep->envpp = dbenv;
	return (0);

err:	(void)dbenv->close(dbenv, 0);
	return (1);
}

static int
bdb_db_startup(db_list_t *dp)
{
	DB_ENV *dbenv;
	DB *dbp;
	int ret;

	dbenv = dp->envpp == NULL ? NULL : *dp->envpp;

	/*
	 * If the database is not transactional, remove it and re-create it.
	 */
	if (!dp->transaction) {
		if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
			if (dbenv == NULL)
				fprintf(stderr,
				    "db_create: %%s\n", db_strerror(ret));
			else
				dbenv->err(dbenv, ret, "db_create");
			return (1);
		}
		if ((ret = dbp->remove(
		    dbp, dp->name, NULL, 0)) != 0 && ret != ENOENT) {
			if (dbenv == NULL)
				fprintf(stderr,
				    "DB->remove: %%s: %%s\n",
				    dp->name, db_strerror(ret));
			else
				dbenv->err(
				    dbenv, ret, "DB->remove: %%s", dp->name);
			return (1);
		}
	}

	if ((ret = db_create(&dbp, dbenv, 0)) != 0) {
		if (dbenv == NULL)
			fprintf(stderr, "db_create: %%s\n", db_strerror(ret));
		else
			dbenv->err(dbenv, ret, "db_create");
		return (1);
	}
	if (dbenv == NULL) {
		dbp->set_errpfx(dbp, dp->name);
		dbp->set_errfile(dbp, stderr);
	}

	if (dp->dupsort && (ret = dbp->set_flags(dbp, DB_DUPSORT)) != 0) {
		dbp->err(dbp, ret, "DB->set_flags: DB_DUPSORT: %%s", dp->name);
		goto err;
	}

	if (dp->recnum && (ret = dbp->set_flags(dbp, DB_RECNUM)) != 0) {
		dbp->err(dbp, ret, "DB->set_flags: DB_RECNUM: %%s", dp->name);
		goto err;
	}

	if (dp->extentsize != 0 &&
	    (ret = dbp->set_q_extentsize(dbp, dp->extentsize)) != 0) {
		dbp->err(dbp, ret,
		    "DB->set_q_extentsize: %%lu: %%s",
		    (u_long)dp->extentsize, dp->name);
		goto err;
	}

	if (dp->pagesize != 0 &&
	    (ret = dbp->set_pagesize(dbp, dp->pagesize)) != 0) {
		dbp->err(dbp, ret,
		    "DB->set_pagesize: %%lu: %%s",
		    (u_long)dp->pagesize, dp->name);
		goto err;
	}

	if (dp->re_len != 0 &&
	    (ret = dbp->set_re_len(dbp, dp->re_len)) != 0) {
		dbp->err(dbp, ret,
		    "DB->set_re_len: %%lu: %%s",
		    (u_long)dp->re_len, dp->name);
		goto err;
	}

	if (dp->key_compare != NULL &&
	    (ret = dbp->set_bt_compare(dbp, dp->key_compare)) != 0) {
		dbp->err(dbp, ret, "DB->set_bt_compare");
		goto err;
	}

	if ((ret = dbp->open(dbp, NULL, dp->name, NULL, dp->type,
	    (dp->transaction ? DB_AUTO_COMMIT : 0) |
	    DB_CREATE | DB_THREAD, 0)) != 0) {
		dbp->err(dbp, ret, "DB->open: %%s", dp->name);
		goto err;
	}

	if (dp->primaryp != NULL &&
	    (ret = dbp->associate(*dp->primaryp,
	    NULL, dbp, dp->secondary_callback, DB_CREATE)) != 0) {
		dbp->err(dbp, ret, "DB->associate: %%s", dp->name);
		goto err;
	}

	*dp->dbpp = dbp;
	return (0);

err:	(void)dbp->close(dbp, 0);
	return (1);
}

static int
bdb_env_shutdown(env_list_t *ep)
{
	DB_ENV *dbenv;
	int ret;

	dbenv = ep->envpp == NULL ? NULL : *ep->envpp;
	ret = 0;

	if (dbenv != NULL && (ret = dbenv->close(dbenv, 0)) != 0)
		fprintf(stderr,
		    "DB_ENV->close: %%s: %%s\n", ep->home, db_strerror(ret));
	return (ret == 0 ? 0 : 1);
}

static int
bdb_db_shutdown(db_list_t *dp)
{
	DB_ENV *dbenv;
	DB *dbp;
	int ret;

	dbenv = dp->envpp == NULL ? NULL : *dp->envpp;
	dbp = *dp->dbpp;
	ret = 0;

	/*
	 * If the database is transactionally protected, close without writing;
	 * dirty pages; otherwise, flush dirty pages to disk.
	 */
	if (dbp != NULL &&
	    (ret = dbp->close(dbp, dp->transaction ? DB_NOSYNC : 0)) != 0) {
		if (dbenv == NULL)
			fprintf(stderr,
			    "DB->close: %%s: %%s\n", dp->name, db_strerror(ret));
		else
			dbenv->err(dbenv, ret, "DB->close: %%s", dp->name);
	}
	return (ret == 0 ? 0 : 1);
}
%s	{ %s%s%s, &%s%s%s, "%s", %s, %lu, %lu, %lu,
		%s%s%s, %s%s%s%s, %s%s%s, %d, %d, %dDB_BTREEDB_HASHDB_QUEUEDB_RECNO%s: %d: line too longenvironment.homecachesizeprivatedatabasecustomdupsortextentsizekey_typepagesizeprimaryrecnumre_lensecondary_offsettransactionbtreehashqueuerecno%s: line %d: %s: invalid input
;D����������`���0��X�������zRx�t��*zRx�$h����FJw�?;*3$"LD���\B�B�B �E(�A0�D8�DP�
8A0A(B BBBAL����Y	B�P�B �B(�A0�A8�J��
8A0A(B BBBAL����p
B�B�B �E(�A0�F8�G�o
8A0A(B BBBAD4���eB�E�E �E(�H0�H8�M@l8A0A(B BBB|��0@@���h@
�$@�M`�M`���o�@0@�@
�P`(@	@�@x	���oX@���o�o@�M`�@�@�@�@�@�@@@&@6@F@V@f@v@�@�@�@�@�@�@�@�@
@GCC: (GNU) 4.8.2 20140120 (Red Hat 4.8.2-16).shstrtab.interp.note.ABI-tag.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.text.fini.rodata.eh_frame_hdr.eh_frame.init_array.fini_array.jcr.dynamic.got.got.plt.data.bss.comment8@8T@T !t@t$4���o�@�8>�@�`F0@0�N���o@H[���oX@Xpj�@�xt@	@@	(~h@hy�@���
@
���$@�$	��$@�$�$��I@�ID��I@�I���M`�M��M`�M��M`�M��M`�M��O`�O(�P`P���P`�P��P`�PP�0�P-Q�

404 Not Found
[ LogOut ]