提交 78e1fdb9 编写于 作者: Z zhangfanfan2 提交者: Gitee

解决issueI3J6PP

上级 098da53a
......@@ -235,6 +235,13 @@ int VfsProcfsOpen(struct file *filep)
if (ProcOpen(pde->pf) != OK) {
return -ENOMEM;
}
if (S_ISREG(pde->mode) && (pde->procFileOps != NULL) && (pde->procFileOps->open != NULL)) {
(void)pde->procFileOps->open((struct Vnode *)pde, pde->pf);
}
if (S_ISDIR(pde->mode)) {
pde->pdirCurrent = pde->subdir;
pde->pf->fPos = 0;
}
filep->f_priv = (void *)pde;
return LOS_OK;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册