1
1
openmpi/test/util
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
..
bipartite_graph.c util: move graph solver from usnic to util 2017-09-15 15:08:47 -07:00
Makefile.am Remove the orte_nidmap test 2018-01-16 11:47:44 -08:00
ompi_numtostr.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_argv.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_basename.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_bit_ops.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_error.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_if.c Created opal_gethostname() as safer gethostname substitute. 2020-01-13 08:52:17 -08:00
opal_os_create_dirpath.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_os_path.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
opal_path_nfs.c Handle asprintf errors with opal_asprintf wrapper 2018-10-08 16:43:53 -07:00
opal_timer.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
orte_session_dir.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
orte_universe_setup_file_io.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00