1 /* 2 * Copyright (c) 2022-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2022-09-21 13 * Description: vfs层配置文件 14 */ 15 16 #ifndef VFS_CONFIG_H 17 #define VFS_CONFIG_H 18 19 #include "prt_config.h" 20 21 /* 文件系统的起始fd, 0,1,2被用于 stdin,stdout,stderr */ 22 #define MIN_START_FD 3 23 24 #if (OS_SUPPORT_LITTLEFS == YES) 25 #include "lfs_conf.h" 26 #define __LFS_NFILE OS_LFS_MAX_OPEN_FILES 27 #else 28 #define __LFS_NFILE 0 29 #endif 30 31 #define CONFIG_NFILE_DESCRIPTORS (__LFS_NFILE) 32 33 #define NR_OPEN_DEFAULT CONFIG_NFILE_DESCRIPTORS 34 35 #define DEFAULT_DIR_MODE 0777 36 #define DEFAULT_FILE_MODE 0666 37 #endif 38