2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: REPLAY Debugging Utility
|
2004-02-20 07:43:27 +01:00
|
|
|
* MODULE: log2.h
|
2001-05-23 15:26:42 +02:00
|
|
|
* DESCRIPTION: Arguments for OSRI calls
|
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
2002-10-31 06:06:02 +01:00
|
|
|
*
|
|
|
|
* 2002.10.30 Sean Leyne - Removed support for obsolete "PC_PLATFORM" define
|
|
|
|
*
|
2001-05-23 15:26:42 +02:00
|
|
|
*/
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
#ifndef JRD_LOG2_H
|
|
|
|
#define JRD_LOG2_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
|
|
|
/* This table will be used to pull off the argument types
|
|
|
|
for recording in the log. The status vector is assumed
|
|
|
|
as the first argument
|
|
|
|
|
|
|
|
Key to datatypes:
|
|
|
|
|
|
|
|
s = short by value
|
|
|
|
l = long by value
|
|
|
|
p = pointer
|
|
|
|
r = short by reference
|
|
|
|
b = buffer which has been preceded by a length of type s
|
|
|
|
n = possibly null-terminated buffer if preceding value is 0
|
|
|
|
f = definitely null-terminated buffer, no preceding length
|
|
|
|
d = double long, such as a blob id
|
|
|
|
t = transaction existence block
|
|
|
|
o = short which requires a buffer of the specified size to
|
|
|
|
be generated, to be filled in by the call
|
|
|
|
*/
|
|
|
|
|
2003-02-13 11:11:35 +01:00
|
|
|
static const SCHAR arg_types1[log_max][10] = {
|
2001-05-23 15:26:42 +02:00
|
|
|
"snpsbs", /* attach_database */
|
|
|
|
"psbsb", /* blob_info */
|
|
|
|
"p", /* cancel_blob */
|
|
|
|
"p", /* close_blob */
|
|
|
|
"p", /* commit */
|
|
|
|
"ppsb", /* compile */
|
|
|
|
"pppd", /* create_blob */
|
|
|
|
"snpsbs", /* create_database */
|
|
|
|
"psbsb", /* database_info */
|
|
|
|
"p", /* detach */
|
|
|
|
"prsb", /* get_segment */
|
|
|
|
"pppd", /* open_blob */
|
|
|
|
"p", /* prepare */
|
|
|
|
"psb", /* put_segment */
|
|
|
|
"pssbs", /* receive */
|
|
|
|
"ppsb", /* reconnect */
|
|
|
|
"p", /* release_request */
|
|
|
|
"pssbsb", /* request_info */
|
|
|
|
"p", /* rollback */
|
|
|
|
"pssbs", /* send */
|
|
|
|
"ppssbs", /* start_and_send */
|
|
|
|
"pps", /* start */
|
|
|
|
"pst", /* start_multiple */
|
|
|
|
"psbsb", /* transaction_info */
|
|
|
|
"ps", /* unwind */
|
|
|
|
|
|
|
|
"p", /* handle_returned */
|
|
|
|
"lll", /* statistics */
|
|
|
|
"", /* error */
|
|
|
|
|
|
|
|
"snpsbf", /* attach2 */
|
|
|
|
"pp", /* cancel_events */
|
|
|
|
"p", /* commit_retaining */
|
|
|
|
"pppdsb", /* create_blob2 */
|
|
|
|
"snpsbsf", /* create_database2 */
|
|
|
|
"pppsbsbsb", /* get_slice */
|
|
|
|
"pppdsb", /* open_blob2 */
|
|
|
|
"psb", /* prepare2 */
|
|
|
|
"pppsbsbsb", /* put_slice */
|
|
|
|
"psb", /* que_events */
|
|
|
|
"psl", /* blob_seek */
|
|
|
|
|
|
|
|
"pro", /* get_segment2 */
|
|
|
|
"pppsbsbo", /* get_slice2 */
|
|
|
|
"psos", /* receive2 */
|
|
|
|
"psbo", /* blob_info2 */
|
|
|
|
"psbo", /* database_info2 */
|
|
|
|
"pssbo", /* request_info2 */
|
|
|
|
"psbo", /* transaction_info2 */
|
|
|
|
|
|
|
|
"ppsb", /* ddl */
|
|
|
|
"ppsbsbs", /* transact_request */
|
|
|
|
"p" /* drop_database */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* this is the replay log filename definition */
|
|
|
|
|
|
|
|
#ifdef VMS
|
2004-05-06 20:09:24 +02:00
|
|
|
static const char* LOG_FILE_NAME = "[SYSMGR]replay.log";
|
|
|
|
#elif defined (WIN_NT)
|
|
|
|
static const char* LOG_FILE_NAME = "replay.log";
|
|
|
|
#else
|
|
|
|
static const char* LOG_FILE_NAME = FB_PREFIX "/replay.log";
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* these are the modes for opening the log file */
|
|
|
|
|
2002-10-31 06:06:02 +01:00
|
|
|
#if (defined WIN_NT)
|
2004-05-06 20:09:24 +02:00
|
|
|
static const char* MODE_READ = "rb";
|
|
|
|
static const char* MODE_WRITE = "wb";
|
|
|
|
static const char* MODE_APPEND = "ab";
|
|
|
|
#else
|
|
|
|
static const char* MODE_READ = "r";
|
|
|
|
static const char* MODE_WRITE = "w";
|
|
|
|
static const char* MODE_APPEND = "a";
|
2001-05-23 15:26:42 +02:00
|
|
|
#endif
|
|
|
|
|
2004-02-20 07:43:27 +01:00
|
|
|
#endif // JRD_LOG2_H
|
|
|
|
|