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

添加pread&pwrite #528

Merged
merged 16 commits into from
Feb 19, 2024
Merged

Conversation

yuyi2439
Copy link
Contributor

SYS_FCHOWN和SYS_FSYNC我觉得暂时实现不了,就没弄

len: usize,
buf: &mut [u8],
) -> Result<usize, SystemError> {
self.readable()?;
Copy link
Member

Choose a reason for hiding this comment

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

这里面的逻辑可以抽象成fn do_read(...., update_offset: bool)函数,然后read和pread都调用这个. write同理。这样减少冗余代码。

@fslongjin fslongjin merged commit 27b967a into DragonOS-Community:master Feb 19, 2024
7 checks passed
@yuyi2439 yuyi2439 deleted the patch-pread&pwrite branch February 21, 2024 01:46
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.

None yet

3 participants