summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Move a statement under some declarations since some vintages of VisualDavid Young2019-11-131-1/+2
| | | | Studio don't like declarations after statements.
* Document H5D__chunk_mem_xfree_wrapper().David Young2019-11-131-0/+5
|
* Undo my changes to the HD macros, hadn't really intended those to be onDavid Young2019-11-131-7/+7
| | | | this branch....
* Cast to the parameter type, H5VL_token_t *, instead of to unsigned char *.David Young2019-11-131-1/+1
| | | | | (H5VL_token_t, too, probably should turn from a typedef for a constant-length array to an array encapsulated in a struct.)
* Change hdset_reg_ref_t and H5R_ref_t from arrays of unsigned char toDavid Young2019-11-131-2/+6
| | | | | | | | | | | | | | | | | structs containing those arrays. Encapsulating the arrays in this way makes it easier to write and think about pointers to these types, casts to/from these types, etc. An interesting side-effect that we probably should *not* rely on is that the struct-encapsulation changes the alignment so that some GCC warnings about casts that increase the alignment requirement of the operand go away. Warnings like that have to be taken seriously: I will add -Werror=cast-align to the default compiler flags so that they stop the build quickly. GCC warnings led me to some surprising casts in test/trefer.c. I found that it was possible to make many simplifications after introducing the struct-encapsulation that I described, above.
* Make many warnings about H5T_copy() calls that discard const qualifiersDavid Young2019-11-132-2/+2
| | | | into a few warnings in H5T_copy() itself.
* Use FUNC_ENTER_STATIC_NOERR instead of FUNC_ENTER_STATIC for a functionDavid Young2019-11-131-1/+1
| | | | | that does not generate its own error, so GCC does not warn that err_occurred (or whatever it is called) is unused or set and unused.
* Explicitly initialize `type_flags`; the compiler does not realize thatDavid Young2019-11-131-2/+2
| | | | it is set before use by passing it as a reference to another function.
* Initialize a couple of return values to avoid used-before-set warnings.David Young2019-11-131-2/+2
|
* Initialize a couple of variables that the compiler does not realize areDavid Young2019-11-132-2/+2
| | | | initialized when they're passed by reference to functions.
* To quiet a warning, initialize some `struct timeval`s that the compilerDavid Young2019-11-131-2/+2
| | | | does not realize are always set before use by `gettimeofday`.
* Delete unused variable.David Young2019-11-131-1/+0
|
* Change a signed variable to unsigned to avoid a warning about the signDavid Young2019-11-131-1/+1
| | | | being lost by a cast.
* Delete variables that are unused or set and unused.David Young2019-11-131-12/+0
|
* Format a pointer with %p to avoid a gripe about casting a pointer to anDavid Young2019-11-131-3/+2
| | | | integer.
* Merge remote-tracking branch 'hdf5/develop' into add-werror-and-squash-some toDavid Young2019-11-1235-289/+665
|\ | | | | | | see if new warnings-as-errors have cropped up.
| * Fix issue where H5R__reopen_file did not make the file "post open"Neil Fortner2019-11-122-1/+10
| | | | | | | | callback.
| * Merge pull request #2032 in HDFFV/hdf5 from ↵Neil Fortner2019-11-0834-289/+656
| |\ | | | | | | | | | | | | | | | | | | ~NFORTNE2/hdf5_naf:vlget_file_type to develop * commit '1dbec40d465072540f8507c524ae7b909a6b1cf0': Implement H5VLget_file_type() to return a copy of a datatype with the location set to be in a file. Only meant to be used by VOL connectors. Implement H5VLpeek_connector_id() to support connectors querying their own IDs. Fix app_ref with connector IDs in a couple places (external VOLs registered as default through ENV should be visible to the application). Modify vlen and reference interfaces to work with arbitrary VOL connectors. Implement file "post open" specific callback, to enable connectors to update their file structs after a wrap context has been set.
| | * Implement H5VLget_file_type() to return a copy of a datatype with theNeil Fortner2019-11-0834-289/+656
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | location set to be in a file. Only meant to be used by VOL connectors. Implement H5VLpeek_connector_id() to support connectors querying their own IDs. Fix app_ref with connector IDs in a couple places (external VOLs registered as default through ENV should be visible to the application). Modify vlen and reference interfaces to work with arbitrary VOL connectors. Implement file "post open" specific callback, to enable connectors to update their file structs after a wrap context has been set.
* | | Merge remote-tracking branch 'hdf5/develop' into add-werror-and-squash-someDavid Young2019-11-081-1/+18
|\ \ \ | |/ / | | | | | | to pick up the NetBSD-compatibility changes that I recently merged.
| * | Merge pull request #1984 in HDFFV/hdf5 from ~DYOUNG/netbsd:develop to developDavid Young2019-11-051-1/+18
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '0b721858e46a317c370a24115032d5be41688f67': Make these scripts relocatable again: derive a relative path for the original installation prefix from the examples prefix. Use that relative path to locate the current installation prefix, always. Fall back to an absolute installation prefix if the relative path cannot be derived. Get the path to prefix right: needs a ../ to back out of subdirectory c/. Make this script relocatable again: derive a relative path for the original installation prefix from the examples prefix. Use that relative path to locate the current installation prefix, always. Fall back to an absolute installation prefix if the relative path cannot be derived. Let us override the examples directory using --with-examplesdir=DIR. This is handy for NetBSD where HDF5 examples are installed by convention in $prefix/share/examples/hdf5/ rather than in ${prefix}/share/hdf5_examples/, which is the HDF5 default. Follow longstanding execv convention for compatibility with NetBSD. Under the examples directories, always find the installed HDF5 executables and scripts using @prefix@ instead of a relative path, because the number of ../ in the relative path will be different on NetBSD than on other systems. Make the HDF5 configure script grok NetBSD. For portability, insulate the HDF5 library from some system macros. Not every system has perl installed in /usr/bin/, so change the shebang (#!) line to `/usr/bin/env perl` to locate perl on the PATH. For portability, use the POSIX sh(1) string-comparison operator `=` instead of `==`.
| | * For portability, insulate the HDF5 library from some system macros.David Young2019-10-031-1/+18
| | |
* | | Change some GCC warnings to errors. Fix code to quiet some warnings.David Young2019-11-056-24/+32
|/ /
* | Change API names for get/set bitio_count. Also added H5_mpi_set_bigio_count ↵Richard Warren2019-10-233-11/+12
| | | | | | | | to H5private.h.
* | Merge pull request #2000 in HDFFV/hdf5 from ↵Jerome Soumagne2019-10-118-158/+226
|\ \ | | | | | | | | | | | | | | | | | | ~JSOUMAGNE/hdf5:fix_endian_develop to develop * commit '294e4faab724c26985867fe8ede684967da8a698': Fix encode and decode of tokens in H5VLnative
| * | Fix encode and decode of tokens in H5VLnativeJerome Soumagne2019-10-118-158/+226
| | | | | | | | | | | | | | | | | | | | | | | | Fix encode and decode of deprecated object reference addresses Make H5Rdeprec.c use tokens instead of haddr_t Fix H5Oopen_by_addr() to serialize addr to token
* | | Unify code between H5Lcopy and H5LmoveJordan Henderson2019-10-102-9/+14
| | |
* | | Fix func enter macro in H5T_ref_reclaim()Jerome Soumagne2019-10-091-1/+1
|/ /
* | Merge pull request #1931 in HDFFV/hdf5 from feature/references to developJerome Soumagne2019-10-0857-1985/+6295
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '9ed9762889fcd05dc230d6652b92fddc5ec880a4': Update RELEASE.txt for reference changes Fix reference type comparison in h5dump Make wrappers, tests and tools use H5Treclaim() instead of H5Dvlen_reclaim() Add new H5R API that abstracts object, region and attribute reference types Remove ability to loc by ref from H5VL layer Add support for retrieving object name by token Add H5VL_OBJECT_GET_TYPE to get object type Add H5VL_MAX_TOKEN_SIZE and H5VL_token_t Adapt Jerome's "file info" H5VL 'get' query to retrieve container token info. Fix H5VL_blob_get to return size of blob Add 'blob' callbacks to VOL, along with a native implementation to store them in the global heap, and changed the VL datatype conversion code to use blobs.
| * | Make wrappers, tests and tools use H5Treclaim() instead of H5Dvlen_reclaim()Jerome Soumagne2019-10-081-2/+2
| | |
| * | Add new H5R API that abstracts object, region and attribute reference typesJerome Soumagne2019-10-0838-1357/+4694
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also support references to external files Add new H5T_REF type and type conversion routines Support conversion from H5T_REF_OBJ/DSET_REG to H5T_REF Add H5Treclaim() API to reclaim memory of vlen/reference types Deprecate H5Dvlen_reclaim() Fix H5T_vlen_reclaim() and H5T_reclaim() to use private callback Add H5T_ref_reclaim() Move previous H5R APIs to H5Rdeprec.c Clean up H5Ocopy Separate H5O_copy_expand_ref() to H5Ocopy_ref() Add support for copying new reference types Clean up deprecated routines to go through VOL and same code path Fix return codes in existing trefer.c test Rename trefer.c to trefer_deprec.c trefer.c is for new references Add performance test for trefer Add additional obj_copy_ref test Make use of tokens and blobs to store references Skip blob encoding for object references Start adding new reference examples
| * | Remove ability to loc by ref from H5VL layerJerome Soumagne2019-10-083-113/+2
| | |
| * | Add support for retrieving object name by tokenJerome Soumagne2019-10-081-0/+12
| | |
| * | Add H5VL_OBJECT_GET_TYPE to get object typeJerome Soumagne2019-10-083-1/+63
| | | | | | | | | | | | Add H5VL_OBJECT_LOOKUP to lookup objects
| * | Add H5VL_MAX_TOKEN_SIZE and H5VL_token_tJerome Soumagne2019-10-081-0/+7
| | |
| * | Adapt Jerome's "file info" H5VL 'get' query to retrieve container token info.Quincey Koziol2019-10-088-81/+135
| | | | | | | | | | | | Remove "by address" location for VOL operations. (Switching to "by token")
| * | Fix H5VL_blob_get to return size of blobJerome Soumagne2019-10-0813-104/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix const in blob API Add H5HG_HEAP_ID_SIZE macro to return native blob size Add maximum size for blobs Fix blob API callbacks to pass VOL file object Add public wrappers for blob VOL API Implement passthrough blob callbacks Update H5Tvlen after callback changes Update trace information for H5VL blob routines Fix public header inclusion in native and passthru headers
| * | Add 'blob' callbacks to VOL, along with a native implementation to store themQuincey Koziol2019-10-0821-468/+1032
| | | | | | | | | | | | | | | | | | | | | in the global heap, and changed the VL datatype conversion code to use blobs. Move encode/decode of sequence lengths into VL datatype callbacks, from native VOL blob routines.
* | | Another cleanup pass as suggested by the reviewers.Richard Warren2019-10-073-8/+5
| | |
* | | Fix some typos and remove an unused prototype from H5Sprivate.hRichard Warren2019-10-072-2/+1
| | |
* | | At the suggestion of the PR reviewers, moved the mpio_create_large_type to ↵Richard Warren2019-10-075-159/+197
| | | | | | | | | | | | H5mpi.c and renamed the function appropriately. Also moved some support functions to set and get the vvalue where we transistion to using derived datatypes.
* | | Made code review edit suggested by Jerome, plus various code updates to ↵Richard Warren2019-10-071-4/+4
| | | | | | | | | | | | files that I touched to eliminate compile warnings (on my Linux box).
* | | Merge branch 'develop' of https://bitbucket.hdfgroup.org/scm/hdffv/hdf5 into ↵Richard Warren2019-10-071-78/+81
|\ \ \ | |/ / | | | | | | HDFFV-10539-2GB-Write-Independent
| * | Fixed a bug (HDFFV-10899) where the behavior of the deprecatedDana Robinson2019-10-041-78/+81
| |/ | | | | | | | | | | | | | | H5Gget_objinfo() call had changed and passing in a non-existing soft link with a statbuf of NULL passed instead of failed (as it should as per the RM). The HDF5 1.8 and 1.10 behavior was restored and H5Gget_objinfo() will now fail and return -1 as before.
* | No functional changes, just removed some tab charactersRichard Warren2019-10-051-4/+4
| |
* | Make the initial bug fixes to allow >2GB writes with Independent IORichard Warren2019-10-053-24/+46
|/
* Fixed the java assert issue with H5O cache corking calls.Dana Robinson2019-10-031-3/+4
|
* fix for statement declare of typeAllen Byrne2019-09-302-57/+59
|
* Corrected missing parallel #ifdefs.Dana Robinson2019-09-271-0/+2
|
* Merge pull request #1934 in HDFFV/hdf5 from ↵Vailin Choi2019-09-271-36/+168
|\ | | | | | | | | | | | | | | ~VCHOI/my_third_fork:bugfix/HDFFV-10585-investigate-slowness-of-regular to develop * commit '7924eee0e5ee0745b784c635042b8633886fb799': (1) Address the feedback from the PR review (2) Add release notes Fix for HDFFV-10585 investigate hyperslab slowness: 1) Improve hyperslab performance when doing I/O from 1-d disjoint file dataspace to 1-d contiguous memory dataspace. 2) Move coding in H5D__chunk_io_init() that is constructing the chunk mappings to a separate routine.