Skip to content
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

Update stdio API calls #5064

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Conversation

derobins
Copy link
Member

@derobins derobins commented Nov 4, 2024

The stdio VFD set up ftell, etc. equivalents differently than the rest of the library. This PR aligns them with H5private.h and H5win32defs.h and should fix some issues with MinGW. The stdio VFD now also uses HDoff_t, which will be a public symbol in the next major release of HDF5.

In the main library, HDftell was set to be ftell and not ftello. This probably isn't a big deal since the systems where it's used all have 64-bit longs, but we should match types correctly.

The stdio VFD set up ftell, etc. equivalents differently than the
rest of the library. This PR aligns them with H5private.h and
H5win32defs.h and should fix some issues with MinGW. The stdio VFD
now also uses HDoff_t, which will be a public symbol in the next
major release of HDF5.

In the main library, HDftell was set to be ftell and not ftello.
This probably isn't a big deal since the systems where it's used
all have 64-bit longs, but we should match types correctly.
@derobins derobins added Priority - 2. Medium ⏹ It would be nice to have this in the next release Component - C Library Core C library issues (usually in the src directory) Type - Improvement Improvements that don't add a new feature or functionality labels Nov 4, 2024
@derobins derobins added Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub Merge - To 1.14.6 This should be considered for a 1.14.6 release and removed Type - Improvement Improvements that don't add a new feature or functionality labels Nov 4, 2024
@derobins
Copy link
Member Author

derobins commented Nov 4, 2024

NOTE: If this is merged to a future 1.14.6 release, HDoff_t will have to be replaced with a restored file_offset_t.

@derobins
Copy link
Member Author

derobins commented Nov 4, 2024

NOTE NOTE: This PR will need to be updated after #5065 goes in.

@derobins derobins merged commit 8eb4c0e into HDFGroup:develop Nov 4, 2024
brtnfld pushed a commit to brtnfld/hdf5 that referenced this pull request Nov 4, 2024
The stdio VFD set up ftell, etc. equivalents differently than the
rest of the library. This PR aligns them with H5private.h and
H5win32defs.h and should fix some issues with MinGW. The stdio VFD
now also uses HDoff_t, which will be a public symbol in the next
major release of HDF5.

In the main library, HDftell was set to be ftell and not ftello.
This probably isn't a big deal since the systems where it's used
all have 64-bit longs, but we should match types correctly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - C Library Core C library issues (usually in the src directory) Merge - To 1.14.6 This should be considered for a 1.14.6 release Priority - 2. Medium ⏹ It would be nice to have this in the next release Type - Bug / Bugfix Please report security issues to [email protected] instead of creating an issue on GitHub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants