相关的Issue

原因(目的、解决的问题等)
Fixed compilation problems with niobe407 and neptune100
描述(做了什么,变更了什么)
C99标准需要引入<stdbool.h>支持bool类型变量
1、components/fs/vfs/vfs_fs.c加头文件stdbool.h
测试用例(新增、改动、可能影响的功能)
编译结果
添加前编译报错:
[OHOS ERROR] ../../../kernel/liteos_m/components/fs/vfs/vfs_fs.c:214:50: error: unknown type name 'bool'
[OHOS ERROR] 214 | static inline int VfsPathCheck(const char *path, bool isFile)
[OHOS ERROR] | ^~~~
[OHOS ERROR] ../../../kernel/liteos_m/components/fs/vfs/vfs_fs.c: In function 'VfsOpen':
[OHOS ERROR] ../../../kernel/liteos_m/components/fs/vfs/vfs_fs.c:244:9: error: implicit declaration of function 'VfsPathCheck' [-Werror=implicit-function-declaration]
[OHOS ERROR] 244 | if (VfsPathCheck(path, TRUE) != LOS_OK) {
[OHOS ERROR] | ^~~~~~~~~~~~
[OHOS ERROR] cc1: all warnings being treated as errors
添加后编译ok:
[OHOS INFO] subsystem files NO. percentage builds NO. percentage overlap rate
[OHOS INFO] commonlibrary 1 0.1% 1 0.1% 1.00
[OHOS INFO] hdf 92 11.7% 92 11.7% 1.00
[OHOS INFO] hiviewdfx 12 1.5% 12 1.5% 1.00
[OHOS INFO] kernel 49 6.2% 49 6.2% 1.00
[OHOS INFO] securec 39 4.9% 39 4.9% 1.00
[OHOS INFO] startup 24 3.0% 24 3.0% 1.00
[OHOS INFO] systemabilitymgr 15 1.9% 15 1.9% 1.00
[OHOS INFO] test 47 6.0% 47 6.0% 1.00
[OHOS INFO] third_party 381 48.4% 381 48.4% 1.00
[OHOS INFO] thirdparty 381 48.4% 381 48.4% 1.00
[OHOS INFO] xts 47 6.0% 47 6.0% 1.00
[OHOS INFO]
[OHOS INFO] c overall build overlap rate: 1.00
[OHOS INFO]
[OHOS INFO]
[OHOS INFO] neptune_iotlink_demo build success
[OHOS INFO] cost time: 0:00:09
是否涉及对外变更(典型的如:对外API规格变更、新增对外接口等等)
必须选择一项(在MarkDown模式下用[x]替换[ ]即可勾选对应选项):
不涉及对外变更。修复 pr: !965:VfsMpFind接口优化/files新增接口VfsPathCheck引入的bool类型编译报错问题.
输入图片说明
是否需要同步至release(如:3.0LTS ... )分支?
必须选择一项(在MarkDown模式下用[x]替换[ ]即可勾选对应选项):

理由: