Dave Marples
dbd4e67241
apps/system/cle/cle.c: This commit modifies the cle to use the streams file interface more consistently and has removed the observed race conditions. It was previously a mix of streams and fileio. It also simplifies the VT100 cursor position handling.
2019-11-04 11:35:18 -06:00
Gregory Nutt
75c9ed72d1
apps/nshlib/README.txt: Update README to at least mention the new pmconfig command.
2019-11-04 07:48:51 -06:00
ligd
42aaecf1d1
apps/nshlib: Add new NSH command, 'pmconfig'.
2019-11-04 07:44:33 -06:00
Gregory Nutt
eca2171ab5
apps/nshlib/nsh_netcmds.c: Fix some alignment in output of 'arp -t' command.
2019-11-03 20:10:56 -06:00
Gregory Nutt
b65c3dac0e
netutils/netlib/netlib_getarptab.c: Misc fixes from initial testing with the 'arp -t' commeand.
2019-11-03 19:29:20 -06:00
Gregory Nutt
400995dec6
nshlib/nsh_netcmds.c: Add a -t option to the arp command which will enable printing the entire ARP table.
2019-11-03 16:19:14 -06:00
Gregory Nutt
29160741d8
apps/nshlib/README.txt: Update to include the new rptun command.
2019-11-03 09:50:13 -06:00
Gregory Nutt
c3dd0b9c06
apps/nshlib/README.txt: Update to include the new rptun command.
2019-11-03 09:44:02 -06:00
ligd
611bc6c139
apps/nshlib: Add rptun cmd for boot remote core.
2019-11-03 09:36:49 -06:00
Xiang Xiao
93017735ef
apps/nshlib/nsh.h: nsh: Remove the redundant check for netcmd. Checking FS_PROCFS and FS_PROCFS_EXCLUDE_NET is enough and make the type of network device could be shown by ifconfig.
2019-11-03 09:33:57 -06:00
Gregory Nutt
0dde32fb43
nshlib/nsh_romfsetc.c and graphics/traveler/trv_romfs.c: Replace direct calls to romdisk_register() with indirect calls via boardioctl(BOARDIOC_ROMDISK). This not only fixes the violation of the portable POSIX OS interface, but also permits use of ROM disks in PROTECTED and KERNEL modes. There are still multiple illegal calls to romdisk_register() from code under apps/examples. These all must also be converted to use boardioctl(BOARDIOC_ROMDISK) someday.
2019-10-26 13:47:03 -06:00
Gregory Nutt
06acc559a1
apps/nshlib: Tighten up some of the conditional logic for mkrd.
2019-10-26 12:26:16 -06:00
Gregory Nutt
e0dff13094
apps/nshlib/Kconfig and examples/mount/Kconfig: Automatically select CONFIG_DRVR_MKRD is it is needed by the configuration.
2019-10-26 11:45:00 -06:00
Gregory Nutt
0bc798c7a9
apps/examples/mount: Replace illegal call to ramdisk_register() with a call to boardctl(BOARDIOC_MKRD).
2019-10-26 10:22:34 -06:00
Gregory Nutt
c8a066f699
apps/nshlib/nsh_fscmds.c: The NSH mkrd command was in violation of the NuttX portable POSIX interface. it was calling the internal OS function ramdisk_register() directly. No only is this a violation of the interface specification, but also prevents use of mkrd in PROTECTED or KERNEL buils.
...
With this commit, the NSH mkrd command now used the BOARDIOC_MKRD boardctl() command. This command is availabe in all build modes. The effect of this change is to move the hear of the NSH mkrd command into to OS and provide user-space access via boardctl().
2019-10-26 09:42:51 -06:00
Xiang Xiao
403b4a0178
In all Make.defs files, append CONFIGURED_APPS with the consistent ifeq/ifneq.
2019-10-17 11:42:49 -06:00
Xiang Xiao
7808eb62d2
apps/: In all Make.def files, append to CONFIGURED_APPS patch with the absolute path.
2019-10-17 11:33:59 -06:00
Gregory Nutt
3a23523147
Makefiles: This reverts part of commit cf0365ea9
. It restores 'conditional' inclusion of TOPDIR/Make.defs. Otherwise all make targets fail if the board has not been configured. That is okay most of the time, but not for things like clean and distclean which should not depend on being configured.
2019-10-15 09:25:48 +08:00
Dave Marples
b4134a674d
nshlib/ and system/cle: Add basic color support to the CLE editor.
2019-10-12 00:47:29 +08:00
Xiang Xiao
cf0365ea92
Clean up Makefile under apps folder no functional changes.
2019-10-04 08:35:46 -06:00
Xiang Xiao
63c3772888
CONFIG_BUILD_LOADABLE: Check the kernel function callable by BUILD_KERNEL instead of BUILD_LOADABLE since BUILD_LOADABLE could be turned on even with BUILD_FLAT.
2019-10-03 14:10:32 -06:00
Gregory Nutt
3457c30c33
apps/nshlib: Fix some typos and minor coding staqndard problems.
2019-09-12 15:38:53 -06:00
Gregory Nutt
ac61c18fcc
Move apps/builtins/builtin_forindex.c to nuttx/libs/libc/builtin since it is required by kernel logic as well. Other changes account for movement of builtin.h from nuttx/include/nuttx/binfmt/built.h to nuttx/include/lib/builtin.h.
2019-08-23 09:12:45 -06:00
Gregory Nutt
e6ba3ccff8
Update comments, README's, etc. to reflect changes to nuttx/boards directory reorganization.
2019-08-09 08:40:22 -06:00
Gregory Nutt
dd36f7ca4d
Fix paths in README.txt files which have changed due to the restructuring of nuttx/boards directory.
2019-08-05 10:22:56 -06:00
Gregory Nutt
2a8dccb75d
Change name configs/ to boards/ in comments, Documentation, Tools, etc.
2019-08-05 07:33:16 -06:00
Gregory Nutt
49e08ca3a9
apps/nshlib/nsh_fsutils.c: As noted by David S. Alessio, 'cat' should not output any additional newline at the end of the cat'ed file content. This was done to assure that the NSH prompt was presented on a new line. However, that is not the correct behavior of 'cat' per the IEEE std: "The standard output shall contain the sequence of bytes read from the input files. Nothing else shall be written to the standard output." Reference: https://pubs.opengroup.org/onlinepubs/009695399/utilities/cat.html
...
This commit changes the function nsh_catfile() which underlies the 'cat' command and well as other NSH commands. Although this is the correct behavior for 'cat' it may not be the correct behavor for other commands implemented via nsh_catfile(). That remains to be determined.
2019-07-29 20:49:39 -06: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
8c36ec3f33
nshlib/nsh_parse.c: Fix a warning about an uninitialized variable from the ZDS-II compiler.
2019-06-03 09:29:44 -06:00
Gregory Nutt
6c815a8d48
apps/nshlib/nsh_ddcmd.c: Cosmetic edition of FAR
2019-06-03 09:19:09 -06:00
Gregory Nutt
7409dd57bb
Fix a warning found in build testing.
2019-05-22 08:22:12 -06:00
Gregory Nutt
dd35a7cacc
apps/: Removed all references to CONFIG_DISABLE_POLL. The standard POSIX poll() can not longer be disabled.
2019-05-21 19:08:12 -06:00
Valmantas Paliksa
5cad41c973
apps/nshlib: Fix all places where cle() and readline() are used. readline() returns EOF on a failure. cle() returns a negated errno value. Checking only for EOF causes failues to be missed (and infinite loops ensuing).
2019-05-21 08:43:09 -06:00
Gregory Nutt
8f5944c4a8
Squashed commit of the following:
...
include/ and netutils/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
nshlib/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
system/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
testing/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
examples/: Remove references to CONFIG_DISABLE_SIGNALS. Signals can no longer be disabled.
2019-04-29 14:53:38 -06:00
Gregory Nutt
94a0d92b54
This commit removes the private network initialization logic from NSH and puts in a common location at apps/netutils/netinit. Now that netork initialization logic can be used by applications that do not include NSH.
...
Squashed commit of the following:
apps/nshlib: Remove NSH initialization. Now uses the common apps/netutils/netinit logic (which was cloned from nshlib to begin with).
apps/netutils/netinit: Clone network initialization logic from NSH to this directory so that it can be available for general use.
2019-04-29 10:22:56 -06:00
raiden00pl
0a6726bc3e
Merged in raiden00/apps (pull request #174 )
...
Small fixes
examples/pca9635/pca9635_main.c: fix compilation
Approved-by: Gregory Nutt <gnutt@nuttx.org>
2019-04-28 11:33:21 +00:00
Valmantas Palikša
5484407877
nshlib/nsh_timcmds.c: Initialized struct tm cause 'date -s' to fail.
2019-03-18 08:04:40 -06:00
Gregory Nutt
b2f46360de
apps/: Remove/replace all conditional logic based on CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than zero now. In places just replace with #ifdef CONFIG_NET.
2019-02-11 16:23:55 -06:00
Gregory Nutt
fe41f72a95
Fix typo found in building testing. There will probably be a few more.
2019-02-11 13:25:48 -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
Gregory Nutt
b1352458ab
apps/nshlib/nsh_netinit.c: Update for changes to signal notification structures.
2019-01-27 16:45:56 -06:00
David Sidrane
7db2a352fb
nshlib/nsh_console.h: Fix copy paste errors. Some Kconfig configuration names needed CONFIG_ prefix.
2019-01-24 06:36:26 -06:00
Gregory Nutt
6fb399fd65
Update README
2019-01-19 08:54:01 -06:00
Masayuki Ishikawa
060a8fff4b
Merged in masayuki2009/nuttx.apps/fix_redirection_error (pull request #167 )
...
apps/nshlib: Fix buffer overrun when redirected to a file.
SAVE_SIZE must be the same as sizeof(struct serialsave_s)
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-19 12:38:49 +00:00
Anthony Merlino
7cde7e921d
Merged in antmerlino/apps/addroute-default-gw (pull request #166 )
...
addroute: Adds command for setting default gateway. addroute default <ipaddr> <interface>
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-13 14:20:15 +00:00
Ken Pettit
e08d100919
apps/nshlib/nsh_parse.c: Fixes an error in the NSH parser. There was a bug when executing an nsh shell script which contains a redirection. When the command in the script is executed, it sets the vtbl->np.np_redirect flag (as it should), but then doesn't restore it, leaving it set at the end of the script execution. Then the vtbl->np.np_redirect flag is set when the 'sh' command completes, causing a restore from un-initialized variables, thus leading to a crash. See the code snippet below for an example test case.
...
Test case:
NuttShell (NSH)
nsh> mkrd -s 1024 40
nsh> mkfatfs /dev/ram0
nsh> mount -t vfat /dev/ram0 /tmp
nsh> echo "echo 1 > /dev/null" > /tmp/test.sh
nsh> cat /tmp/test.sh
echo 1 > /dev/null
nsh> sh /tmp/test.sh
...
The nsh prompt doesn't get printed. You can type a couple of commands, but then the system will crash because of bad pointers.
2019-01-12 10:56:48 -06:00
Gregory Nutt
eaec674e7b
apps/nshlib/nsh_command.c: In all multi-column help output, make the number of rows presented dependent upon the maximum width of the widest column.
2019-01-11 09:21:59 -06:00
Gregory Nutt
d789194836
apps/nshlib/nsh_command.c: In all multi-column help output, calculate an optimal column width rather than using a hard-coded width that may or may not be appropriate.
2019-01-11 08:59:36 -06:00
Gregory Nutt
806ba4ee83
apps/nshlib/nsh_command.c: Fix a few long lines
2019-01-11 07:39:23 -06:00
Ken Pettit
a6d056cf76
apps/nshlib/nsh_command.c: display built-in apps using multi-column mode like the nsh commands
2019-01-11 07:35:04 -06:00