1
1
openmpi/ompi/mpi/tool
Jeff Squyres 54ca3310ea ompi: cleanup various string operations
Several fixes to string handling:

1. strncpy() -> opal_string_copy() (because opal_string_copy()
   guarantees to NULL-terminate, and strncpy() does not)
2. Simplify a few places, such as:
   * Since opal_string_copy() guarantees to NULL terminate, eliminate
     some memsets(), etc.
   * Use opal_asprintf() to eliminate multi-step string creation

There's more work that could be done; e.g., this commit doesn't
attempt to clean up any strcpy() usage.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
2018-10-14 16:10:20 -07:00
..
profile Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
category_changed.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_categories.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_cvars.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_index.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_info.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_num.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
category_get_pvars.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
cvar_get_index.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
cvar_get_info.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
cvar_get_num.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
cvar_handle_alloc.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
cvar_handle_free.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
cvar_read.c mca/base: add support for additional variable types 2018-03-01 20:42:27 -07:00
cvar_write.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
enum_get_info.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
enum_get_item.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
finalize.c mpi/finalized: revamp INITIALIZED/FINALIZED 2018-06-01 13:36:29 -07:00
init_thread.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
Makefile.am Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
mpit_common.c mca/base: add support for additional variable types 2018-03-01 20:42:27 -07:00
mpit-internal.h ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
pvar_get_index.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_get_info.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_get_num.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
pvar_handle_alloc.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_handle_free.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_read.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_readreset.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
pvar_reset.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_session_create.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_session_free.c Add missing MPI_T_PVAR_SESSION_NULL to mpi.h 2017-03-05 09:03:30 -06:00
pvar_start.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_stop.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00
pvar_write.c scripted symbol name change (ompi_ prefix) 2017-07-11 02:13:23 -04:00