IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37652


Ignore:
Timestamp:
Nov 20, 2014, 8:32:37 PM (12 years ago)
Author:
eugene
Message:

InitHost

Location:
branches/eam_branches/ipp-20140904/Ohana/src/libdvo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/include/dvo.h

    r37641 r37652  
    994994int HostTableTestHost (SkyRegion *region, int hostID);
    995995
     996void InitHost (HostInfo *host);
     997
    996998HostTableGroup *HostTableGroups (HostTable *table, int *ngroups);
    997999int HostTableGroupWaitJobsGetIO (HostTableGroup *table, char *file, int lineno, int VERBOSE);
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c

    r37596 r37652  
    33# include <sys/wait.h>
    44
     5void InitHost (HostInfo *host) {
     6  host->hostname = NULL;
     7  host->pathname = NULL;
     8  host->results = NULL;
     9  host->stdio[HOST_STDIN] = -1;
     10  host->stdio[HOST_STDOUT] = -1;
     11  host->stdio[HOST_STDERR] = -1;
     12  host->pid = 0;
     13  return;
     14}
     15
    516void InitHosts (HostInfo *hosts, int Nhosts, int NHOSTS) {
    617
    718  int i;
    819  for (i = Nhosts; i < NHOSTS; i++) {
    9     hosts[i].hostname = NULL;
    10     hosts[i].pathname = NULL;
    11     hosts[i].results = NULL;
    12     hosts[i].stdio[HOST_STDIN] = -1;
    13     hosts[i].stdio[HOST_STDOUT] = -1;
    14     hosts[i].stdio[HOST_STDERR] = -1;
    15     hosts[i].pid = 0;
     20    InitHost (&hosts[i]);
    1621  }
    1722  return;
Note: See TracChangeset for help on using the changeset viewer.