Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

C library #604

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

deadwood2
Copy link
Contributor

Change to sizing of types to complete 64-bit interface. See each commit for explanation.

Build-tested under linux-x86_64

deadwood added 4 commits April 4, 2023 07:13
This makes fpos_t consistent with off_t and other file system types. fpos_t
will now be 64-bit on 64-bit system and on 32-bit systems when
_FILE_OFFSET_BITS=64. In other case it will be 32-bit wide. This sizing
behavior was also validated with GNU Linux.
This makes ino_t consistent with other file system types. ino_t will now be
64-bit on 64-bit system and on 32-bit systems when _FILE_OFFSET_BITS=64.
In other case it will be 32-bit wide. This sizing behavior was also
validated with GNU Linux.
This matches behavior of other function defined as static inline in headers
and allows code re-implementing these functions to compile
@Kalamatee
Copy link
Member

Thanks deadwood - I may need to review the fpos/ino stuff to make sure its the correct thing (afaik this should be decided by the use of flags at compile time), but its a while since I touched the posix side so need to refresh a bit on this stuff.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants