Changeset 37652
- Timestamp:
- Nov 20, 2014, 8:32:37 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/libdvo
- Files:
-
- 2 edited
-
include/dvo.h (modified) (1 diff)
-
src/HostTable.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/include/dvo.h
r37641 r37652 994 994 int HostTableTestHost (SkyRegion *region, int hostID); 995 995 996 void InitHost (HostInfo *host); 997 996 998 HostTableGroup *HostTableGroups (HostTable *table, int *ngroups); 997 999 int HostTableGroupWaitJobsGetIO (HostTableGroup *table, char *file, int lineno, int VERBOSE); -
branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/HostTable.c
r37596 r37652 3 3 # include <sys/wait.h> 4 4 5 void 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 5 16 void InitHosts (HostInfo *hosts, int Nhosts, int NHOSTS) { 6 17 7 18 int i; 8 19 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]); 16 21 } 17 22 return;
Note:
See TracChangeset
for help on using the changeset viewer.
