1. 19 12月, 2022 1 次提交
  2. 17 12月, 2022 1 次提交
    • F
      fix: 修复close接口中无法正常关闭文件的问题 · 77e204ab
      Far 提交于
      1. close未考虑保留描述符0、1和2,导致fd合法性判断出现错误,这会导致
      上限附近的fd不能被正常的关闭
      2. 释放file结构体时未在锁的保护中进行,可能存在问题
      
      fix #I66F6I
      Signed-off-by: NFar <yesiyuan2@huawei.com>
      Change-Id: I084c7e0e9cfc51a123ebad07d0c94f47e544baa6
      77e204ab
  3. 16 12月, 2022 1 次提交
    • A
      refactor: vfs opt · 85218174
      arvinzzz 提交于
        1. vfs重构优化,统一fs模块的对外接口,减少不必要的冗余调用,由fs组件直接提供posix对外接口
        2. vfs与libc关系整理
        3. fs接口实现规范化
      
      BREAKING CHANGE:
      删除API:
      int LOS_Open(const char *path, int flags, ...);
      int LOS_Close(int fd);
      ssize_t LOS_Read(int fd, void *buff, size_t bytes);
      ssize_t LOS_Write(int fd, const void *buff, size_t bytes);
      off_t LOS_Lseek(int fd, off_t off, int whence);
      int LOS_Stat(const char *path, struct stat *stat);
      int LOS_Statfs(const char *path, struct statfs *buf);
      int LOS_Unlink(const char *path);
      int LOS_Rename(const char *oldpath, const char *newpath);
      int LOS_Fsync(int fd);
      DIR *LOS_Opendir(const char *path);
      struct dirent *LOS_Readdir(DIR *dir);
      int LOS_Closedir(DIR *dir);
      int LOS_Mkdir(const char *path, mode_t mode);
      int LOS_Rmdir(const char *path);
      int LOS_Lstat(const char *path, struct stat *buffer);
      int LOS_Fstat(int fd, struct stat *buf);
      int LOS_Fcntl(int fd, int cmd, ...);
      int LOS_Ioctl(int fd, int req, ...);
      ssize_t LOS_Readv(int fd, const struct iovec *iovBuf, int iovcnt);
      ssize_t LOS_Writev(int fd, const struct iovec *iovBuf, int iovcnt);
      ssize_t LOS_Pread(int fd, void *buff, size_t bytes, off_t off);
      ssize_t LOS_Pwrite(int fd, const void *buff, size_t bytes, off_t off);
      int LOS_Isatty(int fd);
      int LOS_Access(const char *path, int amode);
      int LOS_Ftruncate(int fd, off_t length);
      int LOS_FsUmount(const char *target);
      int LOS_FsUmount2(const char *target, int flag);
      int LOS_FsMount(const char *source, const char *target,
                      const char *fsType, unsigned long mountflags,
                      const void *data);
      int OsFcntl(int fd, int cmd, va_list ap);
      int OsIoctl(int fd, int req, va_list ap);
      
      Close #I66F6I
      Signed-off-by: Narvinzzz <zhaotianyu9@huawei.com>
      85218174
  4. 09 12月, 2022 1 次提交
  5. 08 12月, 2022 2 次提交
  6. 07 12月, 2022 3 次提交
  7. 06 12月, 2022 4 次提交
  8. 05 12月, 2022 1 次提交
  9. 01 12月, 2022 2 次提交
  10. 29 11月, 2022 2 次提交
  11. 28 11月, 2022 1 次提交
    • F
      feat: 文件系统提供动态内存分配器钩子 · e004ca97
      Far 提交于
      增加LOS_FS_MALLOC/LOS_FS_FREE宏以提供用户配置动态内存分配器的能力。
      用户只需要在components/fs/vfs/los_fs.h中修改对应的函数即可。
      
      BREAKING CHANGE:
      文件系统提供动态内存分配器钩子
      新增宏:
      LOS_FS_MALLOC
      LOS_FS_FREE
      
      fix #I63IZ8
      Signed-off-by: NFar <yesiyuan2@huawei.com>
      Change-Id: Ia18cbf907709dbfaa1bbc4e779537ec8e659a0ec
      e004ca97
  12. 23 11月, 2022 3 次提交
  13. 21 11月, 2022 3 次提交
  14. 19 11月, 2022 1 次提交
  15. 18 11月, 2022 2 次提交
  16. 17 11月, 2022 2 次提交
  17. 15 11月, 2022 1 次提交
  18. 14 11月, 2022 1 次提交
  19. 07 11月, 2022 3 次提交
  20. 05 11月, 2022 1 次提交
  21. 04 11月, 2022 2 次提交
  22. 03 11月, 2022 1 次提交
  23. 17 10月, 2022 1 次提交