-
-
Notifications
You must be signed in to change notification settings - Fork 306
Remove (HD)off_t from the H5Pset/get_external calls #5809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
* Remove off_t from H5Pset/get_external() calls * Remove off_t from set/getExternal() C++ calls * Remove off_t from the Fortran interface * Remove OFF_T as a Fortran INTEGER KIND HDoff_t remains in a few places where it's used in POSIX I/O calls.
This PR replaces #5082, which was wildly out of date. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove the C wrappers for Fortran and call the C API directly, as long as we are doing updates anyway. I can do that later if you'd like.
I'll update it tonight. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Accidentally approved; We decided that for consistency it would be a good idea to version H5Pset/get_external
. @derobins could you do this?
I can but it'll take more time. I'll have to write tests, etc. |
Supporting off_t is a pain on Windows and is only used in one
pair of public API calls, where it's semantically odd because
negative values aren't allowed.
This PR removes off_t and replaces it with uint64_t.
Internally, HDoff_t remains in a few places where it's used
in POSIX I/O calls.
Important
Replace
off_t
withuint64_t
in HDF5 external file interfaces for better Windows compatibility.off_t
withuint64_t
inH5Pset_external()
andH5Pget_external()
inH5Pdcpl.c
andH5Ppublic.h
.setExternal()
andgetExternal()
inH5DcreatProp.cpp
andH5DcreatProp.h
to useuint64_t
.h5pset_external_c()
andh5pget_external_c()
inH5Pf.c
andH5Pff.F90
to useuint64_t_f
.OFF_T
as a Fortran INTEGER KIND inH5match_types.c
.offset
parameter touint64_t
inh5pDCPLImp.c
.RELEASE.txt
to reflect changes in offset parameter types and removal ofOFF_T
.HDoff_t
usage remains for POSIX I/O calls inH5Defl.c
andH5FDstdio.c
.This description was created by
for cc4a37f. You can customize this summary. It will automatically update as commits are pushed.