summaryrefslogtreecommitdiffstats
path: root/tools/h5jam
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5jam')
-rw-r--r--tools/h5jam/getub.c8
-rw-r--r--tools/h5jam/h5jam.c20
-rw-r--r--tools/h5jam/h5jamgentest.c18
-rw-r--r--tools/h5jam/h5unjam.c26
-rw-r--r--tools/h5jam/tellub.c10
5 files changed, 41 insertions, 41 deletions
diff --git a/tools/h5jam/getub.c b/tools/h5jam/getub.c
index 01756a5..3d9cbd1 100644
--- a/tools/h5jam/getub.c
+++ b/tools/h5jam/getub.c
@@ -39,11 +39,11 @@ static struct long_options l_opts[] = {
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: Print the usage message
+ * Purpose: Print the usage message
*
* Return: void
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -62,11 +62,11 @@ usage (const char *prog)
*
* Purpose: Parse the command line for the h5dumper.
*
- * Return: Success:
+ * Return: Success:
*
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
diff --git a/tools/h5jam/h5jam.c b/tools/h5jam/h5jam.c
index 0b4b37d..5e4d885 100644
--- a/tools/h5jam/h5jam.c
+++ b/tools/h5jam/h5jam.c
@@ -63,11 +63,11 @@ static struct long_options l_opts[] = {
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: Print the usage message
+ * Purpose: Print the usage message
*
* Return: void
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -94,11 +94,11 @@ usage (const char *prog)
*
* Purpose: Parse the command line for the h5dumper.
*
- * Return: Success:
+ * Return: Success:
*
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -146,7 +146,7 @@ parse_command_line (int argc, const char *argv[])
* Return: Success: 0
* Failure: 1
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -315,7 +315,7 @@ main (int argc, const char *argv[])
}
}
- /* copy the HDF5 from starting at usize to starting at newubsize:
+ /* copy the HDF5 from starting at usize to starting at newubsize:
* makes room at 'from' for new ub */
/* if no current ub, usize is 0 */
copy_some_to_file (h5fid, ofid, usize, newubsize,
@@ -362,7 +362,7 @@ main (int argc, const char *argv[])
* Return: Success: last byte written in the output.
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -478,10 +478,10 @@ copy_some_to_file (int infid, int outfid, hsize_t startin, hsize_t startout,
/*-------------------------------------------------------------------------
* Function: compute_user_block_size
*
- * Purpose: Find the offset of the HDF5 header after the user block:
+ * Purpose: Find the offset of the HDF5 header after the user block:
* align at 0, 512, 1024, etc.
* ublock_size: the size of the user block (bytes).
- *
+ *
* Return: Success: the location of the header == the size of the
* padded user block.
* Failure: none
@@ -489,7 +489,7 @@ copy_some_to_file (int infid, int outfid, hsize_t startin, hsize_t startout,
* Return: Success: last byte written in the output.
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
diff --git a/tools/h5jam/h5jamgentest.c b/tools/h5jam/h5jamgentest.c
index ada206b..a3a99ca 100644
--- a/tools/h5jam/h5jamgentest.c
+++ b/tools/h5jam/h5jamgentest.c
@@ -237,7 +237,7 @@ float dset2_1[10], dset2_2[3][5];
H5Dwrite(dataset, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset2_1);
H5Sclose(space);
H5Dclose(dataset);
-
+
/* dset2.2 */
dims[0] = 3; dims[1] = 5;
space = H5Screate_simple(2, dims, NULL);
@@ -367,7 +367,7 @@ char *bp;
H5Dwrite(dataset, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset2_1);
H5Sclose(space);
H5Dclose(dataset);
-
+
/* dset2.2 */
dims[0] = 3; dims[1] = 5;
space = H5Screate_simple(2, dims, NULL);
@@ -392,7 +392,7 @@ char *bp;
memset(buf,'\0',512);
bp = buf;
for (u = 0; u < strlen(pattern); u++) {
- *bp++ = pattern[u%10];
+ *bp++ = pattern[u%10];
}
HDwrite(fd,buf,512);
@@ -511,7 +511,7 @@ char *bp;
H5Dwrite(dataset, H5T_NATIVE_FLOAT, H5S_ALL, H5S_ALL, H5P_DEFAULT, dset2_1);
H5Sclose(space);
H5Dclose(dataset);
-
+
/* dset2.2 */
dims[0] = 3; dims[1] = 5;
space = H5Screate_simple(2, dims, NULL);
@@ -536,7 +536,7 @@ char *bp;
memset(buf,'\0',1024);
bp = buf;
for (i = 0; i < 513; i++) {
- *bp++ = pattern[i%10];
+ *bp++ = pattern[i%10];
}
HDwrite(fd,buf,1024);
@@ -566,10 +566,10 @@ char *bp;
/* fill buf with pattern */
bp = buf;
for (i = 0; i < size; i++) {
- *bp++ = pattern[i%10];
+ *bp++ = pattern[i%10];
}
-
+
HDwrite(fd,buf,size);
close(fd);
@@ -595,9 +595,9 @@ char *bp;
/* fill buf with pattern */
bp = buf;
for (i = 0; i < size; i++) {
- *bp++ = (char) i & 0xff;
+ *bp++ = (char) i & 0xff;
}
-
+
HDwrite(fd,buf,size);
close(fd);
diff --git a/tools/h5jam/h5unjam.c b/tools/h5jam/h5unjam.c
index e68d6ac..e235cb5 100644
--- a/tools/h5jam/h5unjam.c
+++ b/tools/h5jam/h5unjam.c
@@ -55,18 +55,18 @@ static struct long_options l_opts[] = {
{"delet", no_arg, 'd'},
{"dele", no_arg, 'd'},
{"del", no_arg, 'd'},
- {"de", no_arg, 'd'},
+ {"de", no_arg, 'd'},
{ NULL, 0, '\0' }
};
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: Print the usage message
+ * Purpose: Print the usage message
*
* Return: void
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -89,11 +89,11 @@ usage(const char *prog)
*
* Purpose: Parse the command line for the h5dumper.
*
- * Return: Success:
+ * Return: Success:
*
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -148,7 +148,7 @@ parse_command_line(int argc, const char *argv[])
* Return: Success: 0
* Failure: 1
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -207,7 +207,7 @@ main(int argc, const char *argv[])
/* no user block to remove: message? */
error_msg(progname, "\"%s\" has no user block: no change to file\n", input_file);
exit(EXIT_SUCCESS);
-
+
}
res = stat(input_file, &sbuf);
@@ -260,14 +260,14 @@ main(int argc, const char *argv[])
}
- /* copy from 0 to 'usize - 1' into ufid */
+ /* copy from 0 to 'usize - 1' into ufid */
if (!do_delete) {
copy_to_file( ifid, ufid, 0, (ssize_t) usize);
}
- /* copy from usize to end of file into h5fid,
+ /* copy from usize to end of file into h5fid,
* starting at end of user block if present
- */
+ */
copy_to_file( ifid, h5fid, (ssize_t) usize, (ssize_t)(fsize - (ssize_t)usize) );
@@ -279,12 +279,12 @@ main(int argc, const char *argv[])
}
/*
- * Copy 'how_much' bytes from the input file to the output file,
+ * Copy 'how_much' bytes from the input file to the output file,
* starting at byte 'where' in the input file.
- *
+ *
* Returns the size of the output file.
*/
-hsize_t
+hsize_t
copy_to_file( int infid, int ofid, ssize_t where, ssize_t how_much ) {
char buf[1024];
off_t to;
diff --git a/tools/h5jam/tellub.c b/tools/h5jam/tellub.c
index 75f4a64..851d01f 100644
--- a/tools/h5jam/tellub.c
+++ b/tools/h5jam/tellub.c
@@ -42,11 +42,11 @@ static struct long_options l_opts[] = {
/*-------------------------------------------------------------------------
* Function: usage
*
- * Purpose: Print the usage message
+ * Purpose: Print the usage message
*
* Return: void
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -68,11 +68,11 @@ usage (const char *prog)
*
* Purpose: Parse the command line for the h5dumper.
*
- * Return: Success:
+ * Return: Success:
*
* Failure: Exits program with EXIT_FAILURE value.
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*
@@ -116,7 +116,7 @@ parse_command_line (int argc, const char *argv[])
* Return: Success: 0
* Failure: 1
*
- * Programmer:
+ * Programmer:
*
* Modifications:
*