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

lseek() does not allow seeking past EOF #273

Open
mrpapersonic opened this issue Dec 21, 2024 · 0 comments
Open

lseek() does not allow seeking past EOF #273

mrpapersonic opened this issue Dec 21, 2024 · 0 comments

Comments

@mrpapersonic
Copy link

According to POSIX.1:

The lseek() function shall allow the file offset to be set beyond the end of the existing data in the file. If data is later written at this point, subsequent reads of data in the gap shall return bytes with the value 0 until data is actually written into the gap.

A simple fix should be to use GetEOF and SetEOF to change the logical EOF and set the position accordingly.

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

No branches or pull requests

1 participant