summaryrefslogtreecommitdiffstats
path: root/tools/h5dump/h5dump.c
Commit message (Collapse)AuthorAgeFilesLines
* [svn-r24058] Coorect usage text wrt dataset subsettingAllen Byrne2013-08-221-1/+1
|
* [svn-r24057] Add --superblock long name to parser and add tests for both ↵Allen Byrne2013-08-221-0/+1
| | | | | | --boot-block and --superblock. Tested: local linux
* [svn-r24022] any_object option should be any_pathAllen Byrne2013-08-191-1/+1
|
* [svn-r23996] HDFFV-7989: Add any_path option to search the file for paths. ↵Allen Byrne2013-08-121-1/+16
| | | | | | New test added, scripts updated, help text updated. Tested: local linux
* [svn-r23994] Correct printf % handlingAllen Byrne2013-08-121-1/+1
|
* [svn-r23991] Reorder groupingAllen Byrne2013-08-121-23/+23
|
* [svn-r23960] HDFFV-8490: Reorder and group h5dump help text.Allen Byrne2013-08-011-32/+37
| | | | Tested: local linux
* [svn-r23953] Update stream handling to allow binary mode - due to unjam fix.Allen Byrne2013-07-311-1/+1
| | | | Tested: local linux
* [svn-r23944] Move stream functions into tools lib.Allen Byrne2013-07-301-171/+5
| | | | Tested: local linux
* [svn-r23830] HDFFV-8476: Add the optional arg to the help usage text.Allen Byrne2013-06-261-5/+1
| | | | Tested: local linux
* [svn-r23829] HDFFV-8134: allow exclusion of attributes. This implements the ↵Allen Byrne2013-06-261-5/+10
| | | | | | technique and creates a test. Help changes will be added after trunk tests pass the test cycle. Tested: local linux
* [svn-r23798] HDFFV-8465: dtd reference incorrect. Fixed loading of xml files ↵Allen Byrne2013-06-201-2/+2
| | | | | | with respect to XSD file. Tested: local linux
* [svn-r23226] HDFFV-8285: suppress-ddl option: Changed file options to allow ↵Allen Byrne2013-02-041-23/+25
| | | | | | for filename F to be optional. Tested: local linux
* [svn-r23190] HDFFV-8285: Add suppress ddl option.Allen Byrne2013-01-221-148/+220
| | | | Tested: local linux
* [svn-r22921] Description:Quincey Koziol2012-10-181-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Review Coverity changes and bring them back to trunk. (QK & JK) r20402: Added #includes for h5tools.y or h5tools_utils.h as required to remedy implicit function declarations which caused compiler warnings and coverity issues 703-4 and 708-11. r20414: This is related to the previous checkin r20399. There were incorrect updates which caused incorrect behavior when no file was given. Also possible segfault when handling hyperslab options. Simplify the code changes. r20449: Description: Modified H5E_walk2_cb to check return value of H5I_object_verify. r20450: fixed coverity 813 Tested on: Mac OSX/64 10.8.2 (amazon) w/C++, FORTRAN, debug & threadsafe (too minor to require h5committest)
* [svn-r22915] Description:Quincey Koziol2012-10-171-7/+8
| | | | | | | | | | | | | | | | | | | | | | | Bring Coverity changes back to trunk: r20399: Change parse_command_line to free hand structure on error and only "leave()" at end of main. r20400: Purpose: Fix coverity issue 592 Description: Added void cast to call to H5F_sfile_assert_num() in H5F_term)interface(). There is no need to check the return value of this function in general, and there would be nothing to do even if it did fail. r20401: Added free(src_sizes) and free(src_offset). --gh Tested on: Mac OSX/64 10.8.2 (amazon) w/C++, FORTRAN, threadsafe (too minor for h5committest)
* [svn-r22716] HDFFV-8133: Add usage text to see Reference manual for compact ↵Allen Byrne2012-08-271-17/+18
| | | | subsetting.
* [svn-r22581] HDFFV-588: hdump restrictions on filename for split files. ↵Allen Byrne2012-07-161-6/+20
| | | | | | Added text and example to usage. Tested: local linux
* [svn-r22567] HDFFV-7784: add attributes to the list of file contents option ↵Allen Byrne2012-07-121-2/+6
| | | | | | | | for h5dump. This is accomplished by adding an optional value to the option (-n) Created test and reference files. Tested: local linux with cmake
* [svn-r22563] HDFFV-8095: index order of links wrongAllen Byrne2012-07-121-0/+3
| | | | | | | | Create setters for indexing options in h5trav.c to be set before the obj table is created. Revert h5trav_print to remove now duplicated parameters. Added test and testfiles. Tested: local linux with cmake
* [svn-r22528] HDFFV-4206: h5dump -w0 needed to be tested within the get ↵Allen Byrne2012-07-091-0/+3
| | | | | | option function. Tested: local linux and all H5DUMP tests still work
* [svn-r22108] Purpose:Jonathan Kim2012-03-211-0/+7
| | | | | | | | | | | HDFFV-7523 JPSS: h5dump fails to open an attribute when using the -a option to specify an attribute with a slash in the name Description: Update command line help page and test generating file. Previous commits: r22052, r22063 Tested: jam (linux32-LE), koala (linux64-LE), cmake (jam)
* [svn-r22077] Add example of multiple files for h5dump help text.Allen Byrne2012-03-151-1/+5
| | | | Tested: local linux
* [svn-r22042] HDFFV-7957-7958:Allen Byrne2012-03-121-131/+159
| | | | | Add tools error stack and check return from H5Dreference call. Tested: CMake and h5committest
* [svn-r22019] Cleanup warnings from compilesAllen Byrne2012-03-021-27/+27
| | | | Tested: local linux
* [svn-r21985] Tools must call h5tools_init before command_line parsing or ↵Allen Byrne2012-02-241-109/+172
| | | | | | | | using tools_mesg functions. Tools library uses alais variables for stdout, stderr and tools library uses HDfprintf() functions. Tested: local linux
* [svn-r21984] Correct HD prefix in toolsAllen Byrne2012-02-241-1/+1
| | | | Checked for HD support.
* [svn-r21982] Correct HD prefix in tools for exitAllen Byrne2012-02-241-1/+1
| | | | Checked for HD support.
* [svn-r21981] Correct HD prefix in tools for fprintfAllen Byrne2012-02-241-91/+91
| | | | Checked for HD support.
* [svn-r21980] Correct HD prefix in tools for *allocAllen Byrne2012-02-241-4/+4
| | | | Checked for HD support.
* [svn-r21974] Update HSIZE_T print statements to use correct macro.Allen Byrne2012-02-231-12/+12
| | | | | | Fix some more HD prefix issues in tools. Tested: local linux
* [svn-r21953] HDDFV-7560: h5dump refactoringAllen Byrne2012-02-171-5906/+56
| | | | Tested: local linux
* [svn-r21931] HDFFV-7689 - could not not use a "[" character in a dataset name.Allen Byrne2012-02-131-22/+24
| | | | | | A second problem also discovered was an if statement that should have comapered lengths of a string actually was comapring addreeses. Once thatt was fixed, The "[" character could be used but broke other functionality. Consultation with tools team resulted in the creation of a "--no-subset" option to disable interpretation of "[" character as a subsetting compact-form. This also eliminated and cleaned up the code containing the plomatic if statement. Tested: local linux and added test, CMake updated autotools test to be added next.
* [svn-r21378] The tools used "%hhd" to print signed char. But VMS doesn't ↵Raymond Lu2011-09-131-2/+10
| | | | | | know it. So I used H5_VMS to have a different way ("%hd") to print it. Tested on jam. Not tested on VMS yet. Simple change.
* [svn-r21210] Correct location of xml schema files. JIRA HDFFV-7688Allen Byrne2011-08-101-5/+5
| | | | Tested: local linux
* [svn-r20885] Description:Quincey Koziol2011-05-201-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring Coverity changes back to trunk: r20340: Address coverity issue 248. Set freed pointer to NULL if realloc fails, then check for NULL before attempting to close array of handles stored in memory addressed by pointer. r20341: Added initialization udata.path = NULL; udata.visited = NULL; to prevent unintialized use after done: label. Do C-style initialization AFTER all variable definitions. r20342: Fix valgrind error in H5DUMP-XML-tall.h5 r20343: Addressed Coverity issue 591 - check the return value of H5S_SELECT_ITER_RELEASE. r20344: Added initialization udata.path = NULL; to prevent uninitialized used after done: label r20347: Purpose: Fix memory leak in overhead.c Description: Fixed leak in test() in overhead.c where array "had" was never freed. r20348: Addressed Coverity issue 705 - added prototype for resize_configs_are_equal to cache_common.h. r20392: Purpose: Fix coverity issues 1677 and 1678 Description: Added return value checking for 4 funciton calls in H5tools_get_symlink_info(). r20394: Purpose: Fix coverity issues 1674 and 1675 Description: Modified H5Epush2() and H5E_printf_stack() to keep track of whether va_start() has been called, and to call va_end() at the end if so. r20395: Should be H5MM_calloc(count * sizeof(void*)). Fixed --gh r20396: Should be H5MM_calloc(count * sizeof(void*)). Fixed. --gh Tested on: Mac OSX/32 10.6.7 (amazon) w/debug & production (h5committested on branch)
* [svn-r20796] Refactor print_data_region_blocks/ponts to remove context ↵Allen Byrne2011-05-111-9/+11
| | | | | | | | passed in by value. The print functions needed an independent context with only the current indent level passed in by argument. Also synched the two routines logical flows and corrected a mem_space error. h5dump (and h5stat, h5jam/h5unjam) help option not tested. Added h5dump parse_command_line technique for h5stat and h5jam/unjam and created testfiles. Tested: local linux
* [svn-r20713] Packed Bits Merge:Allen Byrne2011-05-031-1858/+1932
| | | | | | | | | removed option defines and #ifdef/#endif refactored all printf to HDfprintf in h5dump.c formatted and indention improvements synched with 1.8 branch Tested: local linux
* [svn-r20677] Merge packed bits option from 1.8 branch to trunk. CMake only. ↵Allen Byrne2011-04-291-2/+248
| | | | | | Autotools merge to come. Tested: local Linux
* [svn-r20626] Albert's test on bp reveals that the dumper had assertion ↵Raymond Lu2011-04-251-36/+40
| | | | | | | | failure when it tried to display empty attribute data. I added a check for empty attribute in h5dump.c. I also added a check for empty dataset in tools/lib/h5tools.c. Tested on jam. But I tested the same changes in 1.8 on jam, linew, and amani.
* [svn-r20539] Description:Quincey Koziol2011-04-181-114/+179
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bring Coverity changes back to trunk: r20276: Add recursive is vlen string function. Cleanup resource leaks for issues: 200,202,329,688,811,812 r20277: Check types and close by adding error section: issue 687 r20278: Replaced implicit pointer conversion with (ocrt_info.new_obj != NULL). r20280: Addressed coverity issues 927-929 & 583. The real issue is failure to check file name length -- at least at the H5FD interface level. This needs more work, but at least I have dealt with the issue in H5FDfamily.c r20337: H5O_type_t obj_type = H5O_TYPE_UNKNOWN; r20338: Added udata.name = NULL; to prevent potential uninitialized use after done: label. r20339: coverity issues: 686,828,1670-1673,1707-1711 Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode FreeBSD/32 8.2 (loyalty) w/gcc4.6, in debug mode FreeBSD/64 8.2 (freedom) w/gcc4.6, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
* [svn-r20378] Purpose:Jonathan Kim2011-03-301-1/+2
| | | | | | | | | | | | | | | | | | | Bug 2182 - h5ls and h5dump: update to use --enable-error-stack among tools, also update related descriptions Description: Decided to use --enable-error-stack long option name only to display error stack messages from HDF5 lib among tools. Updated to unify option name to '--enable-error-stack' for printing HDF5 error stack messages for HDF5 tools. h5ls and h5dump for now. For h5ls, this replaces "-e/--errors" option, which is deprecated. For h5dump, remove -E from help page and RM , which was added by mistake before release1.8.7. Help page and RM got updated. Updated test case. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Windows (32-LE)
* [svn-r20349] BZ1725: H5DUMP displays type of reference for H5T_REFERENCEAllen Byrne2011-03-251-10/+6
| | | | Tested: local linux
* [svn-r20285] Purpose:Jonathan Kim2011-03-211-2/+2
| | | | | | | | | | | | | | | | | Improve the previous fix for Bug 2216 - GMQS: h5diff - memory leak when compares vlen string in dataset or attributes Description: Related to the previous checkin r20270 and r20266. Improve h5tools_detect_vlen() code for better performance. H5Tdetect_class already recusive on given type so don't need to be part of recusive call again. Also improve error handlings in h5tools_detect_vlen and h5tools_detect_vlen_str functions. Also updated h5ls and h5dump code accordingly. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
* [svn-r20270] Purpose:Jonathan Kim2011-03-181-6/+2
| | | | | | | | | | | | | | | | Improve the previous fix for Bug 2216 - GMQS: h5diff - memory leak when compares vlen string in dataset or attributes Description: Improve the fix along with the previous checkin r20266. Add a new function to tool lib, h5tools_detect_vlen_data() which return TRUE if include any kind of vlen data all at once, either VLEN-data or VLEN-string and so on. Also updated h5ls and h5dump code accordingly. Tested: jam (linux32-LE), amani (linux64-LE), heiwa (linuxppc64-BE), tejeda (mac32-LE), linew (solaris-BE), Cmake - jam
* [svn-r20247] Change name of new VLEN function from H5Tdetect_vlen_str to ↵Allen Byrne2011-03-141-2/+6
| | | | | | | | h5tools_detect_vlen_str to match other functions in tools lib. Added back test for H5Tdetect_class of H5T_VLEN after each instance of above function to catch all VLEN types in h5dump. Tested: local linux
* [svn-r20218] Valgrind fix for memory leak in print_datatype which used an ↵Allen Byrne2011-03-091-1/+3
| | | | | | allocation function in a printf(). Tested: local linux and valgrind
* [svn-r20217] Valgrind indicated error in reading past end of buffer.Allen Byrne2011-03-091-1/+4
| | | | Tested: local linux and valgrind
* [svn-r20216] Valgrind fix for memory leak in h5tools_dump_xxx which is fixed ↵Allen Byrne2011-03-091-2/+23
| | | | | | | | by adding a new function; htri_t H5Tdetect_vlen_str(hid_t tid) to h5tools. This needs to be called before any H5Aread/H5Dread and if TRUE, then call vlen_reclaim function after the corresponding h5tools_dump_xxx(). Tested: local linux and valgrind
* [svn-r20211] Valgrind indicated error in writing past buffer. Contary to ref ↵Allen Byrne2011-03-091-1/+1
| | | | | | man H5O_get_comment does not return null char in size. Tested: local linux and valgrind