1
1
openmpi/ompi/datatype
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
..
Makefile.am Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_args.c opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
ompi_datatype_create_contiguous.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_create_darray.c Type_create_darray with mix of BLOCK/CYCLIC 2017-06-07 16:53:03 -04:00
ompi_datatype_create_indexed.c use ptrdiff_t instead of OPAL_PTRDIFF_TYPE 2017-04-19 13:41:56 +09:00
ompi_datatype_create_struct.c use ptrdiff_t instead of OPAL_PTRDIFF_TYPE 2017-04-19 13:41:56 +09:00
ompi_datatype_create_subarray.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_create_vector.c Allow OPAL DDT to receive size_t count argument. 2018-04-14 15:32:19 -04:00
ompi_datatype_create.c ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
ompi_datatype_external32.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_external.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_get_elements.c Topic/datatype (#3441) 2017-05-09 09:31:40 -04:00
ompi_datatype_internal.h opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
ompi_datatype_match_size.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype_module.c ompi: cleanup various string operations 2018-10-14 16:10:20 -07:00
ompi_datatype_sndrcv.c Revert "Update to sync with OMPI master and cleanup to build" 2016-11-22 15:03:20 -08:00
ompi_datatype.h opal: add types for atomic variables 2018-09-14 10:48:55 -06:00