geniusgogo
5bbcb5dc79
fix tmpfs spinlock error. ( #7216 )
2023-04-12 13:12:27 +08:00
Bernard Xiong
9600b75b55
[DFS] prepare for dfs_v2.0 ( #7200 )
...
* [DFS] prepare for dfs_v2. dfs_fd -> dfs_file; dfs_fnode -> dfs_vnode.
* [BSP] fix code analysis warning
* [smart] fix the pointer overflow.
* code format
* [smart] fix the lwp->lwp_obj checking.
2023-04-08 22:25:51 +08:00
geniusgogo
3ea1ce9e46
Fix nfs ( #7194 )
...
* fixed nfs 64bit arch fault
* change mount cmd support nfs.
2023-04-08 12:22:19 +08:00
Bernard Xiong
23955edf53
[DFS] add Kconfig for dfs-v2.0 ( #7156 )
...
* [DFS] add Kconfig for dfs-v2.0
* [DFS] Optimize the SConscript.
* [dfs] move old dfs to dfs/dfs_v1
2023-04-04 15:02:56 +08:00
xqyjlj
d6e40f2a24
✨ feat(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): add f_bavail support
2023-03-31 10:56:37 +08:00
xqyjlj
7fb8f61756
✨ feat(components/dfs/filesystems/devfs/devfs.c): add statfs support
2023-03-31 10:56:37 +08:00
xqyjlj
cd1e0a7901
✨ feat(components): add statfs, statfs64, fstatfs, fstatfs64 support
2023-03-31 10:56:37 +08:00
xqyjlj
954f1d9b63
🐞 fix(components/dfs/src/dfs_posix.c): use stat to implement fstat
2023-03-31 10:56:37 +08:00
zhkag
f2dd21ccee
对 /dev 目录做特殊处理
2023-03-29 15:31:46 +08:00
xqyjlj
eb0df6b12c
✨ feat(components/dfs/filesystems/elmfat/dfs_elm.c): add st_blocks su… ( #7091 )
2023-03-25 07:34:00 +08:00
Shell
fcc01a617d
[rt-smart] Fix return value in syscall ( #7045 )
...
* [timer] fix sys return value to avoid outdated errno
* [rtdef] add wrap to stringify
* [syscall] return value in rt errno should be recycle immediately after call to posix layer
* [syscall] return type of syscall should be long
errno should be recycle immediately after call to rt posix layer to avoid
outdated value
* [format] move prototype to header file
* [fix] futex definition conflict
2023-03-13 19:09:34 +08:00
xqyjlj
312eb0c412
🌈 style(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): fix style
2023-02-07 11:31:15 +08:00
xqyjlj
da8f5c08c2
🐞 fix(components/dfs/filesystems/tmpfs/dfs_tmpfs.c): cannot open the same file repeatedly in 'w' mode
2023-02-07 11:31:15 +08:00
guo
68ca9f07a6
[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 ( #6740 )
...
* [dfs] sync cromfs
* [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration
* [format] fix some format issue.
2022-12-16 18:38:28 +08:00
褚仕成
4246275e6e
add "\n" to cat
2022-12-15 11:34:00 -05:00
guo
0bc01ad0d9
[dfs] sync cromfs ( #6739 )
2022-12-14 22:28:34 +08:00
Man, Jianting (Meco)
99bdf978d7
[rtdef] use lower-case to define attributes ( #6728 )
...
* [rtdef] rename RT_WEAK attribute as rt_weak
* [rtdef] rename RT_USED attribute as rt_used
* [rtdef] rename RT_SECTION attribute as rt_section
* [rtdef] rename ALIGN attribute as rt_align
* [legacy] add RT_USED ALIGN RT_SECTION RT_WEAK as legacy support
2022-12-11 13:12:03 -05:00
guo
ecf2d82159
sync branch rt-smart. ( #6641 )
...
* Synchronize the code of the rt mart branch to the master branch.
* TTY device
* Add lwP code from rt-smart
* Add vnode in DFS, but DFS will be re-write for rt-smart
* There are three libcpu for rt-smart:
* arm/cortex-a, arm/aarch64
* riscv64
Co-authored-by: Rbb666 <zhangbingru@rt-thread.com>
Co-authored-by: zhkag <zhkag@foxmail.com>
2022-12-03 12:07:44 +08:00
Man, Jianting (Meco)
bdd663a33f
[libc][musl] support arm-linux-musleabi toolchain
...
目前基本功能已经可以在QEMU上跑起来,但是pthread和内核signal选中会报冲突。先合并一版本,后续解决这些问题。
2022-11-22 21:40:50 -05:00
Meco Man
84eab69604
[msh] remove list_xxx commands, use 'list' to replace
2022-11-21 21:39:45 -05:00
a1012112796
5370d4da50
replace `rt_enter_critical` with `dfs_lock` for list_fd
...
I found that if use mutex in `rt_kprintf`,
the `rt_enter_critical` will create a assert
error later. after chehcking,I found all
operation with fd_table has using
`dfs_lock/unlock` to protect. so I think
using `dfs_lock` is enough. thanks.
Signed-off-by: a1012112796 <1012112796@qq.com>
2022-11-09 22:41:15 -05:00
winfenggao
74fd07a565
lseek()函数中,当seek到文件的位置和当前位置相同时,不需要调用dfs_file_lseek()函数,直接返回当前位置即可。 ( #6498 )
...
当seek到文件的位置和当前位置相同时,不需要调用dfs_file_lseek()函数,直接返回当前位置即可。
同时,以lseek(fd,0,SEEK_CUR)的方式执行函数可以返回文件当前读去位置,可以实现
ftell()的功能.
以lseek(fd,0,SEEK_CUR)的方式执行函数返回文件当前位置,实现ftell()的功能时不用调用dfs_file_lseek()函数,提高效率;seek(fd,0,SEEK_CUR)本来就能返回当前位置。
2022-10-10 17:48:02 -04:00
Tangyuxin
a4829b1c00
[fix] Fix simulator compilation warnings ( #6438 )
...
* [fix] Fix simulator compilation warnings
* Update bsp/simulator/rtconfig_project.h
Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>
2022-09-20 10:31:11 -04:00
dongly
3363586cbb
Fix some compilation warning ( #5744 )
...
* Fix some compilation warning
* 补充修正一些数据类型的使用错误
Co-authored-by: Meco Man <920369182@qq.com>
2022-08-02 12:09:49 -04:00
Man, Jianting (Meco)
2c10d5ad01
[rtc] use gmtime_r to replace gmtime ( #6012 )
...
* [rtc] use gmtime_r to replace gmtime
2022-06-22 13:41:06 +08:00
Bernard Xiong
1aab3607af
Revert "[dfs][romfs]支持相对地址模式 ( #5768 )" ( #5786 )
...
This reverts commit e68f934ff8
.
2022-04-08 20:03:43 +08:00
Tangyuxin
e68f934ff8
[dfs][romfs]支持相对地址模式 ( #5768 )
2022-04-06 21:13:12 +08:00
a1012112796
961fe7de0b
list_fd 显示完整路径 ( #5683 )
2022-03-26 15:45:53 +08:00
Man, Jianting (Meco)
a514b3bd16
[components][kconfig] 整理Kconfig目录名称和结构 ( #5698 )
2022-03-25 23:07:18 +08:00
guozhanxin
9b44535740
add RT_DEBUG_SCHEDULER_AVAILABLE check
2022-01-26 16:03:31 +08:00
Meco Man
add72f1d7c
[dfs][posix] add creat()
2022-01-20 20:50:24 +08:00
liukangcc
3d2e23ec1c
[update] move dfs_posix.h to legacy/dfs/dfs_posix.h
2022-01-14 23:09:32 +08:00
Meco Man
f89a162ea3
[core] 使用rt_memcpy rt_memset代替memcpy memset
2022-01-09 00:23:18 +08:00
Meco Man
918ee6147c
add RT_USING_POSIX_STDIO
2022-01-05 23:11:58 +08:00
Meco Man
ed09f38012
[libc] remove RT_USING_LIBC
2021-12-30 01:27:25 +08:00
Meco Man
7c789d4b11
revise some RT_USING_POSIX to RT_USING_POSIX_DEVIO
2021-11-24 09:47:55 -05:00
Meco Man
a3284876ff
revise RT_USING_POSIX_STDIO to RT_USING_POSIX_DEVIO
2021-11-24 08:41:10 -05:00
Bernard Xiong
f11113f557
Merge pull request #5277 from mysterywolf/compatibility
...
implement legacy support
2021-11-24 17:37:25 +08:00
Bernard Xiong
64023c38f7
Merge pull request #5283 from mysterywolf/dfs
...
[dfs] move dfs back
2021-11-24 17:37:03 +08:00
Meco Man
df9a23c534
[mutex] use RT_IPC_FLAG_PRIO to replace RT_IPC_FLAG_FIFO
2021-11-17 15:57:15 -05:00
Meco Man
973f25901c
[dfs] move dfs back
2021-11-16 00:57:56 -05:00
Meco Man
c6c1544c84
implement legacy support
2021-11-14 23:51:05 -05:00
Meco Man
2b7d12661e
remove RT_USING_LIBC from dfs_fs.h
2021-11-09 18:40:53 -05:00
Meco Man
f8388c572e
add RT_USING_POSIX_STDIO
2021-11-07 23:41:16 -05:00
Jianting (Meco) Man
702b91c3ce
[dfs] 保留dfs_poll.h dfs_select.h,加warning提示
2021-10-27 23:44:46 -04:00
guo
bb859e79e0
Merge pull request #5223 from cndabai/fatfs
...
update fatfs to the latest version
2021-10-27 18:24:37 +08:00
guo
4107d7bea2
Merge pull request #5236 from mysterywolf/posix
...
[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题
2021-10-27 18:06:54 +08:00
Meco Man
25bd908fb7
[libc][posix] 解决RT_LIBC_USING_FILEIO范围过大的问题
2021-10-27 03:04:05 -04:00
guo
3f4eead5a7
Merge pull request #5199 from mysterywolf/removeselectpoll
...
[dfs] remove dfs_select.h and dfs_poll.h
2021-10-27 13:58:31 +08:00
Meco Man
a9910a780e
[posix][libc] 优化libc中posix结构
2021-10-26 23:09:54 -04:00
mazhiyuan
3c964519b6
[fatfs]update .ignore_format.yml
2021-10-25 16:58:27 +08:00
mazhiyuan
92ee14ff7a
update ff.c/h
2021-10-25 14:41:50 +08:00
mazhiyuan
41af944949
update ffconf.h
2021-10-25 14:10:58 +08:00
mazhiyuan
39933d7305
update ffconf.h
2021-10-25 13:58:07 +08:00
mazhiyuan
ecd84844c5
update fatfs to the latest version
2021-10-25 11:41:34 +08:00
Meco Man
f7548b934e
[posix][dfs] move dfs_posix dfs_poll dfs_select.c to posix folder
2021-10-21 19:05:53 -04:00
Meco Man
20924ea3f5
[dfs] remove dfs_select.h and dfs_poll.h
2021-10-17 17:16:59 -04:00
Jianting (Meco) Man
8c01acc667
Revert "[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS"
2021-10-14 20:11:01 -04:00
Meco Man
a354f846e8
[libc]&[dfs] remove unnecessary RT_USING_POSIX and RT_USING_DFS_DEVFS
2021-10-13 15:21:41 -04:00
tangyuxin
08e5e9d25f
[bsp][simulator] Fix compilation errors
2021-10-11 20:09:47 +08:00
Bernard Xiong
7b6aff0696
Merge pull request #5092 from mysterywolf/removeselect
...
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
2021-09-27 17:54:28 +08:00
Meco Man
1d00635ee9
[fatfs] 互斥量保护超时可通过Kconfig配置时间
2021-09-25 13:45:55 -04:00
Meco Man
32e9aa21c4
[fatfs] 修复time相关函数开启条件
2021-09-25 12:15:41 -04:00
Meco Man
50e215cfd4
[dfs][filesystems] 增加format_ignore文件,排除fatfs格式检查
2021-09-25 12:00:44 -04:00
Meco Man
cba2dd9016
[fatfs] 修改互斥保护超时时间
...
防止因一些正常复杂耗时操作,导致fatfs认为 timeout failure。
2021-09-25 11:59:13 -04:00
Meco Man
ee4b7916a3
[libc标准化]脱敏dfs_select.h 由标准sys/select.h代替
2021-09-22 16:45:21 -04:00
Meco Jianting Man
f1088e77d1
Merge branch 'RT-Thread:master' into select
2021-09-14 18:11:44 -05:00
Meco Man
dc5ee9ade7
[libc标准化] 将dfs_select.h功能转移到sys/select.h
2021-09-13 13:08:03 -04:00
Meco Man
e91ffdd1a0
[libc] fix the conflict warning of read and write functions
2021-09-13 11:39:04 -04:00
guo
160d448660
Merge pull request #5051 from mysterywolf/be_libc
...
[libc标准化] 使用标准poll.h代替dfs_poll.h
2021-09-13 10:45:09 +08:00
Meco Man
c48445a5f7
[标准化libc] fix CI warning
2021-09-11 18:33:46 -04:00
Meco Man
2c525ecd43
将dfs_posix.h的函数声明转移到unix标准头文件中
2021-09-11 15:42:37 -04:00
Meco Man
c360688714
使用poll.h代替dfs_poll.h
2021-09-11 11:56:54 -04:00
Meco Man
92c62a8fab
标准化<poll.h> 弱化<dfs_poll.h>
2021-09-11 11:25:43 -04:00
Bernard Xiong
8da9f78d72
[libc] remove rtlibc
2021-09-11 11:07:51 +08:00
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