lsb_readrankfile
Read the specified rank file and return the host list.If path is NULL then read the rank file specified by LSB_DJOB_RANKFILE. The rankfile is assumed to be in simple format of one host per line. A host can appear in the list more than once and in any order.
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_readrankfile(char ***hostlist, char *path)
Data Structures:
- Parameters:
***hostlist [OUT] A null-terminated list of host names *path [IN] path to rankfile, if NULL check LSB_DJOB_RANKFILE Define Statements:
- none
- none
Errors:
- Returns:
- > 0
Function successful. Returns length of hostlist not including the null last element-1
Function failed.Equivalent line commands:
- 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.