📄 pcsrestore.pc
字号:
/*
* File name : PCSRestore.pc
* Module ID : MD-P21-01
* Module Name : PCSRestore.c
* Purpose : Process the individual type files in "temp" directory when startup.
* : Delete records that were not processed completely
* Author : Mr. Zhujingkun
* Date Created : 1999,07,29
* Version : Version 1.0
* Environment : Digital UNIX
* Portability : UNIX Platform
* Warnings : no
* References :
* Calling Syntax : PCSRestore
* Parameters : None
* Returns : void
* Calling Function: InitPCSRestore(), EndPCSRestore(), SndLogRestore(), RcvLogRestore()
*
* Called Functions: When system startup
* Datastores and usages:
* Report : None
* Screens : None
* Messages Files : None
* Change Log :
* Change No. 01 :
*/
#include "stdlib.h"
#include "stdio.h"
#include "unistd.h"
#include "signal.h"
#include "PCSRestore.h"
#include "PCSRestoreapi.h"
#include "errlog.h"
EXEC SQL INCLUDE sqlca;
void main()
{
signal( SIGTERM, Terminate );
InitPCSRestore();
if( SndLogRestore() < 0 ) /*Error occurs*/
{
/* ProcessError(LOG_ERROR, "PCSRestore: this is Error message, Cannot do--SndLogRestore!\n" );*/
ErrorLog("PCSRestore: this is Error message, Cannot do--SndLogRestore!\n");
}
if( RcvLogRestore() < 0 )
{
/* ProcessError(LOG_ERROR, "PCSRestore: this is Error message, Cannot do--RcvLogRestore!\n" );*/
ErrorLog("PCSRestore: this is Error message, Cannot do--RcvLogRestore!\n");
}
if( RestoreIndividualFiles() < 0 ) /*Error occurs*/
{
/* ProcessError(LOG_ERROR, "PCSRestore: this is Error message, Cannot do--RestoreIndividualFiles!\n" );*/
ErrorLog("PCSRestore: this is Error message, Cannot do--RestoreIndividualFiles!\n");
}
EndPCSRestore();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -