添加socketpair (#505)

* 添加对socketpair系统调用的处理

---------

Co-authored-by: LoGin <longjin@DragonOS.org>
This commit is contained in:
裕依2439
2024-02-07 18:06:15 +08:00
committed by GitHub
parent cb23beb255
commit 4ad52e57e6
18 changed files with 1158 additions and 966 deletions

View File

@ -27,7 +27,7 @@ pub struct PipeFsPrivateData {
impl PipeFsPrivateData {
pub fn new(mode: FileMode) -> Self {
return PipeFsPrivateData { mode: mode };
return PipeFsPrivateData { mode };
}
pub fn set_mode(&mut self, mode: FileMode) {