Commit Graph

496 Commits

Author SHA1 Message Date
Meco Man dd9db58a86 优化dfs.h和dirent.h的包含关系 2021-09-01 09:28:16 -04:00
Meco Man aab382c32e [rtlibc] remove libc_dirent.h 2021-08-30 22:39:14 -04:00
Meco Man fc094e9211 [rtlibc] remove libc_signal.h and libc_fdset.h 2021-07-21 19:42:38 +08:00
guozhanxin 8102502b98 [devfs] F_GETFL/F_SETFL should be handled by the drivers. 2021-07-08 16:38:40 +08:00
Meco Man a5f7635f31 remove libc_errno.h & libc_limits.h 2021-05-22 02:50:35 +08:00
Meco Man 8676fd966e [dfs] 将文件系统默认最大数量以及最大类型改为4 2021-05-21 18:02:43 +08:00
Meco Man 14c29063e8 [devfs] _device_fs增加注释 2021-05-21 17:50:57 +08:00
Meco Man 40c09fc1e0 重新分类为common文件夹下属all文件夹和excgcc文件夹 2021-04-21 00:56:36 +08:00
Meco Man 6026c68d37 加入<sys/types.h>声明 2021-04-18 01:00:37 +08:00
Meco Man d1d9c492f8 [bug][dfs] rt_strlen(name) + 1) -> DFS_PATH_MAX 2021-03-27 01:24:32 +08:00
Meco Man b7bfa04c06 [dfs] cat命令执行后增加\n 与linux行为一致 2021-03-21 02:03:45 +08:00
Bernard Xiong b12615f344
Merge pull request #4427 from mysterywolf/components
[components] auto & manual formatted
2021-03-16 13:53:54 +08:00
yangjie 3ec59a8865 [components][dfs/Kconfig] 修改help描述 2021-03-15 13:44:25 +08:00
Meco Jianting Man cd4cf46f3b
Delete dfs_jffs2.h 2021-03-12 10:10:31 +08:00
Meco Jianting Man 5dfe7a8f68
Delete dfs_jffs2.c 2021-03-12 10:10:21 +08:00
Meco Jianting Man c6b6b77716
Delete dfs_uffs.h 2021-03-12 10:09:56 +08:00
Meco Jianting Man 40a087fc8d
Delete uffs_rtthread.c 2021-03-12 10:09:47 +08:00
Meco Jianting Man f3fbbf8477
Delete dfs_uffs.c 2021-03-12 10:09:34 +08:00
yangjie 29d11a6d0d [components][dfs] remove jffs2 and uffs 2021-03-11 16:47:15 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Meco Man b2d3317c6a remove minilibc 2021-02-23 03:21:16 +08:00
Meco Jianting Man 19d56fbc50
Update dfs_elm.c 2021-02-19 07:49:48 +00:00
Meco Man e90a0ee03c [fatfs][rtc][bug] 修复FATFS底层接口get_fattime获取时间条件的bug 2021-02-18 15:43:22 +08:00
Meco Man 86ebf17a23 localtim改为gmtime 2021-02-07 21:49:25 +08:00
Meco Man f073911cd3 解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数 2021-02-07 21:08:41 +08:00
Wayne Lin 44e9a48f1d Enlarge ECC/DATA layout array size. 2021-01-26 17:04:47 +08:00
Wayne Lin 998e370ae1 Append RT_WEAK to override various ECC layout. 2021-01-26 10:44:00 +08:00
Bernard Xiong 953a9ee84c
Merge pull request #3681 from cliff-cmc/master
[components] dfs: update elmfat to R0.14 patch 1
2020-12-31 15:00:37 +08:00
Han Xinrong db4b3ff125 modify code style 2020-12-15 11:37:23 +08:00
Han Xinrong a1fe7b1ddf modify the error check of rt_event_recv() 2020-12-13 19:11:04 +08:00
Han Xinrong 3bb8edf4c1 error check of rt_event_recv()
add error check
2020-12-09 22:24:01 +08:00
liuduanfei 22c47d4b19
Update dfs_romfs.c
修改一处拼写错误
2020-12-03 09:59:09 +08:00
xingkong121 9b925fb9c0
Modify comment error
Device file system should be registered
2020-11-28 22:47:06 +08:00
tangyuxin 8861202c3b [dfs] fix the DEVICE could not get or set flags 2020-09-26 12:30:39 +08:00
tangyuxin 50dc41468e [add] DFS file system supports device types 2020-09-26 09:55:58 +08:00
Bernard Xiong ad3e6d8898 [DFS] clean the unnecessary checking 2020-08-07 08:51:22 +08:00
Cliff Chen 1a9ecf27f3 [components] dfs: update elmfat to R0.14 patch 1
merge from https://github.com/abbrev/fatfs.git
(cf1fa008119c8ae2d05311ba3d97da0c4dca33b6)

Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
Change-Id: I321ba7933e1a4d6c07b3fbaa2a134eb54bb43b32
2020-06-12 16:31:43 +08:00
longtengmcu d75f03e4b0 1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1 …
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
4、修改注释信息
2020-05-21 22:05:38 +08:00
longtengmcu 63950c9259 1、解决do_pollfd函数中处理底层网络设备返回错误-1的情况,返回-1时select函数也要返回-1
2、网卡设备调用关闭dhcp时,底层要调用dhcp_stop函数来关闭dhcp功能,打开时再调用dhcp_start,否则再次打开dhcp时无法获取ip地址或者出现在使用静态ip地址会在dhcp租约到期时自动再获取ip地址。
3、sal_socket.c程序中的sal_accept函数增加判断网卡up,down的功能
2020-05-17 15:51:35 +08:00
Cliff Chen 1c68bd9d3c Support msc mode automatic switching
Signed-off-by: Cliff Chen <cliff.chen@rock-chips.com>
2020-03-16 10:50:34 +08:00
David Lin ec20c2c7ff
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:37:05 +08:00
David Lin 3790384734
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:34:21 +08:00
David Lin 8d497e945a
Fixed typo 'WirtePageWithLayout' in uffs
WirtePageWithLayout ->WritePageWithLayout
2020-02-21 21:30:35 +08:00
David Lin 8e19bec11b
Fixed typo: 'wirte' in uffs_nandif.c
Note that the word 'wirte' is wrong,
so that 'wirte' should been replaced with 'write'.
2020-02-16 20:08:36 +08:00
Bernard Xiong 78d42efd22 [DFS] cleanup the log in dfs. 2019-12-18 21:37:42 +08:00
hichard aafed7b434 1.修复sd卡热插拔内存泄露的bug
2.dfs增加函数,配合实现sd卡热插拔自动挂载卸载文件系统
2019-11-16 11:16:48 +08:00
zhangjun d08f533659 [components][dfs][filesystems][elmfat]修正代码风格 2019-10-08 09:11:35 +08:00
zhangjun 60f2ae4d3c [components][dfs]添加ftruncate接口 2019-09-26 10:22:33 +08:00
gbcwbz 97c9abffd1 [components][dfs] Fix fd error in command list_fd 2019-07-26 19:07:05 +08:00
tangyuxin 7d09071858 [components][dfs][nfs] 修复Linux NFS服务器认证问题 2019-06-26 14:38:52 +08:00
tyustli d8eb0cfc1e fix kernel and framework no cast type error 2019-06-18 20:09:19 +08:00
guozhanxin 167342cf41 [dfs] fix some bug for uffs filesystem.|修复了一些uffs文件系统的BUG. 2019-06-18 10:45:54 +08:00
Bernard Xiong 214c1a6d45
Merge pull request #2608 from misonyo/rttdev
[components/dfs]fix index overflow bug when not filesystem was selected
2019-04-24 21:15:42 +08:00
guozhanxin 0c3da7e367 [components/dfs/ramfs] Automatically select memheap when ramfs enabled.|当使能ramfs时自动选中memheap。 2019-04-24 15:11:49 +08:00
misonyo 958d42f32c [components/dfs]fix index overflow bug when not filesystem was selected 2019-04-23 23:03:34 +08:00
Bernard Xiong ea9dbfa4f0
Merge pull request #2569 from armink/fix_dfs
[DFS] Update dfs file open log.
2019-04-13 10:41:09 +08:00
armink 6c92eb40da [DFS] Update dfs file open log. 2019-04-12 10:39:05 +08:00
armink fa4d4ab7cf Update all of debug log definition to DBG_TAG and DBG_LVL. 2019-04-12 10:18:57 +08:00
HubretXie 25cdd8bba9
fix use printf format bug
fix use printf format bug
2019-04-09 20:11:07 +08:00
tangyuxin e71ec65549 [components][dfs]格式化代码 2019-04-08 14:51:01 +08:00
armink 4f7c06f923 [component][DFS] Change the log level on dfs_file_open() func. 2019-03-07 15:56:39 +08:00
armink 0d7ba79219 Remove the DBG_COLOR and DBG_ENABLE definition. 2019-03-06 17:54:30 +08:00
Bernard Xiong 7383269905 [Kernel] Code cleanup for compiling warning. 2019-02-12 14:33:45 +08:00
Bernard Xiong 3b4a9f51c7 [DFS] Remove opened file check
Remove opened file check in dfs_file_open function. It will be replaced with POSIX flock/fcntl.
2019-01-24 20:55:27 +08:00
Bernard Xiong b998c4ed8d
[DFS][romfs] code cleanup 2019-01-13 14:33:24 +08:00
Bernard Xiong 9af2d29351
[DFS][romfs] code cleanup 2019-01-13 14:31:55 +08:00
Bernard Xiong bd7ebbf17b [DFS][romfs] fix the mkrom issue when file/dir size zero 2019-01-13 14:24:00 +08:00
yangfasheng c16d3de633 update dfs.c dfs_file.c dfs_file.h
Signed-off-by: yangfasheng <yangfasheng@rt-thread.com>
2019-01-09 17:40:32 +08:00
MurphyZhao 5d6c7e0df7 [components][dfs] Refix #2100 PR
#2100 PR 增加 `#include <libc.h>` 后,如果定义了 `RT_USING_DFS_DEVFS`,那就必须要开启 LIBC 才可以成功编译,增加了对 RT_USING_LIBC 的依赖。但是,这个修复又是关于开启 POSIX 的时候遇到的问题,因此建议在引入 <libc.h> 的地方,加入对 `RT_USING_POSIX` 的依赖。

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2019-01-05 14:20:44 +08:00
gbcwbz 0924d277f6 [dfs] Fix stdio fd error when POSIX api is used
POSIX api e.g. poll read write
2018-12-23 19:14:14 +08:00
Bernard Xiong 1f37de29c4 Fix the value width issue under 32/64 bit arch. 2018-12-13 14:54:26 +08:00
shaojinchun 56c0df1e58 修正dfs在fd_get时,未检查有效性的问题 2018-12-10 08:33:17 +08:00
HubretXie 889afa7b04
Update dfs_elm.c
fatfs: mkfs时增加FM_SFD参数,减少文件系统对flash空间的占用
2018-12-03 18:09:52 +08:00
shaojinchun 2a57ba9f96 统一getcwd和chdir的加锁方式 2018-11-22 18:21:45 +08:00
Bernard Xiong e108dfe4a5 [libc] Fix the _EXFUN issue in newlib 2018-11-10 16:58:07 +08:00
Bernard Xiong 1946de1104
Merge pull request #1943 from zhaojuntao/ADD-LWIP210
Add lwip210
2018-11-02 20:14:09 +08:00
MurphyZhao c3cc7a29c8 [components][dfs] 移除冗余代码
[components][net] 修复 Kconfig
[components][net][sal] 还原对 SAL 框架的修改,在 proto_ops 结构体实例赋值位置修改

Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-02 10:26:37 +08:00
armink 83b7b763b7 The dbg_log API is DISCARDED. Change all dbg_log to LOG_X. 2018-11-02 10:20:30 +08:00
MurphyZhao 58a6b51236 [components][dfs] AND [components][net][sal] 适配 LWIP210
Signed-off-by: MurphyZhao <d2014zjt@163.com>
2018-11-01 18:21:41 +08:00
Bernard Xiong 8c1c6516b3 [Components] Change license to Apache License v2.0 2018-10-29 11:06:58 +08:00
Bernard Xiong fbac6c8be7 Remove lwIP 1.3.2 and yaffs2 from RT-Thread Platform. 2018-10-29 11:05:33 +08:00
Bernard Xiong b5e9927b85 [license] Change the license of FS/DFS to Apache. 2018-10-15 01:46:07 +08:00
Bernard Xiong cc883ad29a
Merge pull request #1891 from qgyhd1234/dfs
[dfs] fix ioctl getflag/setflag issue.
2018-10-14 10:21:54 +08:00
zylx 8431c05635 [dfs] fix ioctl getflag/setflag issue. 2018-10-13 10:23:47 +08:00
guozhanxin 42d181307e [components][dfs][ramfs] add RT_Object_Class_MemHeap flag for ramfs->memheap 2018-09-20 12:03:29 +08:00
Bernard Xiong 7d3f38e4f6
Merge pull request #1790 from liruncong/dev-dfs
dfs_uffs_getdents函数声明问题修正
2018-09-11 19:08:47 +08:00
liruncong b8b711d0a7 修正参数类型不匹配问题. uint32_t为unsigned int, 而rt_uint32_t为unsigned long
注: armclang编译器报错
2018-09-10 19:51:15 +08:00
weety ae6f47e274 Solve the problem of RT_USING_DFS cyclic dependency. 2018-09-05 20:52:16 +08:00
heyuanjie87 18510fa80f
Update select.c 2018-08-14 09:33:22 +08:00
heyuanjie87 c90b449dac
Update select.c 2018-08-13 22:42:09 +08:00
heyuanjie87 d948dba42a
update select.c 2018-08-12 20:41:56 +08:00
heyuanjie fd209cb880 [lwp]添加select系统调用 2018-08-12 20:26:16 +08:00
Bernard Xiong 90cef4fbac
Merge pull request #1673 from yangfasheng/master
update dfs.c of File System
2018-08-01 11:44:53 +08:00
heyuanjie c79fbd373f [lwp]给thread添加lwp成员 2018-07-30 11:12:12 +08:00
yangfasheng e13f1d9e7f update dfs.c of File System 2018-07-29 12:07:36 +08:00
Bernard Xiong e71763b068 [DFS] Add RT_USING_DFS_MNTTABLE option in Kconfig 2018-07-28 20:22:14 +08:00
Bernard Xiong 8baf3d98e1 [DFS] fix the mkfs issue for multi-mounted fatfs 2018-07-28 16:34:51 +08:00
Bernard Xiong 8fe4602632 [DFS] Enable long filename for ELM FatFS in default 2018-07-25 00:50:23 +08:00
tangyuxin cea61291e4 [components][dfs]修复list_fd打印乱码的问题 2018-07-20 15:30:24 +08:00
朱天龙 (Armink) 69c95944eb
Merge pull request #1643 from chenyong111/sal
Add SAL (socket abstraction layer) framework
2018-07-19 08:25:56 +08:00