model_server/dd/src/xref_dd.cxx
// add file name to backup file
add file name to backup file
add file name to backup file
void Xref::register_file_for_crash_recovery(char const *filename)
{
  Initialize(Xref::register_file_for_crash_recovery);
  if (get_perm_flag() == READ_ONLY) return;
  genString crash_file_name = xref_name;
  crash_file_name += ".outdated_pset";
  int crash_file = OSapi_open(crash_file_name, O_RDWR|O_CREAT|O_APPEND, 0644);
  if (crash_file < 0) return;
  OSapi_write(crash_file, filename, strlen(filename));
  OSapi_write(crash_file, "\n", 1);
  OSapi_close(crash_file);
}
void Xref :: register_file_for_crash_recovery ( char const * filename ) { Initialize ( Xref :: register_file_for_crash_recovery ) ; if ( get_perm_flag ( ) == READ_ONLY ) return ; genString crash_file_name = xref_name ; crash_file_name += " " ; int crash_file = OSapi_open ( crash_file_name , O_RDWR | O_CREAT | O_APPEND , 0644 ) ; if ( crash_file < 0 ) return ; OSapi_write ( crash_file , filename , strlen ( filename ) ) ; OSapi_write ( crash_file , " \n " , 1 ) ; OSapi_close ( crash_file ) ; }
add file name to backup file
add file name to backup file