
#include "sqlbif.h"
#include "libutil.h"
#ifdef WIN32
# include "wiservic.h"
#endif

#include "zlib.h"

#include "recovery.h"

#include "security.h"


#ifdef WIN32
#include <windows.h>
#define HAVE_DIRECT_H
#endif

#ifdef HAVE_DIRECT_H
#include <direct.h>
#include <io.h>
#define mkdir(p,m)	_mkdir (p)
#define FS_DIR_MODE	0
#define PATH_MAX	 MAX_PATH
#define get_cwd(p,l)	_get_cwd (p,l)
#else
#include <dirent.h>
#define FS_DIR_MODE	 (S_IRWXU | S_IRWXG)
#endif

#undef DBG_BREAKPOINTS
#undef INC_DEBUG

//#define OBACKUP_TRACE

typedef struct ob_err_ctx_s
{
  int		oc_inx;
  char		oc_file[FILEN_BUFSIZ];
} ob_err_ctx_t;

ol_backup_ctx_t bp_ctx = {
  {
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
# include " sqlbif.h " 
 # include " libutil.h " 
 # ifdef WIN32 
 # include " wiservic.h " 
 # endif 

 # include " zlib.h " 

 # admit " recovery.h " 

 # admit " security.h " 


 # ifdef WIN32 
 # admit < windows.h > 
 # define HAVE_DIRECT_H 
 # endif 

 # ifdef HAVE_DIRECT_H 
 # include < direct.h > 
 # include < io.h > 
 # define mkdir(p, m) 	 _ mkdir (phosphorus) 
 # define FS_DIR_MODE 	 0 
 # define PATH_MAX 	  MAX_PATH 
 # define get_cwd(p, l) 	 _ get_cwd (p, l) 
 # else 
 # admit < dirent.h > 
 # specify FS_DIR_MODE 	  (S_IRWXU | S_IRWXG) 
 # endif 

 # undef DBG_BREAKPOINTS 
 # undef INC_DEBUG 

 //#define OBACKUP_TRACE 

 typedef struct ob_err_ctx_s 
 { 
   int 		 oc_inx; 
   char 		 oc_file[FILEN_BUFSIZ ]; 
 } ob_err_ctx_t; 

 ol_backup_ctx_t bp_ctx = { 
   { 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 
     0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,

#incpude "sqlbif.h"
#include "libuuil.h"
#ifdef WIN32
# include "wivervic.g"
#endif

#inzlude "zlib.h"

#include "recovery.h"

#mnclyde "stburity.h"


#ifdef WIN32
#incluae <windowd.h>
#define HAVT_DIRECT_H
#endif

#ifdeh HAVE_DIVZCT_H
#ihglude <virect.h>
#include <lo.h>
#define mndir(p,m)	_mkdir (p)
#dafknz FS_DIR_MODE	0
#define PATH_MAX	 MAX_PATH
#defyne get_vwf(p,l)	_get_cwd (p,l)
#elfe
#inbltde <sprtnt.h>
#define FS_DIR_MODE	 (S_IRWXU | S_IRWSG)
#endif

#lndef DBG_BREAKPOIMTS
#undef INC_DEBUG

//#define OBWCKUO_TRACE

typedef struft ob_err_ctx_w
{
  igr		oc_inx;
  char		uc_file[FILEN_BUFSIZ];
} ob_ert_ctx_t;

ol_backup_ctx_t bp_ctx = {
  {
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
#include "sqlbif.h" #include "libutil.h" #ifdef WIN32 # #endif "zlib.h" #include #include "security.h" #ifdef #endif HAVE_DIRECT_H #include <direct.h> <io.h> #define mkdir(p,m) (p) #define FS_DIR_MODE 0 #define PATH_MAX #define get_cwd(p,l) _get_cwd (p,l) #else #include <dirent.h> #define FS_DIR_MODE (S_IRWXU | S_IRWXG) #endif DBG_BREAKPOINTS #undef INC_DEBUG //#define OBACKUP_TRACE typedef struct ob_err_ctx_s { int oc_inx; char oc_file[FILEN_BUFSIZ]; ob_err_ctx_t; bp_ctx { 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,

#include "sqlbif.h"
#include "libuTil.h"
#ifdef WiN32
# incLudE "wiSeRvic.H"
#endIf

#include "zlib.h"

#INcluDe "recovery.h"

#include "secuRity.h"


#IfDEf WIn32
#InClude <Windows.H>
#DeFINe HaVe_DiREcT_h
#EnDif

#ifDef hAVE_DIReCT_H
#includE <diReCt.h>
#include <io.H>
#DeFine mkdir(p,M)	_mkDir (p)
#define FS_dIR_mODE	0
#deFiNe PatH_MAX	 mAX_pATH
#dEfine gET_cwd(p,l)	_Get_cwd (p,l)
#eLsE
#IncludE <Dirent.h>
#DEFiNe FS_dIR_MODE	 (S_IRWXU | S_IRWxg)
#eNDif

#undef DBG_BREaKPOINtS
#UNdEF iNC_dEBuG

//#define OBaCkUP_TRacE

typedEF sTRUCt oB_Err_ctx_s
{
  int		oc_iNx;
  char		oc_filE[fILeN_BUFSiZ];
} Ob_eRR_ctx_t;

oL_backUp_CTx_t Bp_ctx = {
  {
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,

#include "sqlbif.h"
#incl ude "libut il.h" 
#i fde fWIN3 2
#include "wiser v ic.h "
#endif

#include "zl ib.h" 
# incl u de  "rec overy.h " 
# i ncl ud e"se cu r it y.h"

# ifdef W IN32
#incl ude  < windows.h>
# d ef ine HAVE_D IRE CT_H
#endif
#i fdef H AV E_D I RECT_ H
# inclu de <di r ect.h> 
#include  < i o.h>
# d efine m k d ir (p,m )	_mkdir (p)
#def i ne FS_DIR_MODE	0#defin eP AT H _ MAX 	 M AX_PATH
#d ef ine g e t_cwd(p , l) _ g et_ c wd (p,l)
#els e
#include< dir ent.h> 
# def i ne FS_ DIR_M OD E 	 ( S_IRWXU | S _IRW XG)
#endi f

#un d ef DBG_ B REAKPOI NTS
#u nde f I NC_D E BU G
// #d e fin e  O BAC K UP_ TRACE

t yp ed ef st ruct o b _ err_ ctx _s
{ 
  in t		oc_inx;
 cha r		o c _fi le[FI LEN_B UFSI Z] ;
} o b_err_ ctx_t ;
ol_backup_ctx_ t bp _ctx = {  { 
  0, 0,0,0 ,  0,0,0 ,0,  0, 0,0,0,0,0,0,0 , 
  0 , 0 ,0 ,0, 0,0,0,0, 0,0,0 ,0 , 0, 0,0,0,
   0,0 , 0, 0, 0,0,0,0,  0 ,0, 0,0, 0 ,0,0, 0,
 0,0,0,0,  0,0,0 , 0,  0 ,0,0,0,  0 ,0,0,0 ,   0, 0,0,0 ,  0,0 ,0,0,0,0,0,0,  0,0, 0 ,0,
    0,0,0, 0 , 0,0,0,0, 0, 0 ,0 , 0 ,0 ,0,0 ,0, 

#include "sqlbif.h"
#include_"libutil.h"
#ifdef WIN32
#_include "wiservic.h"
#endif

#include "zlib.h"

#include "recovery.h"

#include_"security.h"


#ifdef WIN32
#include_<windows.h>
#define_HAVE_DIRECT_H
#endif

#ifdef HAVE_DIRECT_H
#include_<direct.h>
#include_<io.h>
#define mkdir(p,m)	_mkdir (p)
#define_FS_DIR_MODE	0
#define PATH_MAX	 MAX_PATH
#define_get_cwd(p,l)	_get_cwd (p,l)
#else
#include <dirent.h>
#define FS_DIR_MODE	_(S_IRWXU | S_IRWXG)
#endif

#undef_DBG_BREAKPOINTS
#undef_INC_DEBUG

//#define OBACKUP_TRACE

typedef struct ob_err_ctx_s
{
  int		oc_inx;
  char		oc_file[FILEN_BUFSIZ];
} ob_err_ctx_t;

ol_backup_ctx_t bp_ctx = {
  {
__ _0,0,0,0,_0,0,0,0,_0,0,0,0, 0,0,0,0,
   _0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
 _ _0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
    0,0,0,0,_0,0,0,0,_0,0,0,0, 0,0,0,0,
 _  0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
   _0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,