/[pkg-firebird]/upstream/current/src/jrd/log2.h
ViewVC logotype

Contents of /upstream/current/src/jrd/log2.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 450 - (show annotations) (download)
Sat Aug 5 06:54:46 2006 UTC (6 years, 9 months ago) by dam-guest
File MIME type: text/plain
File size: 3767 byte(s)
Tag 2.0.0.12654 as the current upstream (prepare for svn-upgrade)
1 /*
2 * PROGRAM: REPLAY Debugging Utility
3 * MODULE: log2.h
4 * DESCRIPTION: Arguments for OSRI calls
5 *
6 * The contents of this file are subject to the Interbase Public
7 * License Version 1.0 (the "License"); you may not use this file
8 * except in compliance with the License. You may obtain a copy
9 * of the License at http://www.Inprise.com/IPL.html
10 *
11 * Software distributed under the License is distributed on an
12 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * rights and limitations under the License.
15 *
16 * The Original Code was created by Inprise Corporation
17 * and its predecessors. Portions created by Inprise Corporation are
18 * Copyright (C) Inprise Corporation.
19 *
20 * All Rights Reserved.
21 * Contributor(s): ______________________________________.
22 *
23 * 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
24 *
25 */
26
27 #ifndef JRD_LOG2_H
28 #define JRD_LOG2_H
29
30 /* This table will be used to pull off the argument types
31 for recording in the log. The status vector is assumed
32 as the first argument
33
34 Key to datatypes:
35
36 s = short by value
37 l = long by value
38 p = pointer
39 r = short by reference
40 b = buffer which has been preceded by a length of type s
41 n = possibly null-terminated buffer if preceding value is 0
42 f = definitely null-terminated buffer, no preceding length
43 d = double long, such as a blob id
44 t = transaction existence block
45 o = short which requires a buffer of the specified size to
46 be generated, to be filled in by the call
47 */
48
49 static const SCHAR arg_types1[log_max][10] = {
50 "snpsbs", /* attach_database */
51 "psbsb", /* blob_info */
52 "p", /* cancel_blob */
53 "p", /* close_blob */
54 "p", /* commit */
55 "ppsb", /* compile */
56 "pppd", /* create_blob */
57 "snpsbs", /* create_database */
58 "psbsb", /* database_info */
59 "p", /* detach */
60 "prsb", /* get_segment */
61 "pppd", /* open_blob */
62 "p", /* prepare */
63 "psb", /* put_segment */
64 "pssbs", /* receive */
65 "ppsb", /* reconnect */
66 "p", /* release_request */
67 "pssbsb", /* request_info */
68 "p", /* rollback */
69 "pssbs", /* send */
70 "ppssbs", /* start_and_send */
71 "pps", /* start */
72 "pst", /* start_multiple */
73 "psbsb", /* transaction_info */
74 "ps", /* unwind */
75
76 "p", /* handle_returned */
77 "lll", /* statistics */
78 "", /* error */
79
80 "snpsbf", /* attach2 */
81 "pp", /* cancel_events */
82 "p", /* commit_retaining */
83 "pppdsb", /* create_blob2 */
84 "snpsbsf", /* create_database2 */
85 "pppsbsbsb", /* get_slice */
86 "pppdsb", /* open_blob2 */
87 "psb", /* prepare2 */
88 "pppsbsbsb", /* put_slice */
89 "psb", /* que_events */
90 "psl", /* blob_seek */
91
92 "pro", /* get_segment2 */
93 "pppsbsbo", /* get_slice2 */
94 "psos", /* receive2 */
95 "psbo", /* blob_info2 */
96 "psbo", /* database_info2 */
97 "pssbo", /* request_info2 */
98 "psbo", /* transaction_info2 */
99
100 "ppsb", /* ddl */
101 "ppsbsbs", /* transact_request */
102 "p" /* drop_database */
103 };
104
105
106 /* this is the replay log filename definition */
107
108 #ifdef VMS
109 static const char* LOG_FILE_NAME = "[SYSMGR]replay.log";
110 #elif defined (WIN_NT)
111 static const char* LOG_FILE_NAME = "replay.log";
112 #else
113 static const char* LOG_FILE_NAME = FB_PREFIX "/replay.log";
114 #endif
115
116 /* these are the modes for opening the log file */
117
118 #if (defined WIN_NT)
119 static const char* MODE_READ = "rb";
120 static const char* MODE_WRITE = "wb";
121 static const char* MODE_APPEND = "ab";
122 #else
123 static const char* MODE_READ = "r";
124 static const char* MODE_WRITE = "w";
125 static const char* MODE_APPEND = "a";
126 #endif
127
128 #endif // JRD_LOG2_H
129

  ViewVC Help
Powered by ViewVC 1.1.5