diff --git a/arch/arm/src/common/arm_exit.c b/arch/arm/src/common/arm_exit.c index 6f4c84d227..dfe2f3fb8f 100644 --- a/arch/arm/src/common/arm_exit.c +++ b/arch/arm/src/common/arm_exit.c @@ -65,9 +65,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -88,28 +85,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/avr/src/common/up_exit.c b/arch/avr/src/common/up_exit.c index 201248dcd0..7dd1e69f7e 100644 --- a/arch/avr/src/common/up_exit.c +++ b/arch/avr/src/common/up_exit.c @@ -64,9 +64,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/hc/src/common/up_exit.c b/arch/hc/src/common/up_exit.c index b9abf90c7f..6027f4f8bc 100644 --- a/arch/hc/src/common/up_exit.c +++ b/arch/hc/src/common/up_exit.c @@ -64,9 +64,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/mips/src/common/mips_exit.c b/arch/mips/src/common/mips_exit.c index 4e6ae41445..efa0d4fe39 100644 --- a/arch/mips/src/common/mips_exit.c +++ b/arch/mips/src/common/mips_exit.c @@ -66,9 +66,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -89,28 +86,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/misoc/src/lm32/lm32_exit.c b/arch/misoc/src/lm32/lm32_exit.c index d9f24846ff..9cb130783b 100644 --- a/arch/misoc/src/lm32/lm32_exit.c +++ b/arch/misoc/src/lm32/lm32_exit.c @@ -58,9 +58,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -81,28 +78,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/misoc/src/minerva/minerva_exit.c b/arch/misoc/src/minerva/minerva_exit.c index 30e675c379..d888bb9189 100644 --- a/arch/misoc/src/minerva/minerva_exit.c +++ b/arch/misoc/src/minerva/minerva_exit.c @@ -58,9 +58,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -81,27 +78,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/or1k/src/common/up_exit.c b/arch/or1k/src/common/up_exit.c index 2710c2bb5d..a303c65115 100644 --- a/arch/or1k/src/common/up_exit.c +++ b/arch/or1k/src/common/up_exit.c @@ -65,9 +65,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -88,28 +85,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/renesas/src/common/up_exit.c b/arch/renesas/src/common/up_exit.c index 28c552f26e..dcdcde3b71 100644 --- a/arch/renesas/src/common/up_exit.c +++ b/arch/renesas/src/common/up_exit.c @@ -64,9 +64,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/risc-v/src/common/riscv_exit.c b/arch/risc-v/src/common/riscv_exit.c index 681d75437e..f8647beb12 100644 --- a/arch/risc-v/src/common/riscv_exit.c +++ b/arch/risc-v/src/common/riscv_exit.c @@ -66,9 +66,6 @@ static void _up_dumponexit(struct tcb_s *tcb, void *arg) { struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - struct file_struct *filep; -#endif int i; int j; @@ -89,28 +86,6 @@ static void _up_dumponexit(struct tcb_s *tcb, void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/x86/src/common/up_exit.c b/arch/x86/src/common/up_exit.c index aab3c4cad5..4871346c06 100644 --- a/arch/x86/src/common/up_exit.c +++ b/arch/x86/src/common/up_exit.c @@ -64,9 +64,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/x86_64/src/common/up_exit.c b/arch/x86_64/src/common/up_exit.c index bfe57a6266..80bee07a96 100644 --- a/arch/x86_64/src/common/up_exit.c +++ b/arch/x86_64/src/common/up_exit.c @@ -64,9 +64,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/xtensa/src/common/xtensa_exit.c b/arch/xtensa/src/common/xtensa_exit.c index f19698aee8..2f9ab495f8 100644 --- a/arch/xtensa/src/common/xtensa_exit.c +++ b/arch/xtensa/src/common/xtensa_exit.c @@ -66,9 +66,6 @@ static void _xtensa_dumponexit(struct tcb_s *tcb, void *arg) { struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - struct file_struct *filep; -#endif int i; int j; @@ -89,28 +86,6 @@ static void _xtensa_dumponexit(struct tcb_s *tcb, void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/z16/src/common/z16_exit.c b/arch/z16/src/common/z16_exit.c index 98d5103161..0936a8b36b 100644 --- a/arch/z16/src/common/z16_exit.c +++ b/arch/z16/src/common/z16_exit.c @@ -64,9 +64,6 @@ static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -87,28 +84,6 @@ static void _z16_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif diff --git a/arch/z80/src/common/z80_exit.c b/arch/z80/src/common/z80_exit.c index ce11c04ace..bd7142c65a 100644 --- a/arch/z80/src/common/z80_exit.c +++ b/arch/z80/src/common/z80_exit.c @@ -66,9 +66,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) { FAR struct filelist *filelist; -#ifdef CONFIG_FILE_STREAM - FAR struct file_struct *filep; -#endif int i; int j; @@ -89,28 +86,6 @@ static void _up_dumponexit(FAR struct tcb_s *tcb, FAR void *arg) } } } - -#ifdef CONFIG_FILE_STREAM - filep = tcb->group->tg_streamlist->sl_head; - for (; filep != NULL; filep = filep->fs_next) - { - if (filep->fs_fd >= 0) - { -#ifndef CONFIG_STDIO_DISABLE_BUFFERING - if (filep->fs_bufstart != NULL) - { - sinfo(" fd=%d nbytes=%d\n", - filep->fs_fd, - filep->fs_bufpos - filep->fs_bufstart); - } - else -#endif - { - sinfo(" fd=%d\n", filep->fs_fd); - } - } - } -#endif } #endif