dbxtrn.h 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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: dbxtrn.h /main/2 1996/05/09 04:04:00 drk $ */
  24. /*
  25. * COMPONENT_NAME: austext
  26. *
  27. * FUNCTIONS: none
  28. *
  29. * ORIGINS: 157
  30. *
  31. */
  32. /*----------------------------------------------------------------------------
  33. dbxtrn.h: db_VISTA external data header file
  34. (This file is included by dbtype.h)
  35. (C) Copyright 1984 by Raima Corporation.
  36. ----------------------------------------------------------------------------*/
  37. /* ********************** EDIT HISTORY *******************************
  38. SCR DATE INI DESCRIPTION
  39. ----- --------- --- -----------------------------------------------------
  40. 423 22-Sep-88 RSC Cleanup file to compile under Lattice
  41. 368 23-Sep-88 RSC Changed defn of Last_mtype to match dbtype.h
  42. 439 17-Nov-88 RSC Integrate 3.10 branch (w/o windows) into main
  43. 440 13-Dec-88 RSC LR_LOCK was removed from db_global for general LM
  44. 532 06-Jan-89 RSC Fixed defns of rn_dba/type,db_name for ONE_DB
  45. 05-May-89 WLW Changed TASK_P to DB_TASK for query multi-tasking
  46. */
  47. /* Database Dictionary Tables */
  48. extern INT largest_page;
  49. extern INT old_size_ft;
  50. extern INT old_size_fd;
  51. extern INT old_size_st;
  52. extern INT old_size_mt;
  53. extern INT old_size_srt;
  54. extern INT old_size_kt;
  55. extern INT old_size_rt;
  56. extern INT old_no_of_dbs;
  57. extern char *crloc; /* location in page buffer of current record */
  58. typedef struct TASK_S {
  59. /* The following global variables came from dblfcns.c */
  60. int Dbopen; /* dbopen = 0 */
  61. char Dbuserid[FILENMLEN]; /* dbuserid = "" */
  62. char Dbdpath[FILENMLEN*2]; /* dbdpath = "" */
  63. char Dbfpath[FILENMLEN*2]; /* dbdpath = "" */
  64. const char *Trans_id; /* trans_id = NULL */
  65. char Dblog[FILENMLEN]; /* dblog = "" */
  66. /* The following global variables came from dio.c */
  67. BOOLEAN Cache_ovfl; /* cache_ovfl = FALSE */
  68. PGZERO_P Pgzero; /* database file page 0 array */
  69. /* The following global variables came from keyfcns.c */
  70. int No_of_keys; /* no_of_keys = 0 */
  71. KEY_INFO_P Key_info; /* key_info = NULL */
  72. KEY_TYPE Key_type;
  73. /* The following global variables came from netwdos.c */
  74. int Net_status;
  75. LONG Last_mtype;
  76. /* The following global variables came from options.c */
  77. int Dboptions; /* ifdef NO_TRANS: dboptions =
  78. DCHAINUSE | TRLOGGING
  79. else: dboptions = DCHAINUSE */
  80. /* The following global variables came from ovfcns.c */
  81. long Ov_initaddr; /* ov_initaddr = 0L */
  82. long Ov_rootaddr; /* ov_rootaddr = 0L */
  83. long Ov_nextaddr; /* ov_nextaddr = 0L */
  84. RI_ENTRY_P Root_ix;
  85. /* The following global variables came from renfiles.c */
  86. llist Ren_list; /* Ren_list = LLIST_INIT() */
  87. /* The following global variables came from inittab.h */
  88. INT Page_size;
  89. int Curr_db;
  90. DB_ENTRY *Curr_db_table;
  91. DB_ADDR Curr_rec; /* current record address */
  92. DB_ADDR_P Curr_own; /* current set owners array */
  93. DB_ADDR_P Curr_mem; /* current set members array */
  94. FILE_NO Ov_file;
  95. BOOLEAN Setdb_on;
  96. INT No_of_dbs;
  97. RN_ENTRY_P Rn_table;
  98. RN_ENTRY *Curr_rn_table;
  99. DB_ENTRY_P Db_table;
  100. FILE_ENTRY_P File_table;
  101. INT Size_ft;
  102. RECORD_ENTRY_P Record_table;
  103. INT Size_rt;
  104. SET_ENTRY_P Set_table;
  105. INT Size_st;
  106. MEMBER_ENTRY_P Member_table;
  107. INT Size_mt;
  108. SORT_ENTRY_P Sort_table;
  109. INT Size_srt;
  110. FIELD_ENTRY_P Field_table;
  111. INT Size_fd;
  112. KEY_ENTRY_P Key_table;
  113. INT Size_kt;
  114. int Lock_lvl;
  115. #define LOCK_STACK_SIZE 10
  116. int Lock_stack[LOCK_STACK_SIZE];
  117. CNTRY_TBL_P country_tbl;
  118. int ctbl_activ;
  119. char ctbpath[FILENMLEN];
  120. llist Sk_list;
  121. } TASK;
  122. /* Dynamically allocated global variables */
  123. #define app_locks db_global.App_locks.ptr
  124. #define excl_locks db_global.Excl_locks.ptr
  125. #define kept_locks db_global.Kept_locks.ptr
  126. #define rec_locks db_global.Rec_locks.ptr
  127. #define set_locks db_global.Set_locks.ptr
  128. #define key_locks db_global.Key_locks.ptr
  129. #define lock_pkt db_global.Lock_pkt.ptr
  130. #define free_pkt db_global.Free_pkt.ptr
  131. #define file_refs db_global.File_refs.ptr
  132. #define key_info db_global.Key_info.ptr
  133. #define curr_own db_global.Curr_own.ptr
  134. #define curr_mem db_global.Curr_mem.ptr
  135. #define rn_table db_global.Rn_table.ptr
  136. #define db_table db_global.Db_table.ptr
  137. #define file_table db_global.File_table.ptr
  138. #define record_table db_global.Record_table.ptr
  139. #define set_table db_global.Set_table.ptr
  140. #define member_table db_global.Member_table.ptr
  141. #define sort_table db_global.Sort_table.ptr
  142. #define field_table db_global.Field_table.ptr
  143. #define key_table db_global.Key_table.ptr
  144. #define pgzero db_global.Pgzero.ptr
  145. #define root_ix db_global.Root_ix.ptr
  146. /* Used in DIO.C and OVFCNS.C */
  147. #define ixpg_table Ixpg_table.ptr
  148. #define dbpgbuff Dbpgbuff.ptr
  149. #define ix_lookup Ix_lookup.ptr
  150. /* Non-dynamically allocated global variables */
  151. #define lock_tries db_global.Lock_tries
  152. #define dbwait_time db_global.Dbwait_time
  153. #define db_timeout db_global.Db_timeout
  154. #define dbopen db_global.Dbopen
  155. #define db_lockmgr db_global.Db_lockmgr
  156. #define dbuserid db_global.Dbuserid
  157. #define dbdpath db_global.Dbdpath
  158. #define dbfpath db_global.Dbfpath
  159. #define trans_id db_global.Trans_id
  160. #define dblog db_global.Dblog
  161. #define keyl_cnt db_global.Keyl_cnt
  162. #define lp_size db_global.Lp_size
  163. #define fp_size db_global.Fp_size
  164. #define session_active db_global.Session_active
  165. #define cache_ovfl db_global.Cache_ovfl
  166. #define no_of_keys db_global.No_of_keys
  167. #define key_type db_global.Key_type
  168. #define net_status db_global.Net_status
  169. #define last_mtype db_global.Last_mtype
  170. #define dboptions db_global.Dboptions
  171. #define ov_initaddr db_global.Ov_initaddr
  172. #define ov_rootaddr db_global.Ov_rootaddr
  173. #define ov_nextaddr db_global.Ov_nextaddr
  174. #define page_size db_global.Page_size
  175. #define curr_db db_global.Curr_db
  176. #define curr_db_table db_global.Curr_db_table
  177. #define curr_rec db_global.Curr_rec
  178. #define ov_file db_global.Ov_file
  179. #define setdb_on db_global.Setdb_on
  180. #define no_of_dbs db_global.No_of_dbs
  181. #define curr_rn_table db_global.Curr_rn_table
  182. #define size_ft db_global.Size_ft
  183. #define size_rt db_global.Size_rt
  184. #define size_st db_global.Size_st
  185. #define size_mt db_global.Size_mt
  186. #define size_srt db_global.Size_srt
  187. #define size_fd db_global.Size_fd
  188. #define size_kt db_global.Size_kt
  189. #define lock_lvl db_global.Lock_lvl
  190. #define lock_stack db_global.Lock_stack
  191. #define ren_list db_global.Ren_list
  192. #define sk_list db_global.Sk_list
  193. extern TASK db_global;
  194. extern int db_glob_init;
  195. /* vpp -nOS2 -dUNIX -nBSD -nVANILLA_BSD -nVMS -nMEMLOCK -nWINDOWS -nFAR_ALLOC -f/usr/users/master/config/nonwin dbxtrn.h */