trxlog.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * CDE - Common Desktop Environment
  3. *
  4. * Copyright (c) 1993-2012, The Open Group. All rights reserved.
  5. *
  6. * These libraries and programs are free software; you can
  7. * redistribute them and/or modify them under the terms of the GNU
  8. * Lesser General Public License as published by the Free Software
  9. * Foundation; either version 2 of the License, or (at your option)
  10. * any later version.
  11. *
  12. * These libraries and programs are distributed in the hope that
  13. * they will be useful, but WITHOUT ANY WARRANTY; without even the
  14. * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. * PURPOSE. See the GNU Lesser General Public License for more
  16. * details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with these libraries and programs; if not, write
  20. * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  21. * Floor, Boston, MA 02110-1301 USA
  22. */
  23. /* $XConsortium: trxlog.h /main/2 1996/05/09 04:20:43 drk $ */
  24. /*
  25. * COMPONENT_NAME: austext
  26. *
  27. * FUNCTIONS: BITMAP_SIZE
  28. * BM_BASE
  29. * IX_BASE
  30. * IX_SIZE
  31. * PZ_BASE
  32. *
  33. * ORIGINS: 157
  34. *
  35. */
  36. /* ********************** EDIT HISTORY *******************************
  37. SCR DATE INI DESCRIPTION
  38. ----- --------- --- -----------------------------------------------------
  39. 611 21-Feb-89 RSC The defn of BUI for unix and vms needs parenthesis
  40. */
  41. /* trxlog.h - header file to define structures, constants, etc. for the
  42. memory cache overflow and transaction log file control
  43. ==========================================================================
  44. */
  45. /*
  46. The following constants control the functioning of the cache overflow
  47. and transaction logging processes
  48. BUI The number of bits in an unsigned int
  49. IX_PAGESIZE The size (in bytes) of an index page
  50. IX_EPP The number of entries that will fit on an index page
  51. BITMAP_SIZE The size of the index bitmap (in unsigned int units)
  52. IX_SIZE The number of index pages needed to control the db pages
  53. OADDR_OF_IXP Calculates the overflow file address of an index page #
  54. ==========================================================================
  55. */
  56. /* (BITS(unsigned int)) */
  57. #define BUI (8*sizeof(unsigned int))
  58. /*
  59. ==========================================================================
  60. */
  61. /* page zero table entry */
  62. #define PGZEROSZ (2*sizeof(F_ADDR)+sizeof(ULONG))
  63. typedef struct PGZERO_S {
  64. F_ADDR pz_dchain; /* delete chain pointer */
  65. F_ADDR pz_next; /* next available record number */
  66. ULONG pz_timestamp; /* file's timestamp value */
  67. BOOLEAN pz_modified; /* TRUE if page zero has been modified */
  68. } PGZERO;
  69. /* binary search lookup table entry */
  70. /* Maximum number of transactions which can commit a time */
  71. #define TAFLIMIT 1
  72. #define TRXLOG_H
  73. /* End - trxlog.h */
  74. /* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin trxlog.h */