Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- db_VISTA III - d_dblog http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
   D_DBLOG

SUMMARY
   d_dblog(log)
   char *log;

ARGUMENTS
   log       String containing path to and/or name of database log file

DESCRIPTION
   This function is used to specify the location and/or name of the databse
   log file.If log ends with the directory separator character (i.e. '\' on
   DOS and '/' on UNIX),the default file names are appended to the specified
   path name to form the fully-qualified file name.The default file name is
   "userid.log" and is assumed to be located in the working (or current)
   directory.Single-user or one-user applications will assume the name
   vista.log in no DBUSERID is specified.If log does not end with the
   directory separator character,db_VISTA will assume that the variable is
   the complete file name.This function must be called before the database is
   opened.


-----------------------------------------------------------------
NOTE
   Each user must have a unique file name. If ypur application runs on a DOS
   network,the log file must be accessible by all nodes on the network which
   run db_VISTA applications in order for automatic recovery to be possible.
   If the file name is not fully-qualified,the working directories for
   all applications must be identical. Never locate a user's log file on a
   private disk drive. If the workstation were to go down, there would be no
   way for db_VISTA to access the log file in order to perform automatic
   recovery.
-----------------------------------------------------------------

CURRENCY CHANGES
   None

RETURN CODES

   -1    S_DBOPEN      Datadase is open. Function called after d_open.



EXAMPLE
    /* log files stored on file server (device "S:")  */
    d_dblog("S:\\LOGFILES\\");
    d_open("tims","s");

See Also: d_dbfpath d_dbdpath d_dbtaf d_dbuserid

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson