Mercurial > hg > openjdk > jigsaw > bdb
view src/env/env_sig.c @ 0:a1985f14b030
Initial load
author | chegar |
---|---|
date | Fri, 11 May 2012 10:42:02 +0100 |
parents | |
children |
line wrap: on
line source
/*- * DO NOT EDIT: automatically built by dist/s_sig. * * Copyright (c) 1996, 2012 Oracle and/or its affiliates. All rights reserved. * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this * particular file as subject to the "Classpath" exception as provided * by Oracle in the LICENSE file that accompanied this code. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. * * $Id$ */ #include "db_config.h" #include "db_int.h" #include "dbinc/db_page.h" #include "dbinc/btree.h" #include "dbinc/crypto.h" #include "dbinc/db_join.h" #include "dbinc/db_verify.h" #include "dbinc/hash.h" #include "dbinc/heap.h" #include "dbinc/lock.h" #include "dbinc/log_verify.h" #include "dbinc/mp.h" #include "dbinc/partition.h" #include "dbinc/qam.h" #include "dbinc/txn.h" /* * For a pure 32bit/64bit environment, we check all structures and calculate a * signature. For compatible environment, we only check the structures in * shared memory. */ #ifdef HAVE_MIXED_SIZE_ADDRESSING #define __STRUCTURE_COUNT 41 #else #define __STRUCTURE_COUNT (41 + 104) #endif /* * __env_struct_sig -- * Compute signature of structures. * * PUBLIC: u_int32_t __env_struct_sig __P((void)); */ u_int32_t __env_struct_sig() { u_short t[__STRUCTURE_COUNT + 5]; u_int i; i = 0; #define __ADD(s) (t[i++] = sizeof(struct s)) #ifdef HAVE_MUTEX_SUPPORT __ADD(__db_mutex_stat); #endif __ADD(__db_lock_stat); __ADD(__db_lock_hstat); __ADD(__db_lock_pstat); __ADD(__db_ilock); __ADD(__db_lock_u); __ADD(__db_lsn); __ADD(__db_log_stat); __ADD(__db_mpool_stat); __ADD(__db_rep_stat); __ADD(__db_repmgr_stat); __ADD(__db_seq_stat); __ADD(__db_bt_stat); __ADD(__db_h_stat); __ADD(__db_heap_stat); __ADD(__db_qam_stat); __ADD(__db_thread_info); __ADD(__db_lockregion); __ADD(__sh_dbt); __ADD(__db_lockobj); __ADD(__db_locker); __ADD(__db_lockpart); __ADD(__db_lock); __ADD(__log); __ADD(__mpool); __ADD(__db_mpool_fstat_int); __ADD(__mpoolfile); __ADD(__bh); #ifdef HAVE_MUTEX_SUPPORT __ADD(__db_mutexregion); #endif #ifdef HAVE_MUTEX_SUPPORT __ADD(__db_mutex_t); #endif __ADD(__db_reg_env); __ADD(__db_region); __ADD(__rep); __ADD(__db_txn_stat_int); __ADD(__db_txnregion); #ifndef HAVE_MIXED_SIZE_ADDRESSING __ADD(__db_dbt); __ADD(__db_lockreq); __ADD(__db_log_cursor); __ADD(__log_rec_spec); __ADD(__db_mpoolfile); __ADD(__db_mpool_fstat); __ADD(__db_txn); __ADD(__kids); __ADD(__my_cursors); __ADD(__femfs); __ADD(__db_preplist); __ADD(__db_txn_active); __ADD(__db_txn_stat); __ADD(__db_txn_token); __ADD(__db_repmgr_site); __ADD(__db_repmgr_conn_err); __ADD(__db_seq_record); __ADD(__db_sequence); __ADD(__db); __ADD(__cq_fq); __ADD(__cq_aq); __ADD(__cq_jq); __ADD(__db_heap_rid); __ADD(__dbc); __ADD(__key_range); __ADD(__db_compact); __ADD(__db_env); __ADD(__db_distab); __ADD(__db_logvrfy_config); __ADD(__db_channel); __ADD(__db_site); __ADD(__fn); __ADD(__db_msgbuf); __ADD(__pin_list); __ADD(__env_thread_info); __ADD(__flag_map); __ADD(__db_backup_handle); __ADD(__env); __ADD(__dbc_internal); __ADD(__dbpginfo); __ADD(__epg); __ADD(__cursor); __ADD(__btree); __ADD(__db_cipher); __ADD(__db_foreign_info); __ADD(__join_cursor); __ADD(__pg_chksum); __ADD(__pg_crypto); __ADD(__heaphdr); __ADD(__heaphdrsplt); __ADD(__pglist); __ADD(__vrfy_dbinfo); __ADD(__vrfy_pageinfo); __ADD(__vrfy_childinfo); __ADD(__db_globals); __ADD(__envq); __ADD(__heap); __ADD(__heap_cursor); __ADD(__db_locktab); __ADD(__db_entry); __ADD(__fname); __ADD(__db_log); __ADD(__hdr); __ADD(__log_persist); __ADD(__db_commit); __ADD(__db_filestart); __ADD(__log_rec_hdr); __ADD(__db_log_verify_info); __ADD(__txn_verify_info); __ADD(__lv_filereg_info); __ADD(__lv_filelife); __ADD(__lv_ckp_info); __ADD(__lv_timestamp_info); __ADD(__lv_txnrange); __ADD(__add_recycle_params); __ADD(__ckp_verify_params); __ADD(__db_mpool); __ADD(__db_mpreg); __ADD(__db_mpool_hash); __ADD(__bh_frozen_p); __ADD(__bh_frozen_a); #ifdef HAVE_MUTEX_SUPPORT __ADD(__db_mutexmgr); #endif __ADD(__fh_t); __ADD(__db_partition); __ADD(__part_internal); __ADD(__qcursor); __ADD(__mpfarray); __ADD(__qmpf); __ADD(__queue); __ADD(__qam_filelist); __ADD(__db_reg_env_ref); __ADD(__db_region_mem_t); __ADD(__db_reginfo_t); __ADD(__rep_waiter); __ADD(__db_rep); __ADD(__rep_lease_entry); __ADD(__txn_detail); __ADD(__db_txnmgr); __ADD(__db_commit_info); __ADD(__txn_logrec); #endif return (__ham_func5(NULL, t, i * sizeof(t[0]))); }