1
1
openmpi/orte
Charles Shereda cbc6feaab2 Created opal_gethostname() as safer gethostname substitute.
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>
2020-01-13 08:52:17 -08:00
..
bindings Expose opal_set_using_threads and improve error message on missing ompi_info. 2017-01-19 07:57:58 -05:00
etc Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
include cleanup: remove the unused (and unexpanded) {ORTE,OMPI}_WANT_REPO_REV macro 2018-12-06 13:13:13 +09:00
mca Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
orted Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
runtime Add a compilation flag that adds unwind info to all files that are present in the stack starting from MPI_Init. 2019-03-27 14:32:15 +00:00
test Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
tools Update IOF redirection options 2019-11-13 12:13:06 -08:00
util Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
common_sym_whitelist.txt common syms: whitelist bison-generated common symbols 2016-01-16 03:53:14 -08:00
Doxyfile Purge whitespace from the repo 2015-06-23 20:59:57 -07:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00