YAMAMOTO Takashi
faba0249c1
Include malloc.h instead of stdlib.h for mallinfo()
...
Adapt to the change in the main repo.
mallinfo is meant to be API compatible with Linux,
where it's provided by malloc.h.
(I think the API actually originated with System V. I don't
remember how it was there though. Anyway, I guess the
compatibility with Linux is more important than System V
these days.)
2020-06-15 07:21:52 -06:00
Ouss4
6fd57ba071
examples/pca9635/pca9635_main.c: The brightness struct name was changed
...
in the OS driver, thus this example needs to follow suit.
2020-06-12 15:01:36 -06:00
YAMAMOTO Takashi
83324b68f9
webclient: Fix errno in case of recv failure
...
When recv() failed, the current code assumes the return value
of recv() is a negative errno. It's wrong. Actually the return value
in case of error is -1. The wrong assumption ends up with reporting
EPERM, as EPERM happens to be -(-1).
This commit changes the code to leave the errno set by the failed
recv() as it is. It should be fine as wget_base() has the same
error returning convention as recv(). That is, return -1 (ERROR)
and set errno in the case of failure.
NOTE: the close() after the errout label can also fail and overwrite
the errno. I don't feel it's a big problem as wget_base() doesn't have
any promise about which error should be reported.
2020-06-12 05:22:45 -07:00
Masayuki Ishikawa
1d4dc43e73
system: nxrecorder: Fix compile warnings in nxrecorder.c
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-10 18:15:08 -07:00
liuhaitao
68c89e8485
tools/mksymtab.sh: remove the quotes in varlist entry coming from *-thunk.S
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-10 21:31:51 +08:00
liuhaitao
0b322c9784
examples/thttpd: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-10 21:31:51 +08:00
Huang Qi
afaf013832
examples/lvgldemo: Make touch calibration optional
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2020-06-10 08:44:36 -03:00
liuhaitao
2c924f657f
examples/nxflat: update Makefile etc to fix build break
...
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2020-06-09 21:40:20 +08:00
Xiang Xiao
3f6343d3e7
examples/buttons: Switch dependence from ARCH_HAVE_BUTTONS to BUTTONS
...
application just use BUTTONS ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ia4d615700de1ac17302ab9b6379340fb81e69d86
2020-06-06 01:03:20 +01:00
Xiang Xiao
8e9e49a2f8
examples/leds: Switch dependence from ARCH_HAVE_LEDS && !ARCH_LEDS to USERLED
...
application just use USERLED ioctl and shouldn't take care the implementation detail
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I5b707d86db1bd96d85b6fed1d5a403584739f0d7
2020-06-06 01:03:20 +01:00
Masayuki Ishikawa
2ba9fd55af
system: nxplayer: Refactor nxplayer.c
...
NOTE: Remove redundant code regarding audio buffer configuration
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-06-05 15:21:02 +08:00
Xiang Xiao
d28dcfbee3
zmodem: Fix the build break and warning for host binary
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If6b324c20fcb245633f3bdc9000bc48f581c7dc6
2020-06-03 13:07:11 +01:00
Xiang Xiao
8f18b23352
examples: Fix the wrong dependence about config.h
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Iabedaa5da6439f4bfc34fb861382276446b4224f
2020-06-02 12:49:19 +02:00
YAMAMOTO Takashi
a49f951c86
netlib_parsehttpurl: Fix pathlen check
2020-05-28 19:59:03 +08:00
YAMAMOTO Takashi
585d63b30d
netlib_parseurl: Fix pathlen check
2020-05-28 19:59:03 +08:00
YAMAMOTO Takashi
a455f13ec1
webclient: Check the return value of netlib_parseurl correctly
2020-05-28 19:58:53 +08:00
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