chao an
ec63217b48
nshlib: disable nsh error print if NSH_DISABLE_ERROR_PRINT enabled
...
text data bss dec hex filename
398953 27088 4128 430169 69059 nuttx /* before */
389241 27072 4128 420441 66a59 nuttx /* after */
-9712 -16
Signed-off-by: chao an <anchao@xiaomi.com>
2023-06-12 13:37:27 +08:00
chao an
28973a37b3
nshlib: fix memory leak found out by -fanalyzer
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-05-16 22:43:21 -07:00
Xiang Xiao
359f66ad37
nshlib: Remove the remaining CONFIG_FILE_STREAM dependence
...
continue the change from https://github.com/apache/nuttx-apps/pull/1559
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-02-24 17:38:19 +08:00
Fotis Panagiotopoulos
464607dc90
Fixed compiler warnings in dd.
2023-01-30 10:59:07 +08:00
anjiahao
14465b85c4
cmd_dd:support dd can do verify
...
After writing the file, compare the contents of the two files again
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-11-14 20:40:43 +08:00
anjiahao
c2f07a4d5a
dd:simplified cmd_dd code steps
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-11-14 20:40:43 +08:00
Junbo Zheng
79e770b0c6
apps/nshlib: add the missing FAR macro for all source files
...
Signed-off-by: Junbo Zheng <zhengjunbo1@xiaomi.com>
2022-09-22 14:22:13 +08:00
pengyiqiang
71ea8b052d
nshlib/nsh_ddcmd: calculate time difference with microsecond precision
...
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
2022-07-17 14:06:40 +08:00
anjiahao
4680a25a8c
cmd_dd:if read nbyte less than bs,must write nbyte
...
if a file size is 10
use dd if=a of=b bs = 8
b file size will 16, is a error
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2022-02-24 10:21:33 -03:00
Xiang Xiao
4cc0c755bf
Remove CONFIG_CLOCK_MONOTONIC special code
...
since this opion doesn't exist anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-02-23 01:21:44 +08:00
Alin Jerpelea
4f3f62c8fc
nshlib: update licenses to Apache
...
Gregory Nutt is has submitted the SGA
Uros Platise has submitted the ICLA
as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-06-11 02:42:05 -05:00
Subhra Sankha Sarkar
36b1be0609
Fixed coding std issues
2020-10-29 04:20:17 -07:00
Xiang Xiao
e0dcfa0c55
Remove extra whitespace from files ( #43 )
...
* Remove multiple newlines at the end of file
* Remove the white space from the end of line
2020-01-31 08:29:24 -06:00
Xiang Xiao
857158451b
Unify the void cast usage
...
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro
Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Gregory Nutt
24e590b072
apps/nshlib/nsh_ddcmd.c: Seemingly nonsense change but somehow works around a compilation error using the ZDS-II toolchain. It was claiming that vtbl was undefined indd_outfopen().
2019-06-03 11:32:56 -06:00
Gregory Nutt
6c815a8d48
apps/nshlib/nsh_ddcmd.c: Cosmetic edition of FAR
2019-06-03 09:19:09 -06:00
Gregory Nutt
9db029e318
The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0
2019-02-11 13:10:10 -06:00
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
Bruno Herrera
3fe720d1e2
Fixes for problems found by Coverity in the apps/ repository:
...
nshlib/nsh_parse.c: Avoid truncating the strcmp result into a unsigned char variable.
nshlib/nsh_netcmds.c: Check for valid hostip before using it.
nshlib/nsh_ddcmd.c: Fix resouce leak when 'if=' or 'of=' params are repeated in the command line. For example:
dd if=/dev/null if=/dev/zero of=/dev/null or
dd if=/dev/zero of=/dev/zero of=/dev/null
2017-09-25 07:34:34 -06:00
Gregory Nutt
1bad025c81
Cosmetic changes to comments
2017-05-11 07:46:08 -06:00
Masayuki Ishikawa
4bf85f7c7b
NSH: dd command will show statistics
2016-12-19 18:33:34 -06:00
Gregory Nutt
652853c7d1
NSH DD command: Use nsh_freefullpath() instead of free(). Actually, these are the so this does not fix bug. It is just needed for symmetry.
2015-12-02 14:10:50 -06:00
Gregory Nutt
146f126ead
nshlib: Now that NuttX automatically converts block to character devices, the implemention of the DD command no longer has to muck with block to character conversion
2015-11-21 11:57:41 -06:00
Gregory Nutt
79169c711f
fix reversed in/out file closing when an error occurs. From Ken Pettit
2014-10-03 11:22:37 -06:00
Gregory Nutt
4eadcabc1b
Several commands must be disabled in the kernel build because they depend on interfaces that are not available outside of the kernel: dd, df, losetup, mkfatfs, mkdr, and ps.
2014-09-07 10:46:06 -06:00
Gregory Nutt
b9cf7acb1a
More trailing whilespace removal
2014-04-13 16:24:28 -06:00
Gregory Nutt
65b4921b23
Back quoted NSH arguments now functional
2014-01-11 09:50:54 -06:00
Gregory Nutt
4efd07e14b
SAMA5 NAND: bugfixes
2013-12-06 11:34:29 -06:00
Gregory Nutt
16f8dea77e
Fix test of range of skip= argument in NSH dd command. From Ken Petit
2013-04-24 07:02:32 -06:00
patacongo
0cefd784cf
Add psock_poll(); Fix some warnings reported by Lorenz Meier; lm4f logic from JP
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5557 42af7a65-404d-4744-a932-0658087f49c3
2013-01-24 18:39:53 +00:00
patacongo
8d9253461a
Move file-system header files to include/nuttx/fs
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4499 42af7a65-404d-4744-a932-0658087f49c3
2012-03-21 18:01:07 +00:00
patacongo
f392209c72
NSH now uses the new Telnet daemon and built-in tasks started by NSH can be used over Telnet
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4361 42af7a65-404d-4744-a932-0658087f49c3
2012-02-02 16:04:09 +00:00
patacongo
3932092be0
Elminate some warnings on tiny systems
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3719 42af7a65-404d-4744-a932-0658087f49c3
2011-06-17 18:20:14 +00:00
patacongo
a05c1d4bc2
Update documentation, change CONFIG_EXAMPLES_NSH to CONFIG_NSH
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3394 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 20:35:31 +00:00
patacongo
4923fdabc1
Move NSH to apps/ as library
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3393 42af7a65-404d-4744-a932-0658087f49c3
2011-03-18 19:46:25 +00:00