YAMAMOTO Takashi
415010b7fd
webclient: include string.h for strlen
...
Instead of relying on indirect namespace pollutions.
2020-05-28 11:15:18 +02:00
YAMAMOTO Takashi
984b80d7cf
netlib.h: Fix nxstyle complaints
2020-05-27 16:41:13 +08:00
YAMAMOTO Takashi
4e32615ab7
netlib: #if 0 out unimplemented fields in url_s
...
- Avoid giving a wrong impression to users
- Save a little memory
2020-05-27 16:41:13 +08:00
YAMAMOTO Takashi
276bf42e0d
webclient: Fix http -> https redirection
...
http -> https redirection is rather common. The old code was
just broken in that case.
Also, this commit is a step towards https support.
* Switch to netlib_parseurl
* Fix error propagation in wget_parseheaders
* Bail out on a redirect to a URL with unsupported scheme
2020-05-26 15:38:12 +08:00
YAMAMOTO Takashi
e939e55a50
webclient.c: Limit the number of redirections
2020-05-25 23:54:38 +08:00
YAMAMOTO Takashi
6b00c37a65
dhcpc.c: Fix an nxstyle complaint
2020-05-25 23:53:29 +08:00
YAMAMOTO Takashi
1cb82e58ac
dhcpc: Don't use an uninitialized variable
2020-05-25 23:53:29 +08:00
liuhaitao
33c794ad60
Application.mk: update .depend dependency for SRCS with VPATH
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-25 08:13:33 -06:00
YAMAMOTO Takashi
6205eb01f2
remove duplicated g_wordsize
2020-05-25 14:42:58 +08:00
Xiang Xiao
d03ff1bde6
build: Remove the duplicated mksymtab.sh
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-24 08:26:55 -06:00
Xiang Xiao
69f013e74e
build: Remve the unnecessary .gitignore
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-23 15:56:35 +01:00
liuhaitao
40c325adfe
build: Remove some duplicated definitions
...
Unified the duplicated definitions into nuttx/tools/Config.mk.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-22 14:18:17 +01:00
Xiang Xiao
ea7437c2a8
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-22 12:25:09 +01:00
Xiang Xiao
3f933d073c
netuitls/thttpd: Add $(APPDIR)/netutils/thttpd into search path
...
to fix config.h can't be found
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-22 12:25:09 +01:00
Masayuki Ishikawa
34305351c4
netutils: ftpd: Fix style violations in ftpd.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 16:53:37 +08:00
Masayuki Ishikawa
e6196d2c9c
netutils: ftpd: Fix EPSV mode in ftpd.c (IPv4 only)
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 16:53:37 +08:00
Masayuki Ishikawa
13479e0a8c
wireless: gs2200m: Update help messages in gs2200m_main.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-22 10:30:16 +02:00
Xiang Xiao
ea135b89c6
build: Replace all -I to INCDIR
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
Xiang Xiao
ead498a788
build: Remove the workaround for the inexistence of .config/Make.defs
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-21 17:43:42 +01:00
liuhaitao
b64d3533ba
Application.mk: fix generated empty Make.dep for SRCS with VPATH
...
https://github.com/apache/incubator-nuttx-apps/pull/250 resulted in generated empty
Make.dep for SRCS with VPATH.
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-21 13:22:13 +01:00
Masayuki Ishikawa
8d1f2d52da
system: nxplayer: Introduce max host and file name for http url
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-21 18:48:02 +08:00
Xiang Xiao
36bce2959a
build: Remove the duplicated definition
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 14:53:21 -06:00
Xiang Xiao
9be0be5d47
build: host executable should use HOSTEXEEXT not EXEEXT
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-19 08:58:10 -06:00
Masayuki Ishikawa
bd47c468c5
nshlib: Introduce CONFIG_NSH_WGET_BUFF_SIZE
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-18 20:00:28 -06:00
Xiang Xiao
6a26547dec
build: Move INCDIROPT to common place
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Xiang Xiao
d232823e63
build: Replace WINTOOL with CYGWIN_WINTOOL Kconfig
...
so the correct value can be determinated by Kconfig system automatically
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-18 15:37:24 -06:00
Xiang Xiao
0a6f978771
app/builtin: simplify the application registraion flow
...
Change-Id: I6b92385e72d0e1a30123f12dbb9c4fd3e90b0315
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-18 09:51:09 -06:00
chao.an
224c4767fe
apps: correct the program name to avoid invalid dependent targets
...
Change-Id: Iec6ca1b04a25afee16a4b600ee496620fec97577
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-18 09:51:09 -06:00
chao.an
8997213c2a
nsh/parse: Try FILE_APPS first in the case of builtin
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-18 06:53:57 -06:00
chao.an
898c1ce4d2
Revert "This critical behavior was broken by this commit:"
...
This reverts commit 9b06b508f9
.
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-18 06:53:57 -06:00
Masayuki Ishikawa
e2414cd731
wireless: gs2200m: Fix to receive a big packet
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-18 09:44:37 +02:00
Gregory Nutt
4f54a75c48
apps/nshlib/nsh_parse.c: Add some comments.
...
Add some comments to nsh_parse.c emphasizing the reason that things are done in the order that they are. Perhaps such comments will avoid similar breakage in the future.
2020-05-18 10:03:17 +08:00
Gregory Nutt
60428baed6
apps/nshlib/nsh_parse.c: Run through nxstyle.
2020-05-17 23:38:05 +01:00
Gregory Nutt
9b06b508f9
This critical behavior was broken by this commit:
...
commit 9a28ccf836
Author: chao.an <anchao@xiaomi.com>
Date: Fri Feb 21 09:54:47 2020 +0800
nsh/parse: try the builtin configuration first
In the case of enable the BUILTIN_APPS/FILE_APPS at the same time,
try the builtin list first to ensure that the relevant configuration
(stacksize, priority) can be set normally.
This commit breaks the feature because it changes the order to that the built-in application is tried first. Hence, the version on the file system will never replace the built-in version.
That commit must be reverted in order to restore the correct functionality.
Revert "nsh/parse: try the builtin configuration first"
This reverts commit 9a28ccf836
.
2020-05-17 23:38:05 +01:00
liuhaitao
994af95576
tools/mksymtab.sh: suppress 'find apps/bin' No such file or directory error msg
...
Suppress apache nightly build find error msg as below:
find: '/home/jenkins/jenkins-slave/workspace/NuttX-Nightly-Build/apps/bin': No such file or directory
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 07:29:37 -06:00
liuhaitao
79e544f032
exmaples: some nxstyle fixes for module/sotest/thttpd
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
liuhaitao
0c60624276
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd
...
Update make dependency for elf/module/nxflat/posix_spawn/sotest/thttpd examples which make use of
mksymtab.sh. This could avoid them built twice in 'make depend' and 'make all' which would result
in file truncated build break. Now only build once by 'make all'.
Change-Id: I5d8f1ebbf73e3b12d7d2118f1f51b4233d0ed007
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-05-15 13:36:05 +08:00
Masayuki Ishikawa
ba3baa57a5
examples: ftpc: Fix style violations in ftpc_main.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Masayuki Ishikawa
9a90b65355
examples: ftpc: Fix a compile warning for IPv4 only configuration
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 18:17:57 -06:00
Ouss4
cc2ac7452c
system/netdb/netdb_main.c: Eliminate a warning when
...
CONFIG_NETDB_HOSTFILE is not set.
2020-05-14 16:40:12 -06:00
Xiang Xiao
3b98acc87c
netutils/dhcpd: correct the option header check
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
Xiang Xiao
ed3ac15526
netutils/dhcpd: Fix the minor typo error
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-14 07:51:55 -06:00
Masayuki Ishikawa
f3934ec6d8
wireless: gs2200m: Add support for getsockname() to gs2200m
...
NOTE: need to update nuttx repo as well
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-05-14 07:50:16 -06:00
Xiang Xiao
9d78e5b4c2
Remove executable bit from source code
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-13 06:52:34 -06:00
chao.an
7a9eea5aba
netutils/dhcpd: fix nxstyle warning
...
Change-Id: I92c4c9426629c728c70b3f6bb047f218816580a2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
3aefe08cba
examples/dhcpd: reuse the router ip/mask from dhcpd lib
...
Change-Id: I6a9a783b9d9c8b9a4e56a885232a759f0adaeccb
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
chao.an
018c9420ac
netutils/dhcpd: cancelable dhcp daemon
...
Change-Id: Iea3c0b8f91b0d6d8ececcd3932d8756a9d021608
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-05-09 13:31:15 -06:00
Gregory Nutt
baea789137
examples/thttpd/content/tasks/tasks.c: nxstyle check.
2020-05-09 14:55:38 -03:00
Gregory Nutt
3abdf30e8c
examples/thttpd/content/tasks/tasks.c: Update OS internal name
...
This logic uses the OS internal nxsched_foreach() function. This is a violation of the POSIX OS interface. But for now, we just update the name.
2020-05-09 14:55:38 -03:00
liuhaitao
d7a5313aca
Revert "CI: use 'git diff $commits' as a whole patchset to do checkpatch"
...
This reverts commit 9c4cdc5331
.
If one PR is on a former master code base, using 'git diff $commits' would result in
abnormal checkpatch report sometimes. So revert it anyway.
2020-05-09 14:10:48 +08:00