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
Gregory Nutt
3257ea42d5
apps/nshlib/nsh_parrse.c: Correct some coding standard problems in last PR.
2019-01-06 10:00:19 -06:00
Daniel Agar
c700bf9739
Merged in dagar/nuttx-apps/pr-nshlib (pull request #163 )
...
[WIP] nshlib add var expansion in nsh parse
Approved-by: GregoryN <gnutt@nuttx.org>
2019-01-06 15:52:18 +00:00
GregoryN
3bf4b6d245
Merged altconsole into master
2018-12-08 18:53:54 -06:00
David Sidrane
8eb249eea5
apps/nshlib/nsh_romfsetc.c: Add support for CROMFS start-up script
2018-12-06 15:41:18 -06:00
Alan Carvalho de Assis
368f14852e
apps/nshlib: Change the way SLCD is supported. Works better
2018-11-30 18:05:18 -06:00
Lwazi Dube
2b8685b63f
wireless/bluetooth/btsak/btsak_main.c: Fix address parsing
2018-11-30 06:28:36 -06:00
Gregory Nutt
c0f64622e4
nshlib/nsh_slcd.c: Use file descriptor zero for the NSH console.
2018-11-30 06:18:44 -06:00
Alan Carvalho de Assis
c21d640eaf
apps/nshlib: Add support to use SLCD as NSH Console
2018-11-29 18:42:02 -06:00
Lwazi Dube
6af45bdee0
wireless/bluetooth/btsak: Fix some errors in btsak
2018-11-27 08:02:43 -06:00
Xiang Xiao
2db0252e61
nshlib/nsh_envcmds.c: Fix warning g_oldpwd defined but not used [-Wunused-const-variable]
2018-11-07 11:28:28 -06:00
Xiang Xiao
6aee984c91
nshlib/nsh_netinit.c: Move call netlib_icmpv6_autoconfiguration() into nsh_net_bringup() like DHCP
2018-11-07 11:25:39 -06:00
Xiang Xiao
173c985395
nshlib/nsh_fsutils.c: nsh_catfile() should not append '\n' if the last char in file is already '\n'
2018-11-07 11:23:07 -06:00
ligd
19dc7cd3b3
nshlib/nsh_console.c: Add fflush to nsh_consolewrite(). This resolves this problem:
...
> cat /dev/ttyCP &
> echo ls >/dev/ttyCP
Can't get the 'ls' result immediately, because 'cat' cmd uses nsh_consolewrite() and that uses fwrite with no fflush. We can get the 'ls' result after type '\n', because nsh will fflush output when get '\n'.
2018-11-07 11:18:03 -06:00
Gregory Nutt
b5e032e050
apps/nshlib/README.txt: Another trivial update.
2018-10-02 13:47:16 -06:00
Gregory Nutt
3a474c573c
apps/nshlib/README.txt: Trivial correction in comparison to Bash behavior.
2018-10-02 12:15:07 -06:00
Gregory Nutt
cf6c6a9556
apps/nshlib: If CONFIG_NSH_VARS=y, the NSH 'set' command with not argument will list all of the local NSH variables.
2018-10-02 11:54:18 -06:00
Gregory Nutt
cb982ea8df
apps/nshlib: Eliminate more new warnings found in build testing.
2018-10-02 11:16:15 -06:00
Gregory Nutt
2bc4d1e8e2
apps/nshlib/nsh_parse.c: Fix a warning (really a bug) detected in build testing.
2018-10-02 11:08:17 -06:00
Gregory Nutt
7f7b728231
apps/nshlib/nsh_parse.c: Correct an error in conditional compilation found in build testing.
2018-10-02 10:21:33 -06:00