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

Fix pread/pwrite; make read/write be optional #613

Merged
merged 8 commits into from
Mar 9, 2020
Merged

Conversation

saagarjha
Copy link
Member

Written largely in GNU Nano and with minimal testing; in addition to the usual scrutiny I would check formatting if I were you.

Copy link
Member

@tbodt tbodt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Overall, this adds a bunch of code that is never used, so I'd like to see some users of .pread added in the same PR.

kernel/fs.c Show resolved Hide resolved
pread and pwrite have been fixed to return the correct (unchanged) offset. In
addition, both functions have been added to fd_ops and sys_read and sys_write
will use these if they are available; making them (fd_ops's read/write)
effectively optional if there is an implementation of pread and pwrite
available. lseek is no longer optional.
saagarjha and others added 2 commits March 8, 2020 16:48
This commit is sponsored by Linode. You can use code ish2020 get $20
off your new account. That could be 4 months free on the $5/month plan!
@tbodt tbodt merged commit 29dea39 into ish-app:master Mar 9, 2020
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

Successfully merging this pull request may close these issues.

2 participants