summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-10-03 16:01:28 (GMT)
committerGitHub <noreply@github.com>2023-10-03 16:01:28 (GMT)
commit34fcb9c5a480c70d43c85373850f91d079b3a179 (patch)
tree13a646eecb112484660e792239808efb94c34ef1 /src
parent4261552068d5ffd7bd708db92aea99793a1bcf2a (diff)
downloadhdf5-34fcb9c5a480c70d43c85373850f91d079b3a179.zip
hdf5-34fcb9c5a480c70d43c85373850f91d079b3a179.tar.gz
hdf5-34fcb9c5a480c70d43c85373850f91d079b3a179.tar.bz2
Fix several spelling/grammar issues (#3621)
Diffstat (limited to 'src')
-rw-r--r--src/H5ACmpio.c2
-rw-r--r--src/H5ACprivate.h2
-rw-r--r--src/H5Centry.c2
-rw-r--r--src/H5Cprivate.h2
-rw-r--r--src/H5Dscatgath.c2
-rw-r--r--src/H5FDhdfs.c2
-rw-r--r--src/H5FDonion.c4
-rw-r--r--src/H5FDpublic.h2
-rw-r--r--src/H5FDros3.c4
-rw-r--r--src/H5FDs3comms.c4
-rw-r--r--src/H5FDs3comms.h4
-rw-r--r--src/H5FDsubfiling/H5FDsubfiling.c4
-rw-r--r--src/H5FDsubfiling/H5subfiling_common.c8
-rw-r--r--src/H5FLprivate.h2
-rw-r--r--src/H5Gpublic.h2
-rw-r--r--src/H5HFcache.c8
-rw-r--r--src/H5Iint.c4
-rw-r--r--src/H5MFaggr.c4
-rw-r--r--src/H5Oalloc.c2
-rw-r--r--src/H5Oefl.c2
-rw-r--r--src/H5Pfapl.c4
-rw-r--r--src/H5Tcommit.c4
-rw-r--r--src/H5Tnative.c4
-rw-r--r--src/H5WB.c4
-rw-r--r--src/H5Zfletcher32.c2
-rw-r--r--src/H5private.h4
26 files changed, 44 insertions, 44 deletions
diff --git a/src/H5ACmpio.c b/src/H5ACmpio.c
index 77c7fdb..cdebe80 100644
--- a/src/H5ACmpio.c
+++ b/src/H5ACmpio.c
@@ -971,7 +971,7 @@ done:
* dirty bytes count.
*
* The rank 0 process then removes any references to the
- * entry under its old address from the cleands and dirtied
+ * entry under its old address from the clean and dirtied
* lists, and inserts an entry in the dirtied list under the
* new address.
*
diff --git a/src/H5ACprivate.h b/src/H5ACprivate.h
index 010fdc7..5e23036 100644
--- a/src/H5ACprivate.h
+++ b/src/H5ACprivate.h
@@ -25,7 +25,7 @@
#include "H5ACpublic.h" /*public prototypes */
-/* Pivate headers needed by this header */
+/* Private headers needed by this header */
#include "H5private.h" /* Generic Functions */
#include "H5Cprivate.h" /* Cache */
#include "H5Fprivate.h" /* File access */
diff --git a/src/H5Centry.c b/src/H5Centry.c
index 353cc1f..2bbf9ac 100644
--- a/src/H5Centry.c
+++ b/src/H5Centry.c
@@ -1737,7 +1737,7 @@ done:
* deserialized entry after it is inserted in the cache.
*
* Since deserializing a prefetched entry is semantically
- * equivalent to a load, issue an entry loaded nofification
+ * equivalent to a load, issue an entry loaded notification
* if the notify callback is defined.
*
* Return: SUCCEED on success, and FAIL on failure.
diff --git a/src/H5Cprivate.h b/src/H5Cprivate.h
index 5aadd9e..3477e75 100644
--- a/src/H5Cprivate.h
+++ b/src/H5Cprivate.h
@@ -537,7 +537,7 @@ typedef struct H5C_t H5C_t;
* ensure that the entry is ready to be flushed -- in particular,
* if the entry contains references to other entries that are in
* temporary file space, the pre-serialize callback must move those
- * entries into real file space so that the serialzed entry will
+ * entries into real file space so that the serialized entry will
* contain no invalid data.
*
* One would think that the base address and length of
diff --git a/src/H5Dscatgath.c b/src/H5Dscatgath.c
index cd2027b..f0a0b9d 100644
--- a/src/H5Dscatgath.c
+++ b/src/H5Dscatgath.c
@@ -1335,7 +1335,7 @@ done:
write_mem_spaces = NULL;
}
- /* Free bakcground buffer parameter arrays */
+ /* Free background buffer parameter arrays */
H5MM_free(bkg_mem_spaces);
bkg_mem_spaces = NULL;
H5MM_free(bkg_file_spaces);
diff --git a/src/H5FDhdfs.c b/src/H5FDhdfs.c
index 6f2c559..3bd2502 100644
--- a/src/H5FDhdfs.c
+++ b/src/H5FDhdfs.c
@@ -926,7 +926,7 @@ hdfs__fprint_stats(FILE *stream, const H5FD_hdfs_t *file)
unsigned long long max_raw = 0;
unsigned long long bytes_raw = 0;
unsigned long long bytes_meta = 0;
- double re_dub = 0.0; /* re-usable double variable */
+ double re_dub = 0.0; /* reusable double variable */
unsigned suffix_i = 0;
const char suffixes[] = {' ', 'K', 'M', 'G', 'T', 'P'};
diff --git a/src/H5FDonion.c b/src/H5FDonion.c
index 5c0994c..a16338b 100644
--- a/src/H5FDonion.c
+++ b/src/H5FDonion.c
@@ -492,7 +492,7 @@ H5FD__onion_commit_new_revision_record(H5FD_onion_t *file)
/* Update history info to accommodate new revision */
if (history->n_revisions == 0) {
- unsigned char *ptr = buf; /* re-use buffer space to compute checksum */
+ unsigned char *ptr = buf; /* reuse buffer space to compute checksum */
assert(history->record_locs == NULL);
history->n_revisions = 1;
@@ -508,7 +508,7 @@ H5FD__onion_commit_new_revision_record(H5FD_onion_t *file)
file->header.history_size += H5FD_ONION_ENCODED_SIZE_RECORD_POINTER;
} /* end if no extant revisions in history */
else {
- unsigned char *ptr = buf; /* re-use buffer space to compute checksum */
+ unsigned char *ptr = buf; /* reuse buffer space to compute checksum */
assert(history->record_locs != NULL);
diff --git a/src/H5FDpublic.h b/src/H5FDpublic.h
index 0eceb2f..5f40bff 100644
--- a/src/H5FDpublic.h
+++ b/src/H5FDpublic.h
@@ -76,7 +76,7 @@
/*
* Defining H5FD_FEAT_DATA_SIEVE for a VFL driver means that
* the library will attempt to cache raw data as it is read from/written to
- * a file in a "data seive" buffer. See Rajeev Thakur's papers:
+ * a file in a "data sieve" buffer. See Rajeev Thakur's papers:
* http://www.mcs.anl.gov/~thakur/papers/romio-coll.ps.gz
* http://www.mcs.anl.gov/~thakur/papers/mpio-high-perf.ps.gz
*/
diff --git a/src/H5FDros3.c b/src/H5FDros3.c
index 2137703..3f3413c 100644
--- a/src/H5FDros3.c
+++ b/src/H5FDros3.c
@@ -960,7 +960,7 @@ H5FD__ros3_open(const char *url, unsigned flags, hid_t fapl_id, haddr_t maxaddr)
if (fa.authenticate == true) {
/* compute signing key (part of AWS/S3 REST API)
* can be re-used by user/key for 7 days after creation.
- * find way to re-use/share
+ * find way to reuse/share
*/
now = gmnow();
assert(now != NULL);
@@ -1084,7 +1084,7 @@ ros3_fprint_stats(FILE *stream, const H5FD_ros3_t *file)
unsigned long long max_raw = 0;
unsigned long long bytes_raw = 0;
unsigned long long bytes_meta = 0;
- double re_dub = 0.0; /* re-usable double variable */
+ double re_dub = 0.0; /* reusable double variable */
unsigned suffix_i = 0;
const char suffixes[] = {' ', 'K', 'M', 'G', 'T', 'P'};
diff --git a/src/H5FDs3comms.c b/src/H5FDs3comms.c
index 2255ec0..58fc435 100644
--- a/src/H5FDs3comms.c
+++ b/src/H5FDs3comms.c
@@ -571,7 +571,7 @@ done:
*
* Headers list at `first_header` is not touched.
*
- * - Programmer should re-use or destroy `first_header` pointer
+ * - Programmer should reuse or destroy `first_header` pointer
* (hrb_node_t *) as suits their purposes.
* - Recommend fetching prior to destroy()
* e.g., `reuse_node = hrb_to_die->first_header; destroy(hrb_to_die);`
@@ -2531,7 +2531,7 @@ done:
* Create AWS4 "Signing Key" from secret key, AWS region, and timestamp.
*
* Sequentially runs HMAC_SHA256 on strings in specified order,
- * generating re-usable checksum (according to documentation, valid for
+ * generating reusable checksum (according to documentation, valid for
* 7 days from time given).
*
* `secret` is `access key id` for targeted service/bucket/resource.
diff --git a/src/H5FDs3comms.h b/src/H5FDs3comms.h
index b29d2d8..120a71a 100644
--- a/src/H5FDs3comms.h
+++ b/src/H5FDs3comms.h
@@ -211,7 +211,7 @@
*
* `magic` (unsigned long)
*
- * "unique" idenfier number for the structure type
+ * "unique" identifier number for the structure type
*
* `name` (char *)
*
@@ -458,7 +458,7 @@ typedef struct {
*
* `signing_key` (unsigned char *)
*
- * Pointer to `SHA256_DIGEST_LENGTH`-long string for "re-usable" signing
+ * Pointer to `SHA256_DIGEST_LENGTH`-long string for "reusable" signing
* key, generated via
* `HMAC-SHA256(HMAC-SHA256(HMAC-SHA256(HMAC-SHA256("AWS4<secret_key>",
* "<yyyyMMDD"), "<aws-region>"), "<aws-service>"), "aws4_request")`
diff --git a/src/H5FDsubfiling/H5FDsubfiling.c b/src/H5FDsubfiling/H5FDsubfiling.c
index c15fd2c..d8616c8 100644
--- a/src/H5FDsubfiling/H5FDsubfiling.c
+++ b/src/H5FDsubfiling/H5FDsubfiling.c
@@ -2031,7 +2031,7 @@ done:
* The contents of supplied buffers are undefined.
*
* Notes: Thus function doesn't actually implement vector read.
- * Instead, it comverts the vector read call into a series
+ * Instead, it converts the vector read call into a series
* of scalar read calls. Fix this when time permits.
*
* Also, it didn't support the sizes and types optimization.
@@ -2191,7 +2191,7 @@ done:
* subfiling writes have failed for some reason.
*
* Notes: Thus function doesn't actually implement vector write.
- * Instead, it comverts the vector write call into a series
+ * Instead, it converts the vector write call into a series
* of scalar read calls. Fix this when time permits.
*
* Also, it didn't support the sizes and types optimization.
diff --git a/src/H5FDsubfiling/H5subfiling_common.c b/src/H5FDsubfiling/H5subfiling_common.c
index 37fd5ef..f9cc0dc 100644
--- a/src/H5FDsubfiling/H5subfiling_common.c
+++ b/src/H5FDsubfiling/H5subfiling_common.c
@@ -618,7 +618,7 @@ done:
* new MPI communicators that facilitate messaging between
* HDF5 clients and the IOCs.
*
- * Return: Success (0) or Faiure (non-zero)
+ * Return: Success (0) or Failure (non-zero)
* Errors: If MPI operations fail for some reason.
*
*-------------------------------------------------------------------------
@@ -1951,7 +1951,7 @@ done:
* discovery. The number and mapping of IOC to MPI_rank
* is part of the sf_context->topology structure.
*
- * Return: Success (0) or Faiure (non-zero)
+ * Return: Success (0) or Failure (non-zero)
* Errors: If MPI operations fail for some reason.
*
*-------------------------------------------------------------------------
@@ -2686,7 +2686,7 @@ done:
* which actually manages all subfile closing via commands
* to the set of IO Concentrators.
*
- * Return: Success (0) or Faiure (non-zero)
+ * Return: Success (0) or Failure (non-zero)
* Errors: If MPI operations fail for some reason.
*
*-------------------------------------------------------------------------
@@ -2707,7 +2707,7 @@ done:
* Once the subfiles are closed, we initiate a teardown of
* the IOC and associated thread_pool threads.
*
- * Return: Success (0) or Faiure (non-zero)
+ * Return: Success (0) or Failure (non-zero)
* Errors: If MPI operations fail for some reason.
*
*-------------------------------------------------------------------------
diff --git a/src/H5FLprivate.h b/src/H5FLprivate.h
index 3b9a84a..348cfda 100644
--- a/src/H5FLprivate.h
+++ b/src/H5FLprivate.h
@@ -201,7 +201,7 @@ typedef struct H5FL_blk_head_t {
#define H5FL_BLK_REALLOC(t, blk, new_size) \
(uint8_t *)H5FL_blk_realloc(&(H5FL_BLK_NAME(t)), blk, new_size H5FL_TRACK_INFO)
-/* Check if there is a free block available to re-use */
+/* Check if there is a free block available to reuse */
#define H5FL_BLK_AVAIL(t, size) H5FL_blk_free_block_avail(&(H5FL_BLK_NAME(t)), size)
#else /* H5_NO_BLK_FREE_LISTS */
diff --git a/src/H5Gpublic.h b/src/H5Gpublic.h
index a21ffa2..cc04680 100644
--- a/src/H5Gpublic.h
+++ b/src/H5Gpublic.h
@@ -809,7 +809,7 @@ H5_DLL herr_t H5Gmove2(hid_t src_loc_id, const char *src_name, hid_t dst_loc_id,
* any object identifier is open for the object, the space will not be
* released until after the object identifier is closed.
*
- * Note that space identified as freespace is available for re-use only
+ * Note that space identified as freespace is available for reuse only
* as long as the file remains open; once a file has been closed, the
* HDF5 library loses track of freespace. See “Freespace Management” in
* the \ref UG for further details.
diff --git a/src/H5HFcache.c b/src/H5HFcache.c
index 9f2fa0a..ad8e4d2 100644
--- a/src/H5HFcache.c
+++ b/src/H5HFcache.c
@@ -2521,7 +2521,7 @@ H5HF__cache_dblock_fsf_size(const void *_thing, hsize_t *fsf_size)
* Further, metadata cache entries are now allowed to have
* multiple flush dependency parents.
*
- * This means that the fractal heap is no longer ncessarily
+ * This means that the fractal heap is no longer necessarily
* flushed from the bottom up.
*
* For example, it is now possible for a dirty fractal heap
@@ -2881,7 +2881,7 @@ done:
* Further, metadata cache entries are now allowed to have
* multiple flush dependency parents.
*
- * This means that the fractal heap is no longer ncessarily
+ * This means that the fractal heap is no longer necessarily
* flushed from the bottom up.
*
* For example, it is now possible for a dirty fractal heap
@@ -2994,7 +2994,7 @@ done:
* Further, metadata cache entries are now allowed to have
* multiple flush dependency parents.
*
- * This means that the fractal heap is no longer ncessarily
+ * This means that the fractal heap is no longer necessarily
* flushed from the bottom up.
*
* For example, it is now possible for a dirty fractal heap
@@ -3153,7 +3153,7 @@ done:
* Further, metadata cache entries are now allowed to have
* multiple flush dependency parents.
*
- * This means that the fractal heap is no longer ncessarily
+ * This means that the fractal heap is no longer necessarily
* flushed from the bottom up.
*
* For example, it is now possible for a dirty fractal heap
diff --git a/src/H5Iint.c b/src/H5Iint.c
index 63557c5..7d8b4ac 100644
--- a/src/H5Iint.c
+++ b/src/H5Iint.c
@@ -1149,7 +1149,7 @@ H5I_dec_app_ref_async(hid_t id, void **token)
/* Sanity check */
assert(id >= 0);
- /* [Possibly] aynchronously decrement refcount on ID */
+ /* [Possibly] asynchronously decrement refcount on ID */
if ((ret_value = H5I__dec_app_ref(id, token)) < 0)
HGOTO_ERROR(H5E_ID, H5E_CANTDEC, (-1), "can't asynchronously decrement ID ref count");
@@ -1254,7 +1254,7 @@ H5I_dec_app_ref_always_close_async(hid_t id, void **token)
/* Sanity check */
assert(id >= 0);
- /* [Possibly] aynchronously decrement refcount on ID */
+ /* [Possibly] asynchronously decrement refcount on ID */
if ((ret_value = H5I__dec_app_ref_always_close(id, token)) < 0)
HGOTO_ERROR(H5E_ID, H5E_CANTDEC, (-1), "can't asynchronously decrement ID ref count");
diff --git a/src/H5MFaggr.c b/src/H5MFaggr.c
index 80d25f2..fa39c72 100644
--- a/src/H5MFaggr.c
+++ b/src/H5MFaggr.c
@@ -182,7 +182,7 @@ H5MF__aggr_alloc(H5F_t *f, H5F_blk_aggr_t *aggr, H5F_blk_aggr_t *other_aggr, H5F
if ((f->shared->feature_flags & aggr->feature_flag) &&
f->shared->fs_strategy != H5F_FSPACE_STRATEGY_NONE && !f->shared->closing) {
#endif
- haddr_t aggr_frag_addr = HADDR_UNDEF; /* Address of aggregrator fragment */
+ haddr_t aggr_frag_addr = HADDR_UNDEF; /* Address of aggregator fragment */
hsize_t aggr_frag_size = 0; /* Size of aggregator fragment */
hsize_t alignment; /* Alignment of this section */
hsize_t aggr_mis_align = 0; /* Misalignment of aggregator */
@@ -472,7 +472,7 @@ done:
} /* end else */
} /* end if */
else {
- /* The aggreator is not at end of file */
+ /* The aggregator is not at end of file */
/* Check if aggregator has enough internal space to satisfy the extension. */
if (aggr->size >= extra_requested) {
/* Extend block into aggregator */
diff --git a/src/H5Oalloc.c b/src/H5Oalloc.c
index d7ede47..4eadc31 100644
--- a/src/H5Oalloc.c
+++ b/src/H5Oalloc.c
@@ -1810,7 +1810,7 @@ H5O__move_msgs_forward(H5F_t *f, H5O_t *oh)
null_msg->raw + null_msg->raw_size, gap_size) < 0)
HGOTO_ERROR(H5E_OHDR, H5E_CANTINSERT, FAIL, "can't insert gap in chunk");
- /* Re-use message # for new null message taking place of non-null message */
+ /* Reuse message # for new null message taking place of non-null message */
new_null_msg = v;
} /* end if */
else {
diff --git a/src/H5Oefl.c b/src/H5Oefl.c
index 571c8da..c06ecf6 100644
--- a/src/H5Oefl.c
+++ b/src/H5Oefl.c
@@ -346,7 +346,7 @@ H5O__efl_size(const H5F_t *f, bool H5_ATTR_UNUSED disable_shared, const void *_m
* Function: H5O__efl_reset
*
* Purpose: Frees internal pointers and resets the message to an
- * initialial state.
+ * initial state.
*
* Return: Non-negative on success/Negative on failure
*
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index bf448a6..5f5782c 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -2596,10 +2596,10 @@ done:
/*-------------------------------------------------------------------------
* Function: H5Pset_sieve_buf_size
*
- * Purpose: Sets the maximum size of the data seive buffer used for file
+ * Purpose: Sets the maximum size of the data sieve buffer used for file
* drivers which are capable of using data sieving. The data sieve
* buffer is used when performing I/O on datasets in the file. Using a
- * buffer which is large anough to hold several pieces of the dataset
+ * buffer which is large enough to hold several pieces of the dataset
* being read in for hyperslab selections boosts performance by quite a
* bit.
*
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c
index 4f43a79..70b0930 100644
--- a/src/H5Tcommit.c
+++ b/src/H5Tcommit.c
@@ -1296,7 +1296,7 @@ H5T_get_actual_type(H5T_t *dt)
/*-------------------------------------------------------------------------
* Function: H5T_save_refresh_state
*
- * Purpose: Save state for datatype reconstuction after a refresh.
+ * Purpose: Save state for datatype reconstruction after a refresh.
*
* Return: SUCCEED/FAIL
*
@@ -1336,7 +1336,7 @@ done:
/*-------------------------------------------------------------------------
* Function: H5T_restore_refresh_state
*
- * Purpose: Restore state for datatype reconstuction after a refresh.
+ * Purpose: Restore state for datatype reconstruction after a refresh.
*
* Return: SUCCEED/FAIL
*
diff --git a/src/H5Tnative.c b/src/H5Tnative.c
index 7574748..f83e9c3 100644
--- a/src/H5Tnative.c
+++ b/src/H5Tnative.c
@@ -579,7 +579,7 @@ H5T__get_native_integer(size_t prec, H5T_sign_t sign, H5T_direction_t direction,
match = H5T_NATIVE_INT_MATCH_LLONG;
native_size = sizeof(long long);
}
- else { /* If no native type matches the querried datatype, simply choose the type of biggest size. */
+ else { /* If no native type matches the queried datatype, simply choose the type of biggest size. */
match = H5T_NATIVE_INT_MATCH_LLONG;
native_size = sizeof(long long);
}
@@ -838,7 +838,7 @@ H5T__get_native_bitfield(size_t prec, H5T_direction_t direction, size_t *struct_
native_size = 8;
align = H5T_NATIVE_UINT64_ALIGN_g;
}
- else { /* If no native type matches the querried datatype, simply choose the type of biggest size. */
+ else { /* If no native type matches the queried datatype, simply choose the type of biggest size. */
tid = H5T_NATIVE_B64;
native_size = 8;
align = H5T_NATIVE_UINT64_ALIGN_g;
diff --git a/src/H5WB.c b/src/H5WB.c
index 7be258d..d9b9c5e 100644
--- a/src/H5WB.c
+++ b/src/H5WB.c
@@ -153,10 +153,10 @@ H5WB_actual(H5WB_t *wb, size_t need)
/* Sanity check */
assert(wb->actual_size > wb->wrapped_size);
- /* Check if we can re-use existing buffer */
+ /* Check if we can reuse existing buffer */
if (need <= wb->alloc_size)
HGOTO_DONE(wb->actual_buf);
- /* Can't re-use existing buffer, free it and proceed */
+ /* Can't reuse existing buffer, free it and proceed */
else
wb->actual_buf = H5FL_BLK_FREE(extra_buf, wb->actual_buf);
} /* end if */
diff --git a/src/H5Zfletcher32.c b/src/H5Zfletcher32.c
index e5b98be..37f1381 100644
--- a/src/H5Zfletcher32.c
+++ b/src/H5Zfletcher32.c
@@ -104,7 +104,7 @@ H5Z__filter_fletcher32(unsigned flags, size_t H5_ATTR_UNUSED cd_nelmts,
}
/* Set return values */
- /* (Re-use the input buffer, just note that the size is smaller by the size of the checksum) */
+ /* (Reuse the input buffer, just note that the size is smaller by the size of the checksum) */
ret_value = nbytes - FLETCHER_LEN;
}
else { /* Write */
diff --git a/src/H5private.h b/src/H5private.h
index a77624a..14a0ac3 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1582,7 +1582,7 @@ H5_DLL herr_t H5CX_pop(bool update_dxpl_props);
H5_PUSH_FUNC \
{
-/* Use this macro for package-level functions which propgate errors, but don't issue them */
+/* Use this macro for package-level functions which propagate errors, but don't issue them */
#define FUNC_ENTER_PACKAGE_NOERR \
{ \
FUNC_ENTER_COMMON_NOERR(H5_IS_PKG(__func__)); \
@@ -1600,7 +1600,7 @@ H5_DLL herr_t H5CX_pop(bool update_dxpl_props);
H5_PUSH_FUNC \
{
-/* Use this macro for staticly-scoped functions which propgate errors, but don't issue them */
+/* Use this macro for staticly-scoped functions which propagate errors, but don't issue them */
/* And that shouldn't push their name on the function stack */
#define FUNC_ENTER_PACKAGE_NOERR_NOFS \
{ \