IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39293


Ignore:
Timestamp:
Dec 24, 2015, 5:59:57 AM (11 years ago)
Author:
eugene
Message:

add test for parallel dvo

Location:
trunk/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/include/dvo.h

    r39269 r39293  
    11131113
    11141114// functions for parallel DVO
     1115int HostTableExists (char *catdir, char *rootname);
    11151116HostTable    *HostTableLoad (char *catdir, char *rootname);
    11161117int HostTableWaitJobs (HostTable *table, char *file, int lineno);
  • trunk/Ohana/src/libdvo/src/HostTable.c

    r38553 r39293  
    5454  free (table);
    5555  return;
     56}
     57
     58int HostTableExists (char *catdir, char *rootname) {
     59
     60  int Nchar = strlen(catdir) + strlen(rootname) + 16;
     61  ALLOCATE_PTR (filename, char, Nchar); // one slash and one EOL
     62  snprintf (filename, Nchar, "%s/%s", catdir, rootname);
     63
     64  // can I access the file for read? (not backup, not readwrite, not verbose)
     65  int status = check_file_access (filename, FALSE, FALSE, FALSE);
     66  return status;
    5667}
    5768
Note: See TracChangeset for help on using the changeset viewer.