From b7bfa04c0649ab83c570826ab0b05257652d3fc1 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sun, 21 Mar 2021 02:03:45 +0800 Subject: [dfs] cat命令执行后增加\n 与linux行为一致 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dfs/src/dfs_file.c | 1 + 1 file changed, 1 insertion(+) (limited to 'components/dfs/src') diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index aa6494457a..802311b54e 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -615,6 +615,7 @@ void cat(const char *filename) } } while (length > 0); + rt_kprintf("\n"); dfs_file_close(&fd); } -- cgit v1.3.1 From 8102502b9815843bec2154b607c4f299ce179d97 Mon Sep 17 00:00:00 2001 From: guozhanxin Date: Thu, 8 Jul 2021 16:37:07 +0800 Subject: [devfs] F_GETFL/F_SETFL should be handled by the drivers. --- components/dfs/src/dfs_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/dfs/src') diff --git a/components/dfs/src/dfs_file.c b/components/dfs/src/dfs_file.c index 802311b54e..fa0f6000b4 100644 --- a/components/dfs/src/dfs_file.c +++ b/components/dfs/src/dfs_file.c @@ -157,7 +157,7 @@ int dfs_file_ioctl(struct dfs_fd *fd, int cmd, void *args) return -EINVAL; /* regular file system fd */ - if (fd->type == FT_REGULAR || fd->type == FT_DEVICE) + if (fd->type == FT_REGULAR) { switch (cmd) { -- cgit v1.3.1