!1018 fix:添加MAX_OPEN_DIRS宏,标识最大可打开dir数量

Merge pull request !1018 from zhangdengyu/max_open_dir
This commit is contained in:
openharmony_ci 2023-01-31 11:28:55 +00:00 committed by Gitee
commit 93e8dee1ae
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 5 additions and 0 deletions

View File

@ -138,4 +138,9 @@
#define MAX_DIRENT_NUM 14 // 14 means 4096 length buffer can store 14 dirent, see struct DIR
/* max number of open directories */
#ifndef LOSCFG_MAX_OPEN_DIRS
#define LOSCFG_MAX_OPEN_DIRS 10
#endif
#endif