From 62c039b287c532ee05c7be266910b7d9e3a97aa0 Mon Sep 17 00:00:00 2001 From: chenjing Date: Wed, 7 Apr 2021 09:49:17 +0800 Subject: [PATCH] proc closedir --- fs/proc/os_adapt/proc_vfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fs/proc/os_adapt/proc_vfs.c b/fs/proc/os_adapt/proc_vfs.c index 2ab252fd..2d06f478 100755 --- a/fs/proc/os_adapt/proc_vfs.c +++ b/fs/proc/os_adapt/proc_vfs.c @@ -265,6 +265,11 @@ int VfsProcfsStatfs(struct Mount *mnt, struct statfs *buf) return LOS_OK; } +int VfsProcfsClosedir(struct Vnode *vp, struct fs_dirent_s *dir) +{ + return LOS_OK; +} + const struct MountOps procfs_operations = { .Mount = VfsProcfsMount, .Unmount = NULL, @@ -276,6 +281,7 @@ static struct VnodeOps g_procfsVops = { .Getattr = VfsProcfsStat, .Readdir = VfsProcfsReaddir, .Opendir = VfsProcfsOpendir, + .Closedir = VfsProcfsClosedir }; static struct file_operations_vfs g_procfsFops = { -- GitLab