summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* OESS-168: Remove clang warnings. (#1124)H. Joe Lee2021-11-052-12/+22
| | | | | | | | | | | * OESS-168: Remove clang warnings. * OESS-168: Remove clang warnings. * Committing clang-format changes * OESS-168: Address @derobins review for FALLTHROUGH. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* New references for Dimension Scale APIs (#1139)jhendersonHDF2021-11-053-25/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Enable usage of new-style references with dimension scale APIs * Add API to check if an object ID represents a native connector object * Modified code to use new function H5DSwith_new_ref to determine if new references should be used with Dimension Scales. The new function return TRUE if non-native connector is used or if H5_DIMENSION_SCALES_WITH_NEW_REF varible is define at configure time (--enable-dimension-scales-with-new-ref). Tested on jelly. ToDo: generate testing file on BE system and enable the test; add flag to CMake; test netCDF-4 with the new references. * Adding new test files generated on BE system (hedgehog) created by 32 and 64-bit library. test_ds chokes on test_ds_le_new_ref.h5 on BE system; test passes for test_ds_be_new_ref-32bit.h5 for the 32-bit library and fails for the 64-bit library, and vice versa. I am checking the files for further investigation; but current implementation of the new references is not portable between LE and BE systems, and 32 and 64-bit systems. * Minor fixes for testing issues * Update test_ds.c Enabled broken test; tests pass now. * Update RELEASE.txt Documented new option to use new references with the HDF5 dimension scales APIs (H5DS*). * Update MANIFEST for new 32-bit new-style references test file for H5DS APIs * Update 'dimension scales w/ new-style refs' feature based on review Co-authored-by: Elena <epourmal@hdfgroup.org>
* OESS-168: Remove clang warnings. (#1105)H. Joe Lee2021-11-041-33/+33
| | | | | | | | | | | | | * OESS-168: Remove clang warnings. * Committing clang-format changes * OESS-168: Address @soumagne review. * Committing clang-format changes * OESS-168: Address @soumagne review. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* OESS-168: Remove clang warnings. (#1127)H. Joe Lee2021-11-021-6/+6
| | | | | * OESS-168: Remove clang warnings. * OESS-168: Address @lrknox clang-format review.
* Removes the "try free" behavior from the skip lists (#1126)Dana Robinson2021-10-222-470/+200
| | | | | | | | | | | | | | * Removes the "try free" behavior from the skip lists This was only used in the ID code when iterating and a callback could delete IDs. It is not used anywhere else in the library and is now pointless overhead. Also quiets the const warnings when returning stored elements. They only need to be const with respect to the skip list code, which should never modify them. The library can do whatever it wants with the elements it stored. * Formatted source
* OESS-168: Remove clang warnings. (#1117)H. Joe Lee2021-10-211-1/+1
|
* Fix map open to use correct VOL argument structure (#1116)jhendersonHDF2021-10-211-1/+3
| | | Fix map iterate by setting key memory type ID field
* OESS-168: Remove clang warnings. (#1076)H. Joe Lee2021-10-081-9/+9
|
* Fix bug with cross platform compatibility of references within vlens. (#1064)Neil Fortner2021-10-011-2/+2
| | | No testing yet.
* Fix Mirror, HDFS and ROS3 case statements for VFD value in H5trace (#1062)jhendersonHDF2021-09-301-6/+6
|
* Update compact dataset I/O routines to handle driver-level memory copy (#1054)jhendersonHDF2021-09-304-13/+145
| | | | | | | | | | * Update compact dataset I/O routines to handle driver-level memory copy * Combine compact I/O read/write struct into single I/O struct Rename CTL memory copy flag and H5Fquery routine to get file driver structure * Add RELEASE.txt entry for new "ctl" memory copy operation
* VFD plugins (#602)jhendersonHDF2021-09-2943-500/+2589
| | | | | | | | | | | | | | | | | * Implement support for loading of Virtual File Drivers as plugins Fix plugin caching for VOL connector and VFD plugins Fix plugin iteration to skip paths that can't be opened * Enable dynamic loading of VFDs with HDF5_DRIVER environment variable * Temporarily disable error reporting during H5F_open double file open * Default to using HDstat in h5_get_file_size for unknown VFDs * Use macros for some environment variables that HDF5 interprets * Update "null" and "ctl testing" VFDs
* Update version to 1.13.0-7 after snapshot release 1.13.0-6. (#1048)Larry Knox2021-09-291-2/+2
|
* Update Platforms Tested in RELEASE.txt. (#1045)hdf5-1_13_0-rc6Larry Knox2021-09-281-2/+2
| | | | | | * Update Platforms Tested in RELEASE.txt. Remove Tested Configuration Features Summary for updated replacement. * Set version to 1.13.0-6 for rc6 snapshot.
* VFD ctl feature (#981)jhendersonHDF2021-09-2317-146/+526
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added "ctl" callback to the VFD interface, and the associated H5FDctl() and H5FD_ctl() calls. Modified the MPIO VFD accordingly -- specifically: Added ctl() call with op-code support to expose rank, size, and communicator. Modified H5FD_mpi_get_rank(), H5FD_mpi_get_size(), and H5FD_mpi_get_comm() to use the new ctl() callback. In passing removed the const qualifier from the file parameter of these functions, as the file parameter of the ctl callback is not const. Deleted the old H5FD__mpio_mpi_rank(), H5FD__mpio_mpi_size(), and H5FD__mpio_communicator() calls from the MPIO VFD. Deleted H5FD_class_mpi_t from H5FDprivate.h, and modified the MPIO VFD accordingly. Note that all VFDs now use H5FD_class_t, with no special class for VFDs that that support MPI. Some minor touch ups to the Neil's selection I/O mods in passing. Tested serial and parallel, debug and production on charis and jelly. * Reserve a range of VFD "ctl" opcodes for library and experimental usage * Add "ctl" callbacks to passthrough VFDs * Add RELEASE.txt entry for "ctl" callback * Use H5FDopen with H5F_ACC_RDWR flag instead of H5F_ACC_TRUNC in vfd test * Remove handling of passthrough "ctl" flag from multi VFD * Move logic for testing H5FD_CTL__TEST_OPCODE into a testing VFD Revise description of "ctl" callback in RELEASE.txt Remove unused H5FD_CTL__NUM_OPCODES definition Fix some warnings in multi VFD Co-authored-by: mainzer <mainzer#hdfgroup.org>
* Modified gcc/clang warning suppression macros to account for some warnings ↵Sean McBride2021-09-1610-106/+134
| | | | | | | | | | | | | | | | | flags being supported by one compiler but not the other (#379) * Committing clang-format changes * Fixed GCC warning suppression pragmas to also work with clang H5_GCC_DIAG_ON remains gcc-only. Added a new H5_CLANG_DIAG_ON that's clang-only, but it's not used anywhere currently. Added a new H5_GCC_CLANG_DIAG_ON that works with both compilers, which afterall support mostly the same warnings. Changed almost all uses of H5_GCC_DIAG_ON to use H5_GCC_CLANG_DIAG_ON, with the exception of a couple, where they really were suppressing gcc-only warnings. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fix several warnings (#720)jhendersonHDF2021-09-1413-33/+47
|
* H5Ztrans: (feature) Improved H5Z_xform_noop() and H5Z_xform_create() … (#933)Jan-Willem Blokland2021-09-131-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * H5Ztrans: (feature) Improved H5Z_xform_noop() and H5Z_xform_create() function - Made a small improvement for H5Z_xform_noop() function. Now, the function will also return TRUE if the data transform function expression = "x". For this case, the HDF5 library behaves in a similar fashion as the case when no data transform function has been specified. - Improved the inline documentation of the function H5Z_xform_create() such it is more inline with the rest of the code. * Committing clang-format changes * H5Ztrans: (feature) Added 3 tests for improved H5Z_xform_noop() function - Added serial test with data transform expression = "x" to verify the improved H5Z_xform_noop() function behaves as expected. - Added 2 parallel tests with data transform expression = "x" in combination with a filter. Before, these tests will fail but with the improved H5Z_xform_noop() function they work and result in the expected behavior. - Small bug fix for one of parallel filter tests. * Committing clang-format changes * H5Ztrans: (feature) Added release note about detection of the simple data transform function "x". - Added a brief explanation about the implemented improvement of the detection of the simple data transform function "x" to the RELEASE.txt file. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Fix various warnings and issues in doxygen doc generation (#994)Allen Byrne2021-09-103-43/+11
| | | | | * Fix various warnings and issues in doxygen doc generation * Add new file to list
* Update copyright headers with reproduction notice in 5 files (#993)Larry Knox2021-09-082-17/+14
| | | | | | | | | * Update copyright headers with reproduction notice in 5 files that did not match terms in COPYING file . * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Small doxygen fixes plus simple doc fixes (#989)Allen Byrne2021-09-042-10/+8
| | | | Change doxygen generated file location Clang format override for flags
* Synch CMake doxygen options with autotools configure (#983)Allen Byrne2021-09-021-1/+2
|
* A batch of life-cycle examples for different modules (#654)Gerd Heber2021-09-0132-1383/+1166
| | | | | | | | | * Create a tag file for permalinks. * Added DOXYGEN_TAG_FILE. * Added Doxygen life-cycle examples for different modules. Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* More various warnings (#958)Sean McBride2021-08-254-22/+22
| | | | | | | | | | | | | * Committing clang-format changes * Fixed various -Wdouble-promotion warnings * Fixed -Wshadow warning for `optopt` conflict On macOS at least, there is a global various named `optopt` in unistd.h. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* More clang tidy (#908)Sean McBride2021-08-236-42/+42
| | | | | | | | | | | | | | | | | | | * Pacify clang-analyzer-unix.cstring.NullArg * Apply some bugprone-suspicious-string-compare * Apply some readability-simplify-boolean-expr * Apply some readability-make-member-function-const * Apple some bugprone-macro-parentheses * Changed an f suffix to L for `long double` * Applied some readability-uppercase-literal-suffix automatically * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Develop windows compiler fixes (#912)Allen Byrne2021-08-191-0/+2
| | | | | | | | | | | | | | * Fix windows compiler issues Restore MS C++ Default exception handling behavior #885 Remove clang toolchain as it skips compiler checks * Add check and header gaurd for pwd.h * Revert change * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Correct number of args to Windows HDunsetenv macro (#939)Allen Byrne2021-08-191-1/+1
| | | | | * Correct number of args to Windows HDunsetenv macro * Correct format
* Fix formatting (#923)Allen Byrne2021-08-181-1/+1
|
* Fixes a bad memory read and unfreed memory in fsinfo code (#893)Dana Robinson2021-08-122-14/+22
| | | | | | | | | | | | | | * Fixes a bad memory read and unfreed memory in fsinfo code The segfaul from CVE-2020-10810 was fixed some time ago, but the illegal memory read and unfreed memory were not. This fix tracks some buffer sizes and errors out gracefully on errors, ensuring buffers are cleaned up and avoiding the H5FL infinite loop + abort on library close. * Committing clang-format changes Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Guard the SKIP_MPICXX macros against redefinition. (#892)David Wells2021-08-121-0/+4
|
* Unsigned comparison to 0 warning avoidance (#869)Larry Knox2021-08-021-3/+4
| | | | | | | * Added int variable for comparison with H5_VERS_RELEASE in H5.c to avoid warning that unsigned comparison < 0 is always false, which is known, but for later versions the comparison can possibly be true. * Better solution for avoiding warning that unsigned comparison < 0.
* Added int variable for comparison with H5_VERS_RELEASE in H5.c to avoid (#866)Larry Knox2021-07-301-1/+3
| | | | warning that unsigned comparison < 0 is always false, which is known, but for later versions the comparison can possibly be true.
* Updates a comment in H5mpi.c (#863)Dana Robinson2021-07-281-1/+1
| | | MPI_Type_struct() is an MPI-1 call we no longer use.
* Remove version-check for relnum in H5check. (#812)Allen Byrne2021-07-272-93/+154
| | | | | | | | | | | | | | | | | | | | | | | | | * Remove version-check for relnum in H5check. * Add in release exception code check * Fix typos * Fix more typos * Rework comments * format change * format whitespace * Library version must be less than or equal to headers * Need the NOT version of the compare * Enable release+1 check for PASS * Add release note * Update note
* Fixes a couple of warnings: (#849)Dana Robinson2021-07-221-2/+2
| | | | | | | - warn_unused_result warnings from h5jamgentest and j5stat_gentest that were triggered by write(2) calls where we didn't check the return value - A missing callback in the NULL VOL connector - A possibly uninitialized property list pointer
* Avoid popping API context when one wasn't pushed (#848)jhendersonHDF2021-07-221-3/+16
|
* Allow parallel filters feature for comm size of 1 (#840)jhendersonHDF2021-07-201-3/+11
|
* Remove checks for winsock2.h (#813)Dana Robinson2021-07-062-10/+9
| | | | This is only needed on Windows and always available, so there's no need to check for it.
* Fixes parallel issues from recent C99 changes (#809)Dana Robinson2021-06-3018-240/+248
| | | | | | | * Fixes parallel issues from recent C99 changes * Adds MPE FUNC --> __func__ changes missed in earlier PRs * Even more missed FUNC --> __func__ macros
* Assume C99 types exist in H5detect.c (#808)Dana Robinson2021-06-291-90/+0
|
* Removes type guesses when C99 types are missing (#807)Dana Robinson2021-06-291-68/+0
|
* Brings the tools getopt(3) replacement into the main library (#803)Dana Robinson2021-06-292-0/+215
| | | | | | | * Moves get_option from the tools library to the C library * Adds H5 prefix to get_option call and variables * Renames the H5_get_option long options struct and enum
* Cleans up POSIX/C bits in H5private.h (#804)Dana Robinson2021-06-292-452/+448
| | | | | | | | | | | | | | | | | | * Cleans up POSIX/C bits in H5private.h * Assume difftime exists (C89) * Reorg AC_CHECK_HEADERS so headers are in alphabetical order * Split off networking-related AC_CHECK_HEADERS * Remove unused UNAME_CYGWIN from configure.ac * Remove checks for unused sys/timeb.h * Tidying pass over H5private.h HD prefix macros * Tidy H5win32defs.h * Add HD prefix to various scanf calls * Committing clang-format changes * Fixes to the alarm(2) code used in the tests to make Windows happy Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
* Removes obsolete equivalents of C99's __func__ (#800)Dana Robinson2021-06-2917-161/+155
|
* Assume frexpl/f and fabsl/f, which are C99 (#799)Dana Robinson2021-06-251-12/+2
|
* Removes checks for signal and set/longjmp, which are C89 (#798)Dana Robinson2021-06-252-52/+4
| | | Also removes checks for setjmp.h and stddef.h
* Reorganization of C and POSIX headers in H5public.h & H5private.h (#793)Dana Robinson2021-06-242-17/+16
| | | | | | | | | * Reorganization of C and POSIX headers in H5public.h & H5private.h Consolidated and removed duplicates * It turns out Windows has sys/types.h Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
* Removes ancient Autotools cruft (#790)Dana Robinson2021-06-241-19/+2
|
* Cleans up some POSIX header bits in H5private.h (#783)Dana Robinson2021-06-231-27/+11
|
* Removes checks and work-arounds for strtoll and strtoull (#769)Dana Robinson2021-06-182-130/+1
| | | | | * Removes checks and work-arounds for strtoll and strtoull * Removes CMake checks for strtoll and strtoull