- 论坛徽章:
- 0
|
本帖最后由 三人行必有吾师 于 2012-05-18 21:00 编辑
2. 一些内部的头文件(安装后在Tuxedo的Include目录下看不到的)
比如“tlog.h”:- /* Copyright (c) 1998 BEA Systems, Inc.
- All rights reserved
- THIS IS UNPUBLISHED PROPRIETARY
- SOURCE CODE OF BEA Systems, Inc.
- The copyright notice above does not
- evidence any actual or intended
- publication of such source code.
- */
- /* Copyright 1996 BEA Systems, Inc. */
- /* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF */
- /* BEA Systems, Inc. */
- /* The copyright notice above does not evidence any */
- /* actual or intended publication of such source code. */
- /* Copyright (c) 1990 Unix System Laboratories, Inc.
- All rights reserved
- THIS IS UNPUBLISHED PROPRIETARY
- SOURCE CODE OF Unix System Laboratories, Inc.
- The copyright notice above does not
- evidence any actual or intended
- publication of such source code.
- */
- #ifndef TLOG_H
- #define TLOG_H
- /* #ident "@(#) tuxedo/include/tlog.h $Revision: 1.1 $" */
- #ifndef TMMACH_H
- #include <tmmach.h>
- #endif
- #ifndef NOWHAT
- static char h_tlog[] = "@(#) tuxedo/include/tlog.h $Revision: 1.1 $";
- #endif
- #include <Uunix.h>
- #include <tmstruct.h>
- #include <gpsys.h>
- /* TLOG constants */
- #define TLOGLRMGC -999999 /* magic number for the log records */
- #define TLOGMAXSIZE 2048 /* maximum number of pages/log */
- #define TLOGDFLSIZE 100 /* default number of pages/log */
- #define TLOGMAXLSN 30000000 /* the range of LSN for TM32I */
- #define TIND(p) ((p) / BITSPERLONG32)
- #define TOFST(p) ((p) % BITSPERLONG32)
- #define SET_BIT(b,p) (b[TIND((p))] |= (01 << ( BITSPERLONG32 - TOFST((p)) -1)))
- #define RESET_BIT(b,p) (b[TIND((p))] &= ~(01 << (BITSPERLONG32 - TOFST((p)) -1)))
- /* TLOG record - data part format */
- struct tlgrec_data_t {
- TM32I magic; /* magic number - TLOGLRMGC */
- TM32I tlg_version; /* version number */
- GTRID gtrid; /* global tran id */
- unsigned short count; /* number of entries in grpid array */
- GRPID loggrp; /* coordinator group id */
- GRPID grpid[TMGMAXGROUPS]; /* group id array */
- } ;
- #define TLGVERSION 60
- /* TLOG record - including both the log data and the TLOG control table */
- struct tlgrec_t {
- TM32I chksum; /* xor' whole record on TM32I basis */
- struct tlgrec_data_t data;
- TMTLGCTL ctl_tbl;
- } ;
- typedef struct tlgrec_t TLGREC;
- extern void _tmvtoc_errlog _((_TCADEF, char *));
- extern short _tmlocate0 _((_TCADEF, TM32U [], short, short));
- extern short _tmlocate1 _((_TCADEF, TM32U [], short, short));
- extern TM32I _tmcal_chksum _((_TCADEF, TM32I *, int));
- extern int _tlog_commit _((_TCADEF, GTRID *, GRPID, unsigned short,
- GRPID [], short *));
- extern int _tlog_eot _((_TCADEF, short));
- extern int _tlog_warmstart _((_TCADEF));
- extern int _tlog_create _((_TCADEF, char *, short, char *, long));
- extern int _tlog_destroy _((_TCADEF, char *, char *, long));
- extern int _tlog_reinit _((_TCADEF, char *, short, char *, long));
- extern int _tlog_start _((_TCADEF, int));
- extern void _tlog_stop _((_TCADEF, int));
- extern int _tlog_open _((_TCADEF, char *, char *, long, short, long));
- extern int _tlog_close _((_TCADEF, int));
- #endif
复制代码 同上,里面至今还清晰的保留了UNIX系统实验室的标记。。。。- /* Copyright (c) 1990 Unix System Laboratories, Inc.
- All rights reserved
- THIS IS UNPUBLISHED PROPRIETARY
- SOURCE CODE OF Unix System Laboratories, Inc.
- The copyright notice above does not
- evidence any actual or intended
- publication of such source code.
- */
复制代码 |
|