cbc6feaab2
The opal_gethostname() function provides a more robust mechanism to retrieve the hostname than gethostname(), which can return results that are not null-terminated, and which can vary in its behavior from system to system. opal_gethostname() just returns the value in opal_process_info.nodename; this is populated in opal_init_gethostname() inside opal_init.c. -Changed all gethostname calls in opal subtree to opal_gethostname -Changed all gethostname calls in orte subtree to opal_gethostname -Changed all gethostname calls in ompi subdir to opal_gethostname -Changed all gethostname calls in oshmem subdir to opal_gethostname -Changed opal_if.c in test subdir to use opal_gethostname -Changed opal_init.c to include opal_init_gethostname. This function returns an int and directly sets opal_process_info.nodename per jsquyres' modifications. Relates to open-mpi#6801 Signed-off-by: Charles Shereda <cpshereda@lanl.gov> |
||
---|---|---|
.. | ||
base.h | ||
help-mca-base.txt | ||
help-mca-var.txt | ||
Makefile.am | ||
mca_base_close.c | ||
mca_base_cmd_line.c | ||
mca_base_component_compare.c | ||
mca_base_component_find.c | ||
mca_base_component_repository.c | ||
mca_base_component_repository.h | ||
mca_base_components_close.c | ||
mca_base_components_open.c | ||
mca_base_components_register.c | ||
mca_base_components_select.c | ||
mca_base_framework.c | ||
mca_base_framework.h | ||
mca_base_list.c | ||
mca_base_open.c | ||
mca_base_parse_paramfile.c | ||
mca_base_pvar.c | ||
mca_base_pvar.h | ||
mca_base_var_enum.c | ||
mca_base_var_enum.h | ||
mca_base_var_group.c | ||
mca_base_var_group.h | ||
mca_base_var.c | ||
mca_base_var.h | ||
mca_base_vari.h |