lsb_getallocFromHhostfile
Read the specified hostfile and return the host list.If path is NULL then read the hostfile specified by LSB_DJOB_HOSTFILE. The hostfile is assumed to be in simple format of one host per line. A host can be repeated.
This function will allocate the memory for hostlist. It is the responsibility of the caller to free the lists when no longer needed. On success hostlist will be a list of strings. Before freeing hostlist the individual elements must be freed.
#include <lsf/lsbatch.h>
int lsb_getallocFromHhostfile(char ***hostlist, char *path)
Data Structures:
- Parameters:
***hostlist [OUT] A null-terminated list of host names *path [IN] path to hostfile, if NULL check LSB_DJOB_HOSTFILE Define Statements:
- none
- none
Errors:
- Returns:
- > 0
Function was successful, length of hostlist not including the null last element-1
Function failed.Equivalent line command:
- If the function fails, lsberrno is set to indicate the error.
Files:
- none
- none
- See also:
- none
Date Modified: 16 Jul 2014
Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.