Tomasz Wozniak
71b45ed2c2
built-in libc defect workaround: replace '%6.6u' format with an equivalent '%06u'
2017-03-21 09:39:51 +01:00
Gregory Nutt
2ef46ce4ba
NSH library: In nsh_argexand(), if CONFIG_NSH_ARGCAT is defined but CONFIG_NSH_CMDPARMS defined and/or CONFIG_DISABLE_ENVIRON not defined, then there is a situation that causes an infinite loop in the parser. Noted by Freddie Chopin.
2017-03-09 08:07:22 -06:00
Alan Carvalho de Assis
8e7ed15cce
NSHLIB uname command: Eliminate 'defined but not used' warning in some configurations
2017-03-07 15:36:18 -06:00
Alan Carvalho de Assis
d506939b59
NSHLIB ps command: Eliminate 'defined but not used' warning in some configurations
2017-03-07 15:10:17 -06:00
Gregory Nutt
a7e34f3b97
Make use of FAR storage class consistent
2017-02-27 07:54:21 -06:00
Gregory Nutt
fa4b047d35
Fix typo in last commit
2017-02-27 07:49:49 -06:00
Gregory Nutt
590791e12d
NSH: Eliminate a warning when all memory inspection commands are disabled.
2017-02-27 07:30:52 -06:00
Gregory Nutt
bab5df0966
Eliminate a warning about an unused variable.
2017-02-27 07:30:52 -06:00
Gregory Nutt
81645fe18f
strcasecmp, strncasecmp, bzero, bcmp, and bcopy should be defined in strings.h, not string.h. bzero, bcmp, and bcopy are legacy functions; the contemporary counterparts should be used instead.
2017-02-16 15:58:15 -06:00
Gregory Nutt
740b528199
apps/examples/stat: Add a simple test for stat(), fstat(), and statfs().
2017-02-13 14:08:19 -06:00
Gregory Nutt
bf9ca8868e
NSH: Both arguments of 'ln' command may be relative paths
2017-02-07 07:56:54 -06:00
Gregory Nutt
1a696b0367
Fix a memory leak in the 'ln' command when a failure occurs.
2017-02-06 10:20:29 -06:00
Gregory Nutt
7a0e08c37b
NSH: Add readlink command.
2017-02-05 10:35:11 -06:00
Gregory Nutt
bb81a3d11d
NSH ls command: if node is a symobolic link, use readlink() to get and the display the target of the symblic link.
2017-02-03 14:13:25 -06:00
Gregory Nutt
9fbca32710
Soft links: Fixed logic in RTOS. Remove NSH kludge of last commit.
2017-02-03 13:23:27 -06:00
Gregory Nutt
51f71304d1
NSH: Extend ls command to show type of symbolic link.
2017-02-03 11:21:37 -06:00
Gregory Nutt
2ac55ec4e7
NSH: Add support for the 'ln' command.
2017-02-02 19:40:59 -06:00
Gregory Nutt
d195751a90
Update NSH and examples/modules for changes in kernel module interface.
2017-01-22 15:11:49 -06:00
Masayuki Ishikawa
4bf85f7c7b
NSH: dd command will show statistics
2016-12-19 18:33:34 -06:00
Gregory Nutt
9b951b4dd8
apps/nshlib: nsh_getdirpath(), use snprint instead of sprintf to avoid possibility of buffer overrun. Noted by Chung Hwan Kim.
2016-10-11 17:35:31 -06:00
Gregory Nutt
2c8ac4440a
apps/nshlib: Don't try to flush output streams if stdio buffered I/O is not supported.
2016-10-06 08:36:15 -06:00
Alan Carvalho de Assis
cdedb412ed
apps/nshlib: Add printf command to NSH, e.g., controlling /dev/userleds from command line: nsh> printf \x01 > /dev/userleds
2016-10-01 07:44:15 -06:00
Neil Hancock
7fc401d3c1
Correct an assertion
2016-09-12 07:26:37 -06:00
Aleksandr Vyhovanec
e832e73b99
nshlib/: Fix missing semicolon; include string.h.
2016-09-05 07:05:17 -06:00
Gregory Nutt
8cfa1dbd3b
The previous commit was reverted. My concern was misplaced: There is a guard boolean to prevent running the init script more than once. This comment just restores some of the good cosmetic changes that were included in the reverted commit.
2016-08-25 14:28:25 -06:00
Gregory Nutt
4eda22b4db
Revert "This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice."
...
This reverts commit 4d364d836a
.
2016-08-25 14:19:36 -06:00
Gregory Nutt
4d364d836a
This commit adds nsh_consolechild(). I noticed that there are several examples that call nsh_consolemain.c to create to create a new NSH session. That will not always work because nsh_consolemain() performs the one-time initialization needed by the NSH library: Mounting, reading, and running the start-up script, configuring USB tracing. Some of those actions will cause failures if attempted twice.
...
Here are some offenders: examples/cc3000/shell.c, examples/nsh/nsh_main.c, examples/nxterm/nxterm_main.c, and examples/pty_test/pty_test.c. It is possible that for some of those, that represents the first call to nsh_consolemain(). But probably not.
To give other initialization options, I added nsh_consolechild() which is identical to nsh_consolemain() other than it omits all of the one-time initialization. Of course, you would not get the result that you wanted if nsh_consolechild() were called without nsh_consolemain().
2016-08-25 14:14:23 -06:00
Gregory Nutt
e39cfc97c7
Add logic to support an NSH-specific system command
2016-08-25 11:34:36 -06:00
Mateusz Szafoni
6ff8074532
apps/nshlib/nsh_syscmds.c: missing semicolon
2016-08-25 14:26:33 +02:00
Gregory Nutt
c9378ef87e
Fix hex representation of IP address. Also noted by Michał Łyszczek
2016-08-19 06:35:29 -06:00
Gregory Nutt
b9d56991f3
Update some comments. Remove trailing whitespace noted by Michał Łyszczek
2016-08-19 06:25:42 -06:00
Gregory Nutt
823b8c3981
FIFO_SIZE vs PIPE_SIZE
2016-08-04 16:25:47 -06:00
Gregory Nutt
fff8a91e52
Oops, wrong kind of comments
2016-08-04 13:32:19 -06:00
Gregory Nutt
e4914622b3
NSH: cmd_mkfifo depend son CONFIG_DEV_PIPE_SIZE > 0
2016-08-04 12:57:02 -06:00
Gregory Nutt
d5b7268d95
ramdisk.h moved from include/fs/nuttx/ to include/nuttx/drivers.
2016-07-20 14:02:41 -06:00
Gregory Nutt
7d517413cb
Things that use mkfifo() and pipe() depend on CONFIG_PIPES
2016-07-20 10:46:05 -06:00
Gregory Nutt
b1230ce87a
NSH: Eliminate a warning about discarding const
2016-07-15 08:31:47 -06:00
David Alessio
f48b3c73b0
When Priority Inheritance is enabled, the format of /proc/<PID>/status changes to show both the current priority and the thread’s base priority. This messes up the format of cmd_ps.
...
The attached patch fixes cmd_ps to ignore the base priority.
2016-07-15 07:01:02 -06:00
Gregory Nutt
dd7c4c9493
NSH library: Don't show stack usage is CONFIG_STACK_COLORATION is not enabled.
2016-07-13 07:06:32 -06:00
David Alessio
1d8ef23b88
Use fixed point math for cmd_ps removing dependency on floating point libs.
2016-07-12 06:48:30 -06:00
Sebastien Lorquet
2cbad44f1d
This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h"
2016-07-11 10:11:18 -06:00
David Alessio
63ff107419
Fix a typo a a preceding change.
2016-07-11 06:56:34 -06:00
David Alessio
f553fd1316
Recent enhancements to cmd_ps trips a floating point exception if LIBC_FLOATINGPOINT is not defined (at least on Cortex M4 w/ hardfloat). I’m using a buildroot gcc configured to support Cortex-M4F and the hard float ABI, target files are compiles with: -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=hard. I’m not sure the best way to address this, but the attached patch file is the first that comes to mind. Note, I added the float qualifier ‘F’ after a few constants to prevent the compiler from promoting the multiplication and division to double (expensive on M4F) then demoting to single float for the store. (sorry, it’s one of my many pet peeves ;)
...
`
2016-07-10 17:49:58 -06:00
David Sidrane
6eab2b7811
Take 2
2016-07-01 09:45:00 -10:00
Gregory Nutt
97e41cdcc5
Add a missing blank line
2016-07-01 13:27:15 -06:00
Gregory Nutt
57a0f88728
Revert "Review of last PR"
...
This reverts commit 0e4c247e1d
.
2016-07-01 13:26:34 -06:00
Gregory Nutt
0e4c247e1d
Review of last PR
2016-07-01 13:22:36 -06:00
David Sidrane
cbe1d33786
Allow stack usage to be disabled on contrained systems
2016-07-01 08:59:46 -10:00
Gregory Nutt
f48a813e0e
Move apps/include/builtin.h to apps/include/builtin/builtin.h
2016-07-01 07:08:03 -06:00
Gregory Nutt
0e76ca7474
Move apps/include/nsh.h to apps/include/nshlib/nshlib.h
2016-07-01 06:59:23 -06:00